c2c 129 tools/perf/builtin-c2c.c static struct perf_c2c c2c; c2c 139 tools/perf/builtin-c2c.c c2c_he->cpuset = bitmap_alloc(c2c.cpus_cnt); c2c 143 tools/perf/builtin-c2c.c c2c_he->nodeset = bitmap_alloc(c2c.nodes_cnt); c2c 147 tools/perf/builtin-c2c.c c2c_he->node_stats = zalloc(c2c.nodes_cnt * sizeof(*c2c_he->node_stats)); c2c 230 tools/perf/builtin-c2c.c node = mem2node__node(&c2c.mem2node, sample->phys_addr); c2c 262 tools/perf/builtin-c2c.c struct c2c_hists *c2c_hists = &c2c.hists; c2c 320 tools/perf/builtin-c2c.c int node = c2c.cpu2node[cpu]; c2c 324 tools/perf/builtin-c2c.c c2c_hists = he__get_c2c_hists(he, c2c.cl_sort, 2); c2c 359 tools/perf/builtin-c2c.c static struct perf_c2c c2c = { c2c 422 tools/perf/builtin-c2c.c if (!c2c.symbol_full) c2c 828 tools/perf/builtin-c2c.c switch (c2c.display) { c2c 1093 tools/perf/builtin-c2c.c for (node = 0; node < c2c.nodes_cnt; node++) { c2c 1094 tools/perf/builtin-c2c.c DECLARE_BITMAP(set, c2c.cpus_cnt); c2c 1096 tools/perf/builtin-c2c.c bitmap_zero(set, c2c.cpus_cnt); c2c 1097 tools/perf/builtin-c2c.c bitmap_and(set, c2c_he->cpuset, c2c.nodes[node], c2c.cpus_cnt); c2c 1099 tools/perf/builtin-c2c.c if (!bitmap_weight(set, c2c.cpus_cnt)) { c2c 1100 tools/perf/builtin-c2c.c if (c2c.node_info == 1) { c2c 1112 tools/perf/builtin-c2c.c switch (c2c.node_info) { c2c 1119 tools/perf/builtin-c2c.c int num = bitmap_weight(set, c2c.cpus_cnt); c2c 1133 tools/perf/builtin-c2c.c switch (c2c.display) { c2c 1164 tools/perf/builtin-c2c.c ret = bitmap_scnprintf(set, c2c.cpus_cnt, hpp->buf, hpp->size); c2c 1214 tools/perf/builtin-c2c.c scnprintf(buf, 10, "%d", bitmap_weight(c2c_he->cpuset, c2c.cpus_cnt)); c2c 1899 tools/perf/builtin-c2c.c if (c2c.show_all) c2c 1913 tools/perf/builtin-c2c.c switch (c2c.display) { c2c 1937 tools/perf/builtin-c2c.c has_hitm = c2c.display == DISPLAY_TOT ? c2c_he->stats.tot_hitm : c2c 1938 tools/perf/builtin-c2c.c c2c.display == DISPLAY_LCL ? c2c_he->stats.lcl_hitm : c2c 1947 tools/perf/builtin-c2c.c dim = &c2c.hists == c2c_he->hists ? c2c 1962 tools/perf/builtin-c2c.c if (bitmap_weight(c2c_he->nodeset, c2c.nodes_cnt)) { c2c 1963 tools/perf/builtin-c2c.c len = bitmap_scnprintf(c2c_he->nodeset, c2c.nodes_cnt, c2c 1989 tools/perf/builtin-c2c.c if (c2c.show_src && !he->srcline) c2c 2004 tools/perf/builtin-c2c.c bool display = he__display(he, &c2c.hitm_stats); c2c 2015 tools/perf/builtin-c2c.c c2c_hists__reinit(c2c_hists, c2c.cl_output, c2c.cl_resort); c2c 2026 tools/perf/builtin-c2c.c dim_node.header = header_node[c2c.node_info]; c2c 2036 tools/perf/builtin-c2c.c if (c2c.node_info > 2) c2c 2037 tools/perf/builtin-c2c.c c2c.node_info = 2; c2c 2039 tools/perf/builtin-c2c.c c2c.nodes_cnt = session->header.env.nr_numa_nodes; c2c 2040 tools/perf/builtin-c2c.c c2c.cpus_cnt = session->header.env.nr_cpus_avail; c2c 2046 tools/perf/builtin-c2c.c nodes = zalloc(sizeof(unsigned long *) * c2c.nodes_cnt); c2c 2050 tools/perf/builtin-c2c.c c2c.nodes = nodes; c2c 2052 tools/perf/builtin-c2c.c cpu2node = zalloc(sizeof(int) * c2c.cpus_cnt); c2c 2056 tools/perf/builtin-c2c.c for (cpu = 0; cpu < c2c.cpus_cnt; cpu++) c2c 2059 tools/perf/builtin-c2c.c c2c.cpu2node = cpu2node; c2c 2061 tools/perf/builtin-c2c.c for (node = 0; node < c2c.nodes_cnt; node++) { c2c 2065 tools/perf/builtin-c2c.c set = bitmap_alloc(c2c.cpus_cnt); c2c 2097 tools/perf/builtin-c2c.c c2c.shared_clines++; c2c 2098 tools/perf/builtin-c2c.c c2c_add_stats(&c2c.hitm_stats, &c2c_he->stats); c2c 2125 tools/perf/builtin-c2c.c struct c2c_stats *stats = &c2c.hists.stats; c2c 2169 tools/perf/builtin-c2c.c struct c2c_stats *stats = &c2c.hitm_stats; c2c 2175 tools/perf/builtin-c2c.c fprintf(out, " Total Shared Cache Lines : %10d\n", c2c.shared_clines); c2c 2233 tools/perf/builtin-c2c.c nd = rb_first_cached(&c2c.hists.hists.entries); c2c 2263 tools/perf/builtin-c2c.c display_str[c2c.display]); c2c 2264 tools/perf/builtin-c2c.c fprintf(out, " Cacheline data grouping : %s\n", c2c.cl_sort); c2c 2277 tools/perf/builtin-c2c.c if (c2c.stats_only) c2c 2286 tools/perf/builtin-c2c.c hists__fprintf(&c2c.hists.hists, true, 0, 0, 0, stdout, true); c2c 2371 tools/perf/builtin-c2c.c c2c.symbol_full = false; c2c 2393 tools/perf/builtin-c2c.c c2c.symbol_full = !c2c.symbol_full; c2c 2396 tools/perf/builtin-c2c.c c2c.node_info = (c2c.node_info + 1) % 3; c2c 2421 tools/perf/builtin-c2c.c display_str[c2c.display]); c2c 2484 tools/perf/builtin-c2c.c perf_c2c__hists_browse(&c2c.hists.hists); c2c 2527 tools/perf/builtin-c2c.c if (!c2c.use_stdio) { c2c 2533 tools/perf/builtin-c2c.c dim_percent_hitm.header = percent_hitm_header[c2c.display]; c2c 2614 tools/perf/builtin-c2c.c c2c.display = DISPLAY_TOT; c2c 2616 tools/perf/builtin-c2c.c c2c.display = DISPLAY_RMT; c2c 2618 tools/perf/builtin-c2c.c c2c.display = DISPLAY_LCL; c2c 2664 tools/perf/builtin-c2c.c if (asprintf(&c2c.cl_output, c2c 2666 tools/perf/builtin-c2c.c c2c.use_stdio ? "cl_num_empty," : "", c2c 2688 tools/perf/builtin-c2c.c c2c.show_src = add_src; c2c 2698 tools/perf/builtin-c2c.c if (asprintf(&c2c.cl_sort, "offset,%s", c) < 0) c2c 2701 tools/perf/builtin-c2c.c if (build_cl_output(c2c.cl_sort, no_source)) c2c 2704 tools/perf/builtin-c2c.c if (asprintf(&c2c.cl_resort, "offset,%s", c2c 2705 tools/perf/builtin-c2c.c c2c.display == DISPLAY_TOT ? c2c 2707 tools/perf/builtin-c2c.c c2c.display == DISPLAY_RMT ? c2c 2712 tools/perf/builtin-c2c.c pr_debug("coalesce sort fields: %s\n", c2c.cl_sort); c2c 2713 tools/perf/builtin-c2c.c pr_debug("coalesce resort fields: %s\n", c2c.cl_resort); c2c 2714 tools/perf/builtin-c2c.c pr_debug("coalesce output fields: %s\n", c2c.cl_output); c2c 2734 tools/perf/builtin-c2c.c OPT_INCR('N', "node-info", &c2c.node_info, c2c 2737 tools/perf/builtin-c2c.c OPT_BOOLEAN(0, "stdio", &c2c.use_stdio, "Use the stdio interface"), c2c 2739 tools/perf/builtin-c2c.c OPT_BOOLEAN(0, "stats", &c2c.stats_only, c2c 2741 tools/perf/builtin-c2c.c OPT_BOOLEAN(0, "full-symbols", &c2c.symbol_full, c2c 2745 tools/perf/builtin-c2c.c OPT_BOOLEAN(0, "show-all", &c2c.show_all, c2c 2765 tools/perf/builtin-c2c.c if (c2c.stats_only) c2c 2766 tools/perf/builtin-c2c.c c2c.use_stdio = true; c2c 2784 tools/perf/builtin-c2c.c err = c2c_hists__init(&c2c.hists, "dcacheline", 2); c2c 2790 tools/perf/builtin-c2c.c session = perf_session__new(&data, 0, &c2c.tool); c2c 2803 tools/perf/builtin-c2c.c err = mem2node__init(&c2c.mem2node, &session->header.env); c2c 2820 tools/perf/builtin-c2c.c if (c2c.use_stdio) c2c 2833 tools/perf/builtin-c2c.c c2c_hists__reinit(&c2c.hists, c2c 2847 tools/perf/builtin-c2c.c c2c.display == DISPLAY_TOT ? "tot_hitm" : c2c 2848 tools/perf/builtin-c2c.c c2c.display == DISPLAY_LCL ? "lcl_hitm" : "rmt_hitm" c2c 2851 tools/perf/builtin-c2c.c ui_progress__init(&prog, c2c.hists.hists.nr_entries, "Sorting..."); c2c 2853 tools/perf/builtin-c2c.c hists__collapse_resort(&c2c.hists.hists, NULL); c2c 2854 tools/perf/builtin-c2c.c hists__output_resort_cb(&c2c.hists.hists, &prog, resort_hitm_cb); c2c 2855 tools/perf/builtin-c2c.c hists__iterate_cb(&c2c.hists.hists, resort_cl_cb); c2c 2867 tools/perf/builtin-c2c.c mem2node__exit(&c2c.mem2node);