| /linux-4.4.14/tools/perf/ |
| D | builtin-report.c | 74 symbol_conf.event_group = perf_config_bool(var, value); in report__config() 82 symbol_conf.cumulate_callchain = perf_config_bool(var, value); in report__config() 126 } else if (symbol_conf.cumulate_callchain) { in hist_iter__report_callback() 176 } else if (symbol_conf.cumulate_callchain) { in process_sample_event() 240 if (symbol_conf.use_callchain) { in report__setup_sample_type() 248 !symbol_conf.use_callchain) { in report__setup_sample_type() 249 symbol_conf.use_callchain = true; in report__setup_sample_type() 256 if (symbol_conf.cumulate_callchain) { in report__setup_sample_type() 259 symbol_conf.cumulate_callchain = false; in report__setup_sample_type() 273 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) { in report__setup_sample_type() [all …]
|
| D | builtin-annotate.c | 247 if (symbol_conf.event_group && in __cmd_annotate() 301 OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]", in cmd_annotate() 313 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in cmd_annotate() 315 OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules, in cmd_annotate() 324 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", in cmd_annotate() 326 OPT_BOOLEAN(0, "source", &symbol_conf.annotate_src, in cmd_annotate() 328 OPT_BOOLEAN(0, "asm-raw", &symbol_conf.annotate_asm_raw, in cmd_annotate() 334 OPT_BOOLEAN(0, "group", &symbol_conf.event_group, in cmd_annotate() 336 OPT_BOOLEAN(0, "show-total-period", &symbol_conf.show_total_period, in cmd_annotate() 362 symbol_conf.priv_size = sizeof(struct annotation); in cmd_annotate() [all …]
|
| D | builtin-mem.c | 82 if (symbol_conf.field_sep) { in dump_raw_samples() 88 symbol_conf.field_sep = " "; in dump_raw_samples() 93 symbol_conf.field_sep, in dump_raw_samples() 95 symbol_conf.field_sep, in dump_raw_samples() 97 symbol_conf.field_sep, in dump_raw_samples() 99 symbol_conf.field_sep, in dump_raw_samples() 101 symbol_conf.field_sep, in dump_raw_samples() 103 symbol_conf.field_sep, in dump_raw_samples() 288 OPT_STRING_NOEMPTY('x', "field-separator", &symbol_conf.field_sep, in cmd_mem()
|
| D | builtin-top.c | 741 symbol_conf.kptr_restrict && in perf_event__process_sample() 770 if (symbol_conf.vmlinux_name) { in perf_event__process_sample() 774 symbol_conf.vmlinux_name, serr, msg); in perf_event__process_sample() 794 if (symbol_conf.cumulate_callchain) in perf_event__process_sample() 931 if (symbol_conf.use_callchain) { in perf_top__setup_sample_type() 1049 symbol_conf.use_callchain = true; in callchain_opt() 1066 symbol_conf.use_callchain = false; in parse_callchain_opt() 1079 symbol_conf.cumulate_callchain = perf_config_bool(var, value); in perf_top_config() 1133 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in cmd_top() 1135 OPT_BOOLEAN(0, "ignore-vmlinux", &symbol_conf.ignore_vmlinux, in cmd_top() [all …]
|
| D | builtin-probe.c | 487 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in __cmd_probe() 489 OPT_STRING('s', "source", &symbol_conf.source_prefix, in __cmd_probe() 510 OPT_BOOLEAN(0, "demangle", &symbol_conf.demangle, in __cmd_probe() 512 OPT_BOOLEAN(0, "demangle-kernel", &symbol_conf.demangle_kernel, in __cmd_probe() 560 symbol_conf.try_vmlinux_path = (symbol_conf.vmlinux_name == NULL); in __cmd_probe()
|
| D | builtin-script.c | 340 symbol_conf.use_callchain = false; in perf_session__check_output_opt() 347 if (symbol_conf.use_callchain && in perf_session__check_output_opt() 400 else if (PRINT_FIELD(IP) && symbol_conf.use_callchain) in print_sample_start() 545 if (symbol_conf.use_callchain && sample->callchain) { in print_sample_bts() 625 if (!symbol_conf.use_callchain) in process_event() 1687 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain) { in script__setup_sample_type() 1752 OPT_STRING('k', "vmlinux", &symbol_conf.vmlinux_name, in cmd_script() 1754 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, in cmd_script() 1758 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", in cmd_script() 1767 OPT_STRING('S', "symbols", &symbol_conf.sym_list_str, "symbol[,symbol...]", in cmd_script() [all …]
|
| D | builtin-diff.c | 265 if (symbol_conf.filter_relative) { in formula_delta() 800 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, 802 OPT_BOOLEAN('m', "modules", &symbol_conf.use_modules, 804 OPT_STRING('d', "dsos", &symbol_conf.dso_list_str, "dso[,dso...]", 806 OPT_STRING('C', "comms", &symbol_conf.comm_list_str, "comm[,comm...]", 808 OPT_STRING('S', "symbols", &symbol_conf.sym_list_str, "symbol[,symbol...]", 813 OPT_STRING_NOEMPTY('t', "field-separator", &symbol_conf.field_sep, "separator", 816 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", 851 const char *fmt = symbol_conf.field_sep ? "%.2f" : "%6.2f%%"; in hpp__entry_baseline() 1039 if (symbol_conf.field_sep) in hpp__entry_global()
|
| D | builtin-kvm.c | 1387 symbol_conf.nr_events = kvm->evlist->nr_entries; in kvm_events_live() 1535 OPT_STRING(0, "guestmount", &symbol_conf.guestmount, "directory", in cmd_kvm() 1538 OPT_STRING(0, "guestvmlinux", &symbol_conf.default_guest_vmlinux_name, in cmd_kvm() 1540 OPT_STRING(0, "guestkallsyms", &symbol_conf.default_guest_kallsyms, in cmd_kvm() 1542 OPT_STRING(0, "guestmodules", &symbol_conf.default_guest_modules, in cmd_kvm()
|
| D | builtin-record.c | 363 symbol_conf.ignore_vmlinux_buildid = true; in process_buildids() 1171 if (symbol_conf.kptr_restrict) in cmd_record()
|
| D | builtin-inject.c | 718 OPT_STRING(0, "kallsyms", &symbol_conf.kallsyms_name, "file", in cmd_inject()
|
| D | builtin-kmem.c | 1934 symbol_conf.use_callchain = true; in cmd_kmem()
|
| D | builtin-timechart.c | 1948 OPT_STRING(0, "symfs", &symbol_conf.symfs, "directory", in cmd_timechart()
|
| /linux-4.4.14/tools/perf/util/ |
| D | symbol.c | 33 struct symbol_conf symbol_conf = { variable 232 struct symbol *sym = calloc(1, (symbol_conf.priv_size + in symbol__new() 237 if (symbol_conf.priv_size) in symbol__new() 238 sym = ((void *)sym) + symbol_conf.priv_size; in symbol__new() 254 free(((void *)sym) - symbol_conf.priv_size); in symbol__delete() 729 if (!symbol_conf.use_modules) in dso__split_kallsyms() 842 if (symbol_conf.kptr_restrict) { in symbol__restricted_filename() 1439 if (!symbol_conf.force && st.st_uid && (st.st_uid != geteuid())) { in dso__load() 1626 if (!symbol_conf.ignore_vmlinux_buildid) in dso__load_vmlinux_path() 1763 if (symbol_conf.kallsyms_name != NULL) { in dso__load_kernel_sym() [all …]
|
| D | thread.h | 100 if (symbol_conf.comm_list && in thread__is_filtered() 101 !strlist__has_entry(symbol_conf.comm_list, thread__comm_str(thread))) { in thread__is_filtered() 105 if (symbol_conf.pid_list && in thread__is_filtered() 106 !intlist__has_entry(symbol_conf.pid_list, thread->pid_)) { in thread__is_filtered() 110 if (symbol_conf.tid_list && in thread__is_filtered() 111 !intlist__has_entry(symbol_conf.tid_list, thread->tid)) { in thread__is_filtered()
|
| D | symbol.h | 83 struct symbol_conf { struct 138 extern struct symbol_conf symbol_conf; argument 142 return path__join(bf, size, symbol_conf.symfs, path); in __symbol__join_symfs() 152 return ((void *)sym) - symbol_conf.priv_size; in symbol__priv()
|
| D | hist.c | 53 !symbol_conf.col_width_list_str && !symbol_conf.field_sep && in hists__set_unres_dso_col_len() 54 !symbol_conf.dso_list) in hists__set_unres_dso_col_len() 255 if (symbol_conf.cumulate_callchain) in hists__decay_entry() 320 if (symbol_conf.use_callchain) in hist_entry__new() 328 if (symbol_conf.cumulate_callchain) { in hist_entry__new() 367 if (symbol_conf.use_callchain) in hist_entry__new() 379 if (symbol_conf.exclude_other && parent == NULL) in symbol__parent_filter() 413 if (symbol_conf.cumulate_callchain) in hists__findnew_entry() 452 if (symbol_conf.cumulate_callchain) in hists__findnew_entry() 827 if (symbol_conf.use_callchain) in iter_add_next_cumulative_entry() [all …]
|
| D | callchain.c | 91 symbol_conf.use_callchain = true; in __parse_callchain_report_opt() 99 symbol_conf.use_callchain = false; in __parse_callchain_report_opt() 716 if (symbol_conf.use_callchain || symbol_conf.cumulate_callchain || in sample__resolve_callchain() 726 if (!symbol_conf.use_callchain || sample->callchain == NULL) in hist_entry__append_callchain() 826 if (!symbol_conf.use_callchain) in free_callchain()
|
| D | machine.c | 249 (symbol_conf.guestmount)) { in machines__findnew() 250 sprintf(path, "%s/%d", symbol_conf.guestmount, pid); in machines__findnew() 668 vmlinux_name = symbol_conf.vmlinux_name; in machine__get_kernel() 678 vmlinux_name = symbol_conf.default_guest_vmlinux_name; in machine__get_kernel() 702 scnprintf(buf, bufsz, "%s", symbol_conf.default_guest_kallsyms); in machine__get_kallsyms_filename() 804 if (symbol_conf.default_guest_vmlinux_name || in machines__create_guest_kernel_maps() 805 symbol_conf.default_guest_modules || in machines__create_guest_kernel_maps() 806 symbol_conf.default_guest_kallsyms) { in machines__create_guest_kernel_maps() 810 if (symbol_conf.guestmount) { in machines__create_guest_kernel_maps() 811 items = scandir(symbol_conf.guestmount, &namelist, NULL, NULL); in machines__create_guest_kernel_maps() [all …]
|
| D | sort.c | 35 if (symbol_conf.field_sep && n > 0) { in repsep_snprintf() 39 sep = strchr(sep, *symbol_conf.field_sep); in repsep_snprintf() 1792 return __get_elide(symbol_conf.sym_list, "symbol", output); in get_elide() 1794 return __get_elide(symbol_conf.dso_list, "dso", output); in get_elide() 1796 return __get_elide(symbol_conf.comm_list, "comm", output); in get_elide() 1806 return __get_elide(symbol_conf.sym_from_list, "sym_from", output); in get_elide() 1808 return __get_elide(symbol_conf.sym_to_list, "sym_to", output); in get_elide() 1810 return __get_elide(symbol_conf.dso_from_list, "dso_from", output); in get_elide() 1812 return __get_elide(symbol_conf.dso_to_list, "dso_to", output); in get_elide()
|
| D | event.c | 1036 if (symbol_conf.dso_list && in perf_event__preprocess_sample() 1037 (!dso || !(strlist__has_entry(symbol_conf.dso_list, in perf_event__preprocess_sample() 1040 strlist__has_entry(symbol_conf.dso_list, in perf_event__preprocess_sample() 1049 if (symbol_conf.sym_list && in perf_event__preprocess_sample() 1050 (!al->sym || !strlist__has_entry(symbol_conf.sym_list, in perf_event__preprocess_sample()
|
| D | sort.h | 154 if (symbol_conf.cumulate_callchain) in hist_entry__get_percent_limit()
|
| D | annotate.h | 143 return (void *)sym - symbol_conf.priv_size; in symbol__annotation()
|
| D | annotate.c | 464 / symbol_conf.nr_events) in symbol__alloc_hist() 467 notes->src = zalloc(sizeof(*notes->src) + symbol_conf.nr_events * sizeof_sym_hist); in symbol__alloc_hist() 471 notes->src->nr_histograms = symbol_conf.nr_events; in symbol__alloc_hist() 898 if (symbol_conf.show_total_period) in disasm_line__print() 1204 symbol_conf.annotate_asm_raw ? "" : "--no-show-raw", in symbol__annotate() 1205 symbol_conf.annotate_src ? "-S" : "", in symbol__annotate()
|
| D | config.c | 391 symbol_conf.show_hist_headers = perf_config_bool(var, value); in perf_ui_config()
|
| D | evsel.h | 342 if (!symbol_conf.event_group) in perf_evsel__is_group_event()
|
| D | hist.h | 293 return !symbol_conf.field_sep; in perf_hpp__use_color()
|
| D | probe-event.c | 78 symbol_conf.sort_by_name = true; in init_probe_symbol_maps() 79 symbol_conf.allow_aliases = true; in init_probe_symbol_maps() 89 if (symbol_conf.vmlinux_name) in init_probe_symbol_maps() 90 pr_debug("Use vmlinux: %s\n", symbol_conf.vmlinux_name); in init_probe_symbol_maps() 293 vmlinux_name = symbol_conf.vmlinux_name; in kernel_get_module_dso()
|
| D | dso.c | 61 if (symbol_conf.symfs[0] || in dso__read_binary_type_filename() 119 path__join3(filename, size, symbol_conf.symfs, in dso__read_binary_type_filename()
|
| D | symbol-elf.c | 776 return is_kernel_sym ? symbol_conf.demangle_kernel : symbol_conf.demangle; in want_demangle() 1094 if (!symbol_conf.allow_aliases) in dso__load_sym()
|
| D | intel-pt.c | 2131 if (pt->synth_opts.callchain && !symbol_conf.use_callchain) { in intel_pt_process_auxtrace_info() 2132 symbol_conf.use_callchain = true; in intel_pt_process_auxtrace_info() 2134 symbol_conf.use_callchain = false; in intel_pt_process_auxtrace_info()
|
| D | probe-finder.c | 1751 const char *prefix = symbol_conf.source_prefix; in get_real_path() 1776 if (!symbol_conf.source_prefix) { in get_real_path()
|
| D | map.c | 390 if (symbol_conf.show_kernel_path && map->dso->long_name) in map__fprintf_dsoname()
|
| D | header.c | 2636 symbol_conf.nr_events = nr_attrs; in perf_session__read_header() 2743 symbol_conf.nr_events = evlist->nr_entries; in perf_event__process_attr()
|
| D | session.c | 1798 if (symbol_conf.use_callchain && sample->callchain) { in perf_evsel__print_ip()
|
| /linux-4.4.14/tools/perf/tests/ |
| D | hists_cumulate.c | 95 if (symbol_conf.cumulate_callchain) in add_hist_entries() 198 symbol_conf.use_callchain, in do_test() 199 symbol_conf.cumulate_callchain); in do_test() 216 if (symbol_conf.cumulate_callchain) in do_test() 219 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 | 328 symbol_conf.priv_size = sizeof(int); in cmd_test() 329 symbol_conf.sort_by_name = true; in cmd_test() 330 symbol_conf.try_vmlinux_path = true; in cmd_test()
|
| D | code-reading.c | 473 symbol_conf.kallsyms_name = "/proc/kallsyms"; in do_test_code_reading()
|
| /linux-4.4.14/tools/perf/ui/ |
| D | hist.c | 113 if (symbol_conf.field_sep) { in hpp__fmt() 130 if (!symbol_conf.cumulate_callchain) { in hpp__fmt_acc() 157 if (ret || !symbol_conf.event_group) in __hpp__sort() 199 if (symbol_conf.cumulate_callchain) { in __hpp__sort_acc() 207 if (a->thread != b->thread || !symbol_conf.use_callchain) in __hpp__sort_acc() 221 if (symbol_conf.event_group) in hpp__width_fn() 465 if (symbol_conf.cumulate_callchain) { in perf_hpp__init() 472 if (symbol_conf.show_cpu_utilization) { in perf_hpp__init() 482 if (symbol_conf.show_nr_samples) in perf_hpp__init() 485 if (symbol_conf.show_total_period) in perf_hpp__init() [all …]
|
| /linux-4.4.14/tools/perf/ui/stdio/ |
| D | hist.c | 270 symbol_conf.cumulate_callchain ? in hist_entry_callchain__fprintf() 316 const char *sep = symbol_conf.field_sep; in hist_entry__snprintf() 322 if (symbol_conf.exclude_other && !he->parent) in hist_entry__snprintf() 367 if (symbol_conf.use_callchain) in hist_entry__fprintf() 380 const char *sep = symbol_conf.field_sep; in hists__fprintf() 396 if (symbol_conf.col_width_list_str) in hists__fprintf() 397 perf_hpp__set_user_width(symbol_conf.col_width_list_str); in hists__fprintf()
|
| /linux-4.4.14/tools/perf/ui/browsers/ |
| D | hists.c | 50 return hists__has_filter(hb->hists) || hb->min_pcnt || symbol_conf.has_filter; in hist_browser__has_filter() 717 if (!symbol_conf.cumulate_callchain) { \ 774 if (symbol_conf.use_callchain) { in hist_browser__show_entry() 807 if (symbol_conf.use_callchain) { in hist_browser__show_entry() 844 if (symbol_conf.cumulate_callchain) in hist_browser__show_entry() 879 if (symbol_conf.use_callchain) { in hists_browser__scnprintf_headers() 1126 if (symbol_conf.cumulate_callchain) in hist_browser__fprintf_callchain() 1149 if (symbol_conf.use_callchain) in hist_browser__fprintf_entry() 1152 if (symbol_conf.use_callchain) in hist_browser__fprintf_entry() 1238 browser->show_headers = symbol_conf.show_hist_headers; in hist_browser__new() [all …]
|
| D | annotate.c | 882 symbol_conf.show_total_period; in map_symbol__tui_annotate()
|
| /linux-4.4.14/tools/perf/ui/gtk/ |
| D | hists.c | 252 if (symbol_conf.use_callchain && sort__has_sym) { in perf_gtk__show_hists() 254 total = symbol_conf.cumulate_callchain ? in perf_gtk__show_hists() 320 if (symbol_conf.event_group) { in perf_evlist__gtk_browse_hists()
|
| D | annotate.c | 36 if (!symbol_conf.event_group && !symhist->addr[dl->offset]) in perf_gtk__get_percent()
|
| /linux-4.4.14/tools/perf/util/scripting-engines/ |
| D | trace-event-python.c | 317 if (!symbol_conf.use_callchain || !sample->callchain) in python_process_callchain() 364 if (symbol_conf.show_kernel_path && map->dso->long_name) in python_process_callchain() 936 symbol_conf.priv_size = sizeof(u64); in set_table_handlers()
|