/Linux-v4.19/tools/perf/ |
D | builtin-report.c | 95 symbol_conf.event_group = perf_config_bool(var, value); in report__config() 106 symbol_conf.cumulate_callchain = perf_config_bool(var, value); in report__config() 154 } else if (symbol_conf.cumulate_callchain) { in hist_iter__report_callback() 239 .hide_unresolved = symbol_conf.hide_unresolved, in process_sample_event() 255 if (symbol_conf.hide_unresolved && al.sym == NULL) in process_sample_event() 273 } else if (symbol_conf.cumulate_callchain) { in process_sample_event() 336 if (symbol_conf.use_callchain && in report__setup_sample_type() 337 !symbol_conf.show_branchflag_count) { in report__setup_sample_type() 345 !symbol_conf.use_callchain) { in report__setup_sample_type() 346 symbol_conf.use_callchain = true; in report__setup_sample_type() [all …]
|
D | builtin-mem.c | 171 if (symbol_conf.field_sep) { in dump_raw_samples() 178 symbol_conf.field_sep = " "; in dump_raw_samples() 183 symbol_conf.field_sep, in dump_raw_samples() 185 symbol_conf.field_sep, in dump_raw_samples() 187 symbol_conf.field_sep, in dump_raw_samples() 189 symbol_conf.field_sep, in dump_raw_samples() 191 symbol_conf.field_sep, in dump_raw_samples() 193 symbol_conf.field_sep, in dump_raw_samples() 195 symbol_conf.field_sep, in dump_raw_samples() 199 if (symbol_conf.field_sep) { in dump_raw_samples() [all …]
|
D | builtin-top.c | 310 top->min_percent, stdout, !symbol_conf.use_callchain); in perf_top__print_sym_table() 732 symbol_conf.kptr_restrict && in perf_event__process_sample() 762 if (symbol_conf.vmlinux_name) { in perf_event__process_sample() 766 symbol_conf.vmlinux_name, serr, msg); in perf_event__process_sample() 786 if (symbol_conf.cumulate_callchain) in perf_event__process_sample() 1194 symbol_conf.use_callchain = true; in callchain_opt() 1210 symbol_conf.use_callchain = false; in parse_callchain_opt() 1225 symbol_conf.cumulate_callchain = perf_config_bool(var, value); in perf_top_config() 1281 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in cmd_top() 1283 OPT_BOOLEAN(0, "ignore-vmlinux", &symbol_conf.ignore_vmlinux, in cmd_top() [all …]
|
D | builtin-annotate.c | 185 .hide_unresolved = symbol_conf.hide_unresolved, in process_branch_callback() 435 if (symbol_conf.event_group && in __cmd_annotate() 495 OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]", in cmd_annotate() 509 OPT_BOOLEAN(0, "ignore-vmlinux", &symbol_conf.ignore_vmlinux, in cmd_annotate() 511 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in cmd_annotate() 513 OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules, in cmd_annotate() 521 OPT_BOOLEAN_SET(0, "group", &symbol_conf.event_group, in cmd_annotate() 536 OPT_BOOLEAN(0, "group", &symbol_conf.event_group, in cmd_annotate() 538 OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period, in cmd_annotate() 540 OPT_BOOLEAN('n', "show-nr-samples", &symbol_conf.show_nr_samples, in cmd_annotate() [all …]
|
D | builtin-kallsyms.c | 62 symbol_conf.sort_by_name = true; in cmd_kallsyms() 63 symbol_conf.try_vmlinux_path = (symbol_conf.vmlinux_name == NULL); in cmd_kallsyms()
|
D | builtin-probe.c | 560 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in __cmd_probe() 562 OPT_STRING('s', "source", &symbol_conf.source_prefix, in __cmd_probe() 582 OPT_BOOLEAN(0, "demangle", &symbol_conf.demangle, in __cmd_probe() 584 OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel, in __cmd_probe() 587 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", in __cmd_probe() 648 symbol_conf.try_vmlinux_path = (symbol_conf.vmlinux_name == NULL); in __cmd_probe() 655 if (!strchr("lda", params.command) && symbol_conf.vmlinux_name) in __cmd_probe() 656 symbol_conf.ignore_vmlinux_buildid = true; in __cmd_probe()
|
D | builtin-diff.c | 277 if (symbol_conf.filter_relative) { in formula_delta() 699 !symbol_conf.use_callchain); in hists__process() 830 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, 832 OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules, 834 OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]", 836 OPT_STRING('C', "comms", &symbol_conf.comm_list_str, "comm[,comm...]", 838 OPT_STRING('S', "symbols", &symbol_conf.sym_list_str, "symbol[,symbol...]", 843 OPT_STRING_NOEMPTY('t', "field-separator", &symbol_conf.field_sep, "separator", 882 const char *fmt = symbol_conf.field_sep ? "%.2f" : "%6.2f%%"; in hpp__entry_baseline() 1071 if (symbol_conf.field_sep) in hpp__entry_global()
|
D | builtin-script.c | 538 symbol_conf.use_callchain = false; in perf_session__check_output_opt() 545 if (symbol_conf.use_callchain && in perf_session__check_output_opt() 621 else if (PRINT_FIELD(IP) && evsel__has_callchain(evsel) && symbol_conf.use_callchain) in perf_sample__fprintf_start() 1206 if (symbol_conf.use_callchain && sample->callchain && in perf_sample__fprintf_bts() 1681 if (symbol_conf.use_callchain && sample->callchain && in process_event() 2954 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) { in script__setup_sample_type() 3137 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in cmd_script() 3139 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, in cmd_script() 3157 OPT_STRING('S', "symbols", &symbol_conf.sym_list_str, "symbol[,symbol...]", in cmd_script() 3159 OPT_STRING(0, "stop-bt", &symbol_conf.bt_stop_list_str, "symbol[,symbol...]", in cmd_script() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | symbol.c | 40 struct symbol_conf symbol_conf = { variable 171 if (symbol_conf.allow_aliases) in symbols__fixup_duplicate() 254 struct symbol *sym = calloc(1, (symbol_conf.priv_size + in symbol__new() 259 if (symbol_conf.priv_size) { in symbol__new() 260 if (symbol_conf.init_annotation) { in symbol__new() 264 sym = ((void *)sym) + symbol_conf.priv_size; in symbol__new() 282 free(((void *)sym) - symbol_conf.priv_size); in symbol__delete() 756 if (!symbol_conf.use_modules) in map_groups__split_kallsyms() 877 if (symbol_conf.kptr_restrict) { in symbol__restricted_filename() 1545 if (!symbol_conf.force && st.st_uid && (st.st_uid != geteuid())) { in dso__load() [all …]
|
D | thread.h | 116 if (symbol_conf.comm_list && in thread__is_filtered() 117 !strlist__has_entry(symbol_conf.comm_list, thread__comm_str(thread))) { in thread__is_filtered() 121 if (symbol_conf.pid_list && in thread__is_filtered() 122 !intlist__has_entry(symbol_conf.pid_list, thread->pid_)) { in thread__is_filtered() 126 if (symbol_conf.tid_list && in thread__is_filtered() 127 !intlist__has_entry(symbol_conf.tid_list, thread->tid)) { in thread__is_filtered()
|
D | hist.c | 62 !symbol_conf.col_width_list_str && !symbol_conf.field_sep && in hists__set_unres_dso_col_len() 63 !symbol_conf.dso_list) in hists__set_unres_dso_col_len() 285 if (symbol_conf.cumulate_callchain) in hists__decay_entry() 379 if (symbol_conf.cumulate_callchain) { in hist_entry__init() 415 if (hist_entry__has_callchains(he) && symbol_conf.use_callchain) in hist_entry__init() 441 if (!symbol_conf.report_hierarchy) in hist_entry__init() 473 if (symbol_conf.use_callchain) in hist_entry__new() 490 if (symbol_conf.exclude_other && parent == NULL) in symbol__parent_filter() 497 if (!hist_entry__has_callchains(he) || !symbol_conf.use_callchain) in hist_entry__add_callchain_period() 536 if (symbol_conf.cumulate_callchain) in hists__findnew_entry() [all …]
|
D | symbol.h | 91 struct symbol_conf { struct 151 extern struct symbol_conf symbol_conf; argument 160 return path__join(bf, size, symbol_conf.symfs, path); in __symbol__join_symfs() 170 return ((void *)sym) - symbol_conf.priv_size; in symbol__priv()
|
D | machine.c | 314 (symbol_conf.guestmount)) { in machines__findnew() 315 sprintf(path, "%s/%d", symbol_conf.guestmount, pid); in machines__findnew() 824 if (symbol_conf.vmlinux_name) in machine__get_kernel() 825 vmlinux_name = symbol_conf.vmlinux_name; in machine__get_kernel() 830 if (symbol_conf.default_guest_vmlinux_name) in machine__get_kernel() 831 vmlinux_name = symbol_conf.default_guest_vmlinux_name; in machine__get_kernel() 852 scnprintf(buf, bufsz, "%s", symbol_conf.default_guest_kallsyms); in machine__get_kallsyms_filename() 1068 if (symbol_conf.default_guest_vmlinux_name || in machines__create_guest_kernel_maps() 1069 symbol_conf.default_guest_modules || in machines__create_guest_kernel_maps() 1070 symbol_conf.default_guest_kallsyms) { in machines__create_guest_kernel_maps() [all …]
|
D | callchain.c | 170 symbol_conf.use_callchain = true; in __parse_callchain_report_opt() 179 symbol_conf.use_callchain = false; in __parse_callchain_report_opt() 1080 if (sample->callchain == NULL && !symbol_conf.show_branchflag_count) in sample__resolve_callchain() 1083 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain || in sample__resolve_callchain() 1084 perf_hpp_list.parent || symbol_conf.show_branchflag_count) { in sample__resolve_callchain() 1093 if ((!symbol_conf.use_callchain || sample->callchain == NULL) && in hist_entry__append_callchain() 1094 !symbol_conf.show_branchflag_count) in hist_entry__append_callchain() 1470 if (!symbol_conf.use_callchain) in free_callchain() 1498 if (!symbol_conf.use_callchain) in decay_callchain()
|
D | evsel_fprintf.c | 176 if (symbol_conf.bt_stop_list && in sample__fprintf_callchain() 178 strlist__has_entry(symbol_conf.bt_stop_list, in sample__fprintf_callchain()
|
D | sort.c | 49 if (symbol_conf.field_sep && n > 0) { in repsep_snprintf() 53 sep = strchr(sep, *symbol_conf.field_sep); in repsep_snprintf() 612 if (symbol_conf.raw_trace) { in get_trace_output() 2331 bool raw_trace = symbol_conf.raw_trace; in add_dynamic_entry() 2638 if (symbol_conf.raw_trace) in get_default_sort_order() 2700 if (symbol_conf.cumulate_callchain) in setup_overhead() 2784 return __get_elide(symbol_conf.sym_list, "symbol", output); in get_elide() 2786 return __get_elide(symbol_conf.dso_list, "dso", output); in get_elide() 2788 return __get_elide(symbol_conf.comm_list, "comm", output); in get_elide() 2798 return __get_elide(symbol_conf.sym_from_list, "sym_from", output); in get_elide() [all …]
|
D | event.c | 915 if (symbol_conf.kptr_restrict) in __perf_event__synthesize_kernel_mmap() 1625 if (symbol_conf.dso_list && in machine__resolve() 1626 (!dso || !(strlist__has_entry(symbol_conf.dso_list, in machine__resolve() 1629 strlist__has_entry(symbol_conf.dso_list, in machine__resolve() 1637 if (symbol_conf.sym_list && in machine__resolve() 1638 (!al->sym || !strlist__has_entry(symbol_conf.sym_list, in machine__resolve()
|
D | sort.h | 187 if (symbol_conf.cumulate_callchain) in hist_entry__get_percent_limit()
|
D | annotate.c | 1392 if (symbol_conf.show_total_period) in annotation_line__print() 1395 else if (symbol_conf.show_nr_samples) in annotation_line__print() 1409 int width = symbol_conf.show_total_period ? 12 : 8; in annotation_line__print() 2066 int width = symbol_conf.show_total_period ? 12 : 8; in symbol__annotate_printf() 2089 width, width, symbol_conf.show_total_period ? "Period" : in symbol__annotate_printf() 2090 symbol_conf.show_nr_samples ? "Samples" : "Percent", in symbol__annotate_printf() 2827 annotation__default_options.show_total_period = symbol_conf.show_total_period; in annotation_config__init() 2828 annotation__default_options.show_nr_samples = symbol_conf.show_nr_samples; in annotation_config__init()
|
/Linux-v4.19/tools/perf/tests/ |
D | hists_cumulate.c | 93 if (symbol_conf.cumulate_callchain) in add_hist_entries() 196 symbol_conf.use_callchain, in do_test() 197 symbol_conf.cumulate_callchain); in do_test() 214 if (symbol_conf.cumulate_callchain) in do_test() 217 if (!symbol_conf.use_callchain) in do_test() 244 !symbol_conf.use_callchain || nr_expected == nr_callchain); in do_test() 280 symbol_conf.use_callchain = false; in test1() 281 symbol_conf.cumulate_callchain = false; in test1() 427 symbol_conf.use_callchain = true; in test2() 428 symbol_conf.cumulate_callchain = false; in test2() [all …]
|
D | builtin-test.c | 699 symbol_conf.priv_size = sizeof(int); in cmd_test() 700 symbol_conf.sort_by_name = true; in cmd_test() 701 symbol_conf.try_vmlinux_path = true; in cmd_test()
|
/Linux-v4.19/tools/perf/ui/stdio/ |
D | hist.c | 69 if (symbol_conf.show_branchflag_count) { in ipchain__fprintf_graph() 250 if (symbol_conf.show_branchflag_count) in callchain__fprintf_graph() 324 const char *sep = symbol_conf.field_sep ?: ";"; in __callchain__fprintf_folded() 379 if (symbol_conf.cumulate_callchain) in hist_entry_callchain__fprintf() 409 const char *sep = symbol_conf.field_sep; in __hist_entry__snprintf() 415 if (symbol_conf.exclude_other && !he->parent) in __hist_entry__snprintf() 454 const char *sep = symbol_conf.field_sep; in hist_entry__hierarchy_fprintf() 462 if (symbol_conf.exclude_other && !he->parent) in hist_entry__hierarchy_fprintf() 519 if (he->leaf && hist_entry__has_callchains(he) && symbol_conf.use_callchain) { in hist_entry__hierarchy_fprintf() 546 if (symbol_conf.report_hierarchy) in hist_entry__fprintf() [all …]
|
/Linux-v4.19/tools/perf/ui/ |
D | hist.c | 116 if (symbol_conf.field_sep) { in hpp__fmt() 133 if (!symbol_conf.cumulate_callchain) { in hpp__fmt_acc() 160 if (ret || !symbol_conf.event_group) in __hpp__sort() 202 if (symbol_conf.cumulate_callchain) { in __hpp__sort_acc() 210 if (a->thread != b->thread || !hist_entry__has_callchains(a) || !symbol_conf.use_callchain) in __hpp__sort_acc() 227 if (symbol_conf.event_group) in hpp__width_fn() 492 if (symbol_conf.cumulate_callchain) { in perf_hpp__init() 499 if (symbol_conf.show_cpu_utilization) { in perf_hpp__init() 509 if (symbol_conf.show_nr_samples) in perf_hpp__init() 512 if (symbol_conf.show_total_period) in perf_hpp__init() [all …]
|
/Linux-v4.19/tools/perf/ui/gtk/ |
D | hists.c | 182 first ? "" : symbol_conf.field_sep ?: "; ", in perf_gtk__add_callchain_folded() 198 first ? "" : symbol_conf.field_sep ?: "; ", in perf_gtk__add_callchain_folded() 386 symbol_conf.use_callchain && hists__has(hists, sym)) { in perf_gtk__show_hists() 388 total = symbol_conf.cumulate_callchain ? in perf_gtk__show_hists() 483 if (he->leaf && hist_entry__has_callchains(he) && symbol_conf.use_callchain) { in perf_gtk__add_hierarchy_entries() 485 total = symbol_conf.cumulate_callchain ? in perf_gtk__add_hierarchy_entries() 642 if (symbol_conf.event_group) { in perf_evlist__gtk_browse_hists() 658 if (symbol_conf.report_hierarchy) in perf_evlist__gtk_browse_hists()
|
/Linux-v4.19/tools/perf/ui/browsers/ |
D | hists.c | 43 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter || hb->c2c_filter; in hist_browser__has_filter() 77 if (symbol_conf.report_hierarchy) in hist_browser__nr_entries() 407 if (symbol_conf.report_hierarchy) in hist_browser__toggle_fold() 418 if (symbol_conf.report_hierarchy) in hist_browser__toggle_fold() 426 if (symbol_conf.report_hierarchy) in hist_browser__toggle_fold() 639 symbol_conf.report_hierarchy) in hist_browser__run() 800 if (symbol_conf.show_branchflag_count) { in hist_browser__show_callchain_list() 931 symbol_conf.field_sep ?: ";", str) < 0) in hist_browser__folded_callchain_str() 1107 if (symbol_conf.cumulate_callchain) in hist_browser__show_callchain() 1187 if (!symbol_conf.cumulate_callchain) { \ [all …]
|