/linux/tools/perf/util/ |
A D | callchain.c | 43 struct callchain_param callchain_param = { variable 74 callchain_param.mode = CHAIN_FLAT; in parse_callchain_mode() 82 callchain_param.mode = CHAIN_FOLDED; in parse_callchain_mode() 92 callchain_param.order_set = true; in parse_callchain_order() 97 callchain_param.order_set = true; in parse_callchain_order() 176 callchain_param.enabled = true; in __parse_callchain_report_opt() 185 callchain_param.enabled = false; in __parse_callchain_report_opt() 328 callchain_param.dump_size = size; in perf_callchain_config() 715 switch (callchain_param.key) { in match_chain() 1188 switch (callchain_param.value) { in callchain_node__scnprintf_value() [all …]
|
A D | callchain.h | 80 struct callchain_param; 83 u64, struct callchain_param *); 99 struct callchain_param { struct 115 extern struct callchain_param callchain_param; argument 116 extern struct callchain_param callchain_param_default; 195 int callchain_register_param(struct callchain_param *param); 246 struct callchain_param *callchain, 258 int parse_callchain_record(const char *arg, struct callchain_param *param); 259 int parse_callchain_record_opt(const char *arg, struct callchain_param *param);
|
A D | db-export.c | 217 enum chain_order saved_order = callchain_param.order; in call_path_from_sample() 228 callchain_param.order = ORDER_CALLER; in call_path_from_sample() 232 callchain_param.order = saved_order; in call_path_from_sample() 271 callchain_param.order = saved_order; in call_path_from_sample()
|
A D | evsel.h | 240 struct callchain_param; 243 struct callchain_param *callchain); 245 struct callchain_param *callchain);
|
A D | evlist.h | 164 struct callchain_param; 167 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch…
|
A D | hist.c | 1824 if (callchain_param.mode == CHAIN_GRAPH_REL) { in hists__hierarchy_output_resort() 1830 min_callchain_hits = total * (callchain_param.min_percent / 100); in hists__hierarchy_output_resort() 1833 callchain_param.sort(&he->sorted_chain, he->callchain, in hists__hierarchy_output_resort() 1834 min_callchain_hits, &callchain_param); in hists__hierarchy_output_resort() 1850 if (callchain_param.mode == CHAIN_GRAPH_REL) { in __hists__insert_output_entry() 1856 min_callchain_hits = total * (callchain_param.min_percent / 100); in __hists__insert_output_entry() 1858 callchain_param.sort(&he->sorted_chain, he->callchain, in __hists__insert_output_entry() 1859 min_callchain_hits, &callchain_param); in __hists__insert_output_entry() 1898 min_callchain_hits = callchain_total * (callchain_param.min_percent / 100); in output_resort()
|
A D | machine.c | 2122 if (!map || callchain_param.key == CCKEY_FUNCTION) in callchain_srcline() 2128 bool show_addr = callchain_param.key == CCKEY_ADDRESS; in callchain_srcline() 2617 bool callee = (callchain_param.order == ORDER_CALLEE); in resolve_lbr_callchain_sample() 2761 if (branch && callchain_param.branch_callstack) { in thread__resolve_callchain_sample() 2772 if (callchain_param.order == ORDER_CALLEE) { in thread__resolve_callchain_sample() 2823 if (chain && callchain_param.order != ORDER_CALLEE) { in thread__resolve_callchain_sample() 2833 if (callchain_param.order == ORDER_CALLEE) in thread__resolve_callchain_sample() 2845 else if (callchain_param.order != ORDER_CALLEE) { in thread__resolve_callchain_sample() 2959 if (callchain_param.order == ORDER_CALLEE) { in thread__resolve_callchain()
|
A D | evsel.c | 831 struct callchain_param *param) in __evsel__config_callchain() 890 struct callchain_param *param) in evsel__config_callchain() 896 static void evsel__reset_callgraph(struct evsel *evsel, struct callchain_param *param) in evsel__reset_callgraph() 920 struct callchain_param param = { in evsel__apply_config_terms() 921 .record_mode = callchain_param.record_mode, in evsel__apply_config_terms() 1031 if (callchain_param.enabled) in evsel__apply_config_terms() 1032 evsel__reset_callgraph(evsel, &callchain_param); in evsel__apply_config_terms() 1096 struct callchain_param *callchain) in evsel__config()
|
A D | record.c | 95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch… in evlist__config()
|
A D | unwind-libdw.c | 274 if (callchain_param.order == ORDER_CALLER) in unwind__get_entries()
|
A D | python.c | 52 struct callchain_param callchain_param; variable 55 struct callchain_param *param __maybe_unused) in parse_callchain_record()
|
A D | unwind-libunwind-local.c | 697 if (callchain_param.order == ORDER_CALLER) in get_entries()
|
A D | srcline.c | 54 if (callchain_param.order == ORDER_CALLEE) in inline_list__append()
|
/linux/tools/perf/tests/ |
A D | dwarf-unwind.c | 91 int idx = callchain_param.order == ORDER_CALLER ? in unwind_entry() 149 callchain_param.order = ORDER_CALLER; in test_dwarf_unwind__compare() 153 callchain_param.order = ORDER_CALLEE; in test_dwarf_unwind__compare() 216 callchain_param.record_mode = CALLCHAIN_DWARF; in test__dwarf_unwind()
|
A D | hists_cumulate.c | 286 callchain_register_param(&callchain_param); in test1() 433 callchain_register_param(&callchain_param); in test2() 491 callchain_register_param(&callchain_param); in test3() 676 callchain_param = callchain_param_default; in test4() 677 callchain_register_param(&callchain_param); in test4()
|
/linux/tools/perf/ui/stdio/ |
A D | hist.c | 143 if (!next && (callchain_param.mode != CHAIN_GRAPH_REL || !remaining)) in __callchain__fprintf_graph() 160 if (callchain_param.mode == CHAIN_GRAPH_REL) in __callchain__fprintf_graph() 170 if (++entries_printed == callchain_param.print_limit) in __callchain__fprintf_graph() 174 if (callchain_param.mode == CHAIN_GRAPH_REL && in __callchain__fprintf_graph() 183 if (callchain_param.value == CCVAL_COUNT && child && child->parent) { in __callchain__fprintf_graph() 263 if (++entries_printed == callchain_param.print_limit) in callchain__fprintf_graph() 269 if (callchain_param.mode == CHAIN_GRAPH_REL) in callchain__fprintf_graph() 321 if (++entries_printed == callchain_param.print_limit) in callchain__fprintf_flat() 372 if (++entries_printed == callchain_param.print_limit) in callchain__fprintf_folded() 390 switch (callchain_param.mode) { in hist_entry_callchain__fprintf()
|
/linux/tools/perf/ |
A D | builtin-report.c | 124 callchain_param.min_percent = pcnt; in report__config() 378 } else if (!callchain_param.enabled && in report__setup_sample_type() 379 callchain_param.mode != CHAIN_NONE && in report__setup_sample_type() 382 if (callchain_register_param(&callchain_param) < 0) { in report__setup_sample_type() 1023 struct callchain_param *callchain = opt->value; in report_parse_callchain_opt() 1110 callchain_param.min_percent = pcnt; in parse_percent_limit() 1389 callchain_param.order = ORDER_CALLER; in cmd_report() 1391 callchain_param.order = ORDER_CALLER; in cmd_report() 1462 callchain_param.key = CCKEY_ADDRESS; in cmd_report() 1463 callchain_param.branch_callstack = true; in cmd_report() [all …]
|
A D | builtin-top.c | 1022 evlist__config(evlist, opts, &callchain_param); in perf_top__start_counters() 1067 static int callchain_param__setup_sample_type(struct callchain_param *callchain) in callchain_param__setup_sample_type() 1239 ret = callchain_param__setup_sample_type(&callchain_param); in __cmd_top() 1369 struct callchain_param *callchain = opt->value; in parse_callchain_opt() 1500 OPT_CALLBACK_NOOPT('g', NULL, &callchain_param, in cmd_top() 1503 OPT_CALLBACK(0, "call-graph", &callchain_param, in cmd_top() 1651 if (top.stitch_lbr && !(callchain_param.record_mode == CALLCHAIN_LBR)) { in cmd_top() 1661 if (opts->branch_stack && callchain_param.enabled) in cmd_top() 1720 if (!callchain_param.enabled) { in cmd_top() 1725 if (symbol_conf.cumulate_callchain && !callchain_param.order_set) in cmd_top() [all …]
|
A D | builtin-c2c.c | 2553 struct callchain_param *callchain = opt->value; in parse_callchain_opt() 2582 if (!callchain_param.enabled && in setup_callchain() 2583 callchain_param.mode != CHAIN_NONE && in setup_callchain() 2586 if (callchain_register_param(&callchain_param) < 0) { in setup_callchain() 2598 callchain_param.record_mode = mode; in setup_callchain() 2599 callchain_param.min_percent = 0; in setup_callchain() 2747 OPT_CALLBACK_DEFAULT('g', "call-graph", &callchain_param, in perf_c2c__report()
|
A D | builtin-record.c | 920 evlist__config(evlist, opts, &callchain_param); in record__open() 2094 static void callchain_debug(struct callchain_param *callchain) in callchain_debug() 2106 struct callchain_param *callchain, in record_opts__parse_callchain() 2134 return record_opts__parse_callchain(opt->value, &callchain_param, arg, unset); in record_parse_callchain_opt() 2141 struct callchain_param *callchain = opt->value; in record_callchain_opt() 2522 OPT_CALLBACK_NOOPT('g', NULL, &callchain_param,
|
A D | builtin-diff.c | 1992 callchain_param.mode = CHAIN_FLAT; in cmd_diff() 1993 callchain_param.key = CCKEY_SRCLINE; in cmd_diff() 1994 callchain_param.branch_callstack = 1; in cmd_diff() 1996 callchain_register_param(&callchain_param); in cmd_diff()
|
A D | builtin-trace.c | 3184 evsel__config_callchain(sys_enter, &trace->opts, &callchain_param); 3185 evsel__config_callchain(sys_exit, &trace->opts, &callchain_param); 3190 if (callchain_param.enabled && !trace->kernel_syscallchains) { 3942 evsel__config_callchain(pgfault_maj, &trace->opts, &callchain_param); 3950 evsel__config_callchain(pgfault_min, &trace->opts, &callchain_param); 3997 evlist__config(evlist, &trace->opts, &callchain_param); 5037 if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled) { 5038 record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false); 5042 if (callchain_param.enabled) {
|
A D | builtin-sched.c | 2882 callchain_param.mode = CHAIN_FOLDED; in timehist_print_summary() 2883 callchain_param.value = CCVAL_PERIOD; in timehist_print_summary() 2885 callchain_register_param(&callchain_param); in timehist_print_summary() 2899 callchain_param.sort(&itr->sorted_root.rb_root, &itr->callchain, in timehist_print_summary() 2900 0, &callchain_param); in timehist_print_summary()
|
/linux/tools/perf/ui/gtk/ |
A D | hists.c | 259 if (callchain_param.mode == CHAIN_GRAPH_REL) in perf_gtk__add_callchain_graph() 273 if (callchain_param.mode == CHAIN_FLAT) in perf_gtk__add_callchain() 275 else if (callchain_param.mode == CHAIN_FOLDED) in perf_gtk__add_callchain() 389 if (callchain_param.mode == CHAIN_GRAPH_REL) in perf_gtk__show_hists() 486 if (callchain_param.mode == CHAIN_GRAPH_REL) in perf_gtk__add_hierarchy_entries()
|
/linux/tools/perf/ui/browsers/ |
A D | hists.c | 242 if (callchain_param.mode == CHAIN_FLAT) in callchain_node__count_rows() 244 else if (callchain_param.mode == CHAIN_FOLDED) in callchain_node__count_rows() 375 if (callchain_param.mode == CHAIN_FLAT || in callchain__init_have_children() 376 callchain_param.mode == CHAIN_FOLDED) in callchain__init_have_children() 1120 if (callchain_param.mode == CHAIN_GRAPH_REL) in hist_browser__show_callchain_graph() 1189 if (callchain_param.mode == CHAIN_FLAT) { in hist_browser__show_callchain() 1194 } else if (callchain_param.mode == CHAIN_FOLDED) { in hist_browser__show_callchain() 2916 hb->min_pcnt = callchain_param.min_percent = percent; in hist_browser__update_percent_limit() 2929 if (callchain_param.mode == CHAIN_GRAPH_REL) { in hist_browser__update_percent_limit() 2938 callchain_param.sort(&he->sorted_chain, he->callchain, in hist_browser__update_percent_limit() [all …]
|