Home
last modified time | relevance | path

Searched refs:callchain_param (Results 1 – 25 of 30) sorted by relevance

12

/openbmc/linux/tools/perf/util/
H A Dcallchain.c44 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 Dcallchain.h80 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 Darm64-frame-pointer-unwind-support.c19 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 Ddb-export.c217 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 Devsel.h255 struct callchain_param;
258 struct callchain_param *callchain);
260 struct callchain_param *callchain);
H A Devlist.h177 struct callchain_param;
180 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch…
H A Dhist.c1865 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 Drecord.c95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch… in evlist__config()
H A Dmachine.c2296 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 Devsel.c844 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 Dunwind-libdw.c312 if (callchain_param.order == ORDER_CALLER) in unwind__get_entries()
H A Dpython.c65 struct callchain_param callchain_param; variable
68 struct callchain_param *param __maybe_unused) in parse_callchain_record()
H A Dunwind-libunwind-local.c772 if (callchain_param.order == ORDER_CALLER) in get_entries()
/openbmc/linux/tools/perf/tests/
H A Ddwarf-unwind.c92 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 Dhists_cumulate.c299 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 Dbuiltin-top.c1025 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 Dbuiltin-report.c133 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 Dbuiltin-c2c.c2833 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 Dbuiltin-diff.c1994 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 Dbuiltin-record.c2429 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 Dbuiltin-trace.c3222 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 Dbuiltin-sched.c2921 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 Dhist.c143 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 Dhists.c259 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 Dhists.c242 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 …]

12