/openbmc/linux/tools/perf/util/ |
H A D | callchain.c | 44 struct callchain_param callchain_param = { variable 57 struct callchain_param callchain_param_default = { 64 int parse_callchain_record_opt(const char *arg, struct callchain_param *param) in parse_callchain_record_opt() 72 callchain_param.mode = CHAIN_GRAPH_ABS; in parse_callchain_mode() 76 callchain_param.mode = CHAIN_FLAT; in parse_callchain_mode() 80 callchain_param.mode = CHAIN_GRAPH_REL; in parse_callchain_mode() 84 callchain_param.mode = CHAIN_FOLDED; in parse_callchain_mode() 93 callchain_param.order = ORDER_CALLER; in parse_callchain_order() 94 callchain_param.order_set = true; in parse_callchain_order() 98 callchain_param.order = ORDER_CALLEE; in parse_callchain_order() [all …]
|
H 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; 193 int callchain_register_param(struct callchain_param *param); 248 struct callchain_param *callchain, 260 int parse_callchain_record(const char *arg, struct callchain_param *param); 261 int parse_callchain_record_opt(const char *arg, struct callchain_param *param);
|
H A D | arm64-frame-pointer-unwind-support.c | 19 return callchain_param.record_mode == CALLCHAIN_FP && sample->user_regs.regs in get_leaf_frame_caller_enabled() 62 return callchain_param.order == ORDER_CALLER ? entries.stack[0] : entries.stack[1]; in get_leaf_frame_caller_aarch64()
|
H A D | db-export.c | 217 enum chain_order saved_order = callchain_param.order; in call_path_from_sample() 229 callchain_param.order = ORDER_CALLER; in call_path_from_sample() 234 callchain_param.order = saved_order; in call_path_from_sample() 275 callchain_param.order = saved_order; in call_path_from_sample()
|
H A D | evsel.h | 255 struct callchain_param; 258 struct callchain_param *callchain); 260 struct callchain_param *callchain);
|
H A D | evlist.h | 177 struct callchain_param; 180 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch…
|
H A D | hist.c | 1865 if (callchain_param.mode == CHAIN_GRAPH_REL) { in hists__hierarchy_output_resort() 1871 min_callchain_hits = total * (callchain_param.min_percent / 100); in hists__hierarchy_output_resort() 1874 callchain_param.sort(&he->sorted_chain, he->callchain, in hists__hierarchy_output_resort() 1875 min_callchain_hits, &callchain_param); in hists__hierarchy_output_resort() 1891 if (callchain_param.mode == CHAIN_GRAPH_REL) { in __hists__insert_output_entry() 1897 min_callchain_hits = total * (callchain_param.min_percent / 100); in __hists__insert_output_entry() 1899 callchain_param.sort(&he->sorted_chain, he->callchain, in __hists__insert_output_entry() 1900 min_callchain_hits, &callchain_param); in __hists__insert_output_entry() 1939 min_callchain_hits = callchain_total * (callchain_param.min_percent / 100); in output_resort()
|
H A D | record.c | 95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch… in evlist__config()
|
H A D | machine.c | 2296 if (!map || callchain_param.key == CCKEY_FUNCTION) in callchain_srcline() 2303 bool show_addr = callchain_param.key == CCKEY_ADDRESS; in callchain_srcline() 2803 bool callee = (callchain_param.order == ORDER_CALLEE); in resolve_lbr_callchain_sample() 2957 if (branch && callchain_param.branch_callstack) { in thread__resolve_callchain_sample() 2968 if (callchain_param.order == ORDER_CALLEE) { in thread__resolve_callchain_sample() 3019 if (chain && callchain_param.order != ORDER_CALLEE) { in thread__resolve_callchain_sample() 3029 if (callchain_param.order == ORDER_CALLEE) in thread__resolve_callchain_sample() 3041 else if (callchain_param.order != ORDER_CALLEE) { in thread__resolve_callchain_sample() 3056 usr_idx = callchain_param.order == ORDER_CALLEE ? j-2 : j-1; in thread__resolve_callchain_sample() 3191 if (callchain_param.order == ORDER_CALLEE) { in thread__resolve_callchain()
|
H A D | evsel.c | 844 struct callchain_param *param) in __evsel__config_callchain() 905 struct callchain_param *param) in evsel__config_callchain() 911 static void evsel__reset_callgraph(struct evsel *evsel, struct callchain_param *param) in evsel__reset_callgraph() 935 struct callchain_param param = { in evsel__apply_config_terms() 936 .record_mode = callchain_param.record_mode, in evsel__apply_config_terms() 1046 if (callchain_param.enabled) in evsel__apply_config_terms() 1047 evsel__reset_callgraph(evsel, &callchain_param); in evsel__apply_config_terms() 1128 struct callchain_param *callchain) in evsel__config()
|
H A D | unwind-libdw.c | 312 if (callchain_param.order == ORDER_CALLER) in unwind__get_entries()
|
H A D | python.c | 65 struct callchain_param callchain_param; variable 68 struct callchain_param *param __maybe_unused) in parse_callchain_record()
|
H A D | unwind-libunwind-local.c | 772 if (callchain_param.order == ORDER_CALLER) in get_entries()
|
/openbmc/linux/tools/perf/tests/ |
H A D | dwarf-unwind.c | 92 int idx = callchain_param.order == ORDER_CALLER ? in unwind_entry() 150 callchain_param.order = ORDER_CALLER; in test_dwarf_unwind__compare() 154 callchain_param.order = ORDER_CALLEE; in test_dwarf_unwind__compare() 217 callchain_param.record_mode = CALLCHAIN_DWARF; in test__dwarf_unwind()
|
H A D | hists_cumulate.c | 299 callchain_register_param(&callchain_param); in test1() 446 callchain_register_param(&callchain_param); in test2() 504 callchain_register_param(&callchain_param); in test3() 689 callchain_param = callchain_param_default; in test4() 690 callchain_register_param(&callchain_param); in test4()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-top.c | 1025 evlist__config(evlist, opts, &callchain_param); in perf_top__start_counters() 1070 static int callchain_param__setup_sample_type(struct callchain_param *callchain) in callchain_param__setup_sample_type() 1250 ret = callchain_param__setup_sample_type(&callchain_param); in __cmd_top() 1382 struct callchain_param *callchain = opt->value; in parse_callchain_opt() 1517 OPT_CALLBACK_NOOPT('g', NULL, &callchain_param, in cmd_top() 1520 OPT_CALLBACK(0, "call-graph", &callchain_param, in cmd_top() 1692 if (top.stitch_lbr && !(callchain_param.record_mode == CALLCHAIN_LBR)) { in cmd_top() 1706 callchain_param.key = CCKEY_ADDRESS; in cmd_top() 1707 callchain_param.branch_callstack = true; in cmd_top() 1708 callchain_param.enabled = true; in cmd_top() [all …]
|
H A D | builtin-report.c | 133 callchain_param.min_percent = pcnt; in report__config() 395 } else if (!callchain_param.enabled && in report__setup_sample_type() 396 callchain_param.mode != CHAIN_NONE && in report__setup_sample_type() 399 if (callchain_register_param(&callchain_param) < 0) { in report__setup_sample_type() 445 if (rep->stitch_lbr && (callchain_param.record_mode != CALLCHAIN_LBR)) { in report__setup_sample_type() 1073 struct callchain_param *callchain = opt->value; in report_parse_callchain_opt() 1160 callchain_param.min_percent = pcnt; in parse_percent_limit() 1284 OPT_CALLBACK_DEFAULT('g', "call-graph", &callchain_param, in cmd_report() 1472 callchain_param.order = ORDER_CALLER; in cmd_report() 1473 if (symbol_conf.cumulate_callchain && !callchain_param.order_set) in cmd_report() [all …]
|
H A D | builtin-c2c.c | 2833 struct callchain_param *callchain = opt->value; in parse_callchain_opt() 2862 if (!callchain_param.enabled && in setup_callchain() 2863 callchain_param.mode != CHAIN_NONE && in setup_callchain() 2866 if (callchain_register_param(&callchain_param) < 0) { in setup_callchain() 2878 callchain_param.record_mode = mode; in setup_callchain() 2879 callchain_param.min_percent = 0; in setup_callchain() 3037 OPT_CALLBACK_DEFAULT('g', "call-graph", &callchain_param, in perf_c2c__report()
|
H A D | builtin-diff.c | 1994 callchain_param.mode = CHAIN_FLAT; in cmd_diff() 1995 callchain_param.key = CCKEY_SRCLINE; in cmd_diff() 1996 callchain_param.branch_callstack = 1; in cmd_diff() 1998 callchain_register_param(&callchain_param); in cmd_diff()
|
H A D | builtin-record.c | 2429 evlist__config(rec->evlist, opts, &callchain_param); in __cmd_record() 2836 static void callchain_debug(struct callchain_param *callchain) in callchain_debug() 2848 struct callchain_param *callchain, in record_opts__parse_callchain() 2876 return record_opts__parse_callchain(opt->value, &callchain_param, arg, unset); in record_parse_callchain_opt() 2883 struct callchain_param *callchain = opt->value; in record_callchain_opt() 3368 OPT_CALLBACK_NOOPT('g', NULL, &callchain_param, 4136 if (callchain_param.enabled && callchain_param.record_mode == CALLCHAIN_FP) in cmd_record()
|
H A D | builtin-trace.c | 3222 evsel__config_callchain(sys_enter, &trace->opts, &callchain_param); 3223 evsel__config_callchain(sys_exit, &trace->opts, &callchain_param); 3228 if (callchain_param.enabled && !trace->kernel_syscallchains) { 3834 evsel__config_callchain(pgfault_maj, &trace->opts, &callchain_param); 3842 evsel__config_callchain(pgfault_min, &trace->opts, &callchain_param); 3892 evlist__config(evlist, &trace->opts, &callchain_param); 4920 if ((trace.min_stack || max_stack_user_set) && !callchain_param.enabled) { 4921 record_opts__parse_callchain(&trace.opts, &callchain_param, "dwarf", false); 4925 if (callchain_param.enabled) {
|
H A D | builtin-sched.c | 2921 callchain_param.mode = CHAIN_FOLDED; in timehist_print_summary() 2922 callchain_param.value = CCVAL_PERIOD; in timehist_print_summary() 2924 callchain_register_param(&callchain_param); in timehist_print_summary() 2938 callchain_param.sort(&itr->sorted_root.rb_root, &itr->callchain, in timehist_print_summary() 2939 0, &callchain_param); in timehist_print_summary()
|
/openbmc/linux/tools/perf/ui/stdio/ |
H 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()
|
/openbmc/linux/tools/perf/ui/gtk/ |
H 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()
|
/openbmc/linux/tools/perf/ui/browsers/ |
H 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() 1110 if (callchain_param.mode == CHAIN_GRAPH_REL) in hist_browser__show_callchain_graph() 1179 if (callchain_param.mode == CHAIN_FLAT) { in hist_browser__show_callchain() 1184 } else if (callchain_param.mode == CHAIN_FOLDED) { in hist_browser__show_callchain() 2907 hb->min_pcnt = callchain_param.min_percent = percent; in hist_browser__update_percent_limit() 2920 if (callchain_param.mode == CHAIN_GRAPH_REL) { in hist_browser__update_percent_limit() 2929 callchain_param.sort(&he->sorted_chain, he->callchain, in hist_browser__update_percent_limit() [all …]
|