Home
last modified time | relevance | path

Searched refs:dso (Results 1 – 67 of 67) sorted by relevance

/linux-4.1.27/tools/perf/util/
Ddso.c10 char dso__symtab_origin(const struct dso *dso) in dso__symtab_origin() argument
31 if (dso == NULL || dso->symtab_type == DSO_BINARY_TYPE__NOT_FOUND) in dso__symtab_origin()
33 return origin[dso->symtab_type]; in dso__symtab_origin()
36 int dso__read_binary_type_filename(const struct dso *dso, in dso__read_binary_type_filename() argument
48 len = __symbol__join_symfs(filename, size, dso->long_name); in dso__read_binary_type_filename()
61 (dso__build_id_filename(dso, filename, size) == NULL)) in dso__read_binary_type_filename()
67 snprintf(filename + len, size - len, "%s.debug", dso->long_name); in dso__read_binary_type_filename()
72 snprintf(filename + len, size - len, "%s", dso->long_name); in dso__read_binary_type_filename()
80 last_slash = dso->long_name + dso->long_name_len; in dso__read_binary_type_filename()
81 while (last_slash != dso->long_name && *last_slash != '/') in dso__read_binary_type_filename()
[all …]
Ddso.h88 #define DSO__SWAP(dso, type, val) \ argument
91 BUG_ON(dso->needs_swap == DSO_SWAP__UNSET); \
92 if (dso->needs_swap == DSO_SWAP__YES) { \
129 struct dso { struct
187 #define dso__for_each_symbol(dso, pos, n, type) \ argument
188 symbols__for_each_entry(&(dso)->symbols[(type)], pos, n)
190 static inline void dso__set_loaded(struct dso *dso, enum map_type type) in dso__set_loaded() argument
192 dso->loaded |= (1 << type); in dso__set_loaded()
195 struct dso *dso__new(const char *name);
196 void dso__delete(struct dso *dso);
[all …]
Dvdso.c123 static struct dso *vdso__new(struct machine *machine, const char *short_name, in vdso__new()
126 struct dso *dso; in vdso__new() local
128 dso = dso__new(short_name); in vdso__new()
129 if (dso != NULL) { in vdso__new()
130 dsos__add(&machine->user_dsos, dso); in vdso__new()
131 dso__set_long_name(dso, long_name, false); in vdso__new()
134 return dso; in vdso__new()
144 struct dso *dso; in machine__thread_dso_type() local
148 dso = map->dso; in machine__thread_dso_type()
149 if (!dso || dso->long_name[0] != '/') in machine__thread_dso_type()
[all …]
Dsymbol.c26 static int dso__load_kernel_sym(struct dso *dso, struct map *map,
28 static int dso__load_guest_kernel_sym(struct dso *dso, struct map *map,
438 struct symbol *dso__find_symbol(struct dso *dso, in dso__find_symbol() argument
441 return symbols__find(&dso->symbols[type], addr); in dso__find_symbol()
444 struct symbol *dso__first_symbol(struct dso *dso, enum map_type type) in dso__first_symbol() argument
446 return symbols__first(&dso->symbols[type]); in dso__first_symbol()
465 struct symbol *dso__find_symbol_by_name(struct dso *dso, enum map_type type, in dso__find_symbol_by_name() argument
468 return symbols__find_by_name(&dso->symbol_names[type], name); in dso__find_symbol_by_name()
471 void dso__sort_by_name(struct dso *dso, enum map_type type) in dso__sort_by_name() argument
473 dso__set_sorted_by_name(dso, type); in dso__sort_by_name()
[all …]
Dsrcline.c151 char **file, unsigned int *line, struct dso *dso) in addr2line() argument
154 struct a2l_data *a2l = dso->a2l; in addr2line()
157 dso->a2l = addr2line_init(dso_name); in addr2line()
158 a2l = dso->a2l; in addr2line()
182 void dso__free_a2l(struct dso *dso) in dso__free_a2l() argument
184 struct a2l_data *a2l = dso->a2l; in dso__free_a2l()
191 dso->a2l = NULL; in dso__free_a2l()
198 struct dso *dso __maybe_unused) in addr2line()
243 void dso__free_a2l(struct dso *dso __maybe_unused) in dso__free_a2l()
255 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym, in get_srcline() argument
[all …]
Dsymbol.h223 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name,
228 int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter);
229 int dso__load_vmlinux(struct dso *dso, struct map *map,
232 int dso__load_vmlinux_path(struct dso *dso, struct map *map,
234 int dso__load_kallsyms(struct dso *dso, const char *filename, struct map *map,
237 struct symbol *dso__find_symbol(struct dso *dso, enum map_type type,
239 struct symbol *dso__find_symbol_by_name(struct dso *dso, enum map_type type,
243 struct symbol *dso__first_symbol(struct dso *dso, enum map_type type);
270 int dso__load_sym(struct dso *dso, struct map *map, struct symsrc *syms_ss,
273 int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss,
Dmap.c126 u64 start, u64 end, u64 pgoff, struct dso *dso) in map__init() argument
133 map->dso = dso; in map__init()
151 struct dso *dso; in map__new() local
178 dso = vdso__dso_findnew(machine, thread); in map__new()
180 dso = __dsos__findnew(&machine->user_dsos, filename); in map__new()
182 if (dso == NULL) in map__new()
185 map__init(map, type, start, start + len, pgoff, dso); in map__new()
196 dso__set_loaded(dso, map->type); in map__new()
210 struct map *map__new2(u64 start, struct dso *dso, enum map_type type) in map__new2() argument
213 (dso->kernel ? sizeof(struct kmap) : 0))); in map__new2()
[all …]
Ddb-export.h26 struct dso;
56 int (*export_dso)(struct db_export *dbe, struct dso *dso,
59 struct dso *dso);
91 int db_export__dso(struct db_export *dbe, struct dso *dso,
94 struct dso *dso);
Dsymbol-elf.c215 int dso__synthesize_plt_symbols(struct dso *dso, struct symsrc *ss, struct map *map, in dso__synthesize_plt_symbols() argument
307 symbols__insert(&dso->symbols[map->type], f); in dso__synthesize_plt_symbols()
329 symbols__insert(&dso->symbols[map->type], f); in dso__synthesize_plt_symbols()
340 __func__, dso->long_name); in dso__synthesize_plt_symbols()
552 static int dso__swap_init(struct dso *dso, unsigned char eidata) in dso__swap_init() argument
556 dso->needs_swap = DSO_SWAP__NO; in dso__swap_init()
562 dso->needs_swap = DSO_SWAP__YES; in dso__swap_init()
568 dso->needs_swap = DSO_SWAP__YES; in dso__swap_init()
579 static int decompress_kmodule(struct dso *dso, const char *name, in decompress_kmodule() argument
592 name = dso->long_name; in decompress_kmodule()
[all …]
Dunwind-libunwind.c241 static int unwind_spec_ehframe(struct dso *dso, struct machine *machine, in unwind_spec_ehframe() argument
250 r = dso__data_read_offset(dso, machine, offset, in unwind_spec_ehframe()
264 static int read_unwind_spec_eh_frame(struct dso *dso, struct machine *machine, in read_unwind_spec_eh_frame() argument
269 u64 offset = dso->data.eh_frame_hdr_offset; in read_unwind_spec_eh_frame()
272 fd = dso__data_fd(dso, machine); in read_unwind_spec_eh_frame()
278 dso->data.eh_frame_hdr_offset = offset; in read_unwind_spec_eh_frame()
282 ret = unwind_spec_ehframe(dso, machine, offset, in read_unwind_spec_eh_frame()
290 static int read_unwind_spec_debug_frame(struct dso *dso, in read_unwind_spec_debug_frame() argument
294 u64 ofs = dso->data.debug_frame_offset; in read_unwind_spec_debug_frame()
297 fd = dso__data_fd(dso, machine); in read_unwind_spec_debug_frame()
[all …]
Ddb-export.c199 int db_export__dso(struct db_export *dbe, struct dso *dso, in db_export__dso() argument
202 if (dso->db_id) in db_export__dso()
205 dso->db_id = ++dbe->dso_last_db_id; in db_export__dso()
208 return dbe->export_dso(dbe, dso, machine); in db_export__dso()
214 struct dso *dso) in db_export__symbol() argument
224 return dbe->export_symbol(dbe, sym, dso); in db_export__symbol()
246 struct dso *dso = al->map->dso; in db_ids_from_al() local
248 err = db_export__dso(dbe, dso, al->machine); in db_ids_from_al()
251 *dso_db_id = dso->db_id; in db_ids_from_al()
256 symbols__insert(&dso->symbols[al->map->type], in db_ids_from_al()
[all …]
Dvdso.h19 struct dso;
21 bool dso__is_vdso(struct dso *dso);
26 struct dso *vdso__dso_findnew(struct machine *machine, struct thread *thread);
Dmachine.c83 struct dso *pos, *n; in dsos__delete()
461 static struct dso*
465 struct dso *dso; in machine__module_dso() local
467 dso = dsos__find(&machine->kernel_dsos, m->name, true); in machine__module_dso()
468 if (!dso) { in machine__module_dso()
469 dso = dsos__addnew(&machine->kernel_dsos, m->name); in machine__module_dso()
470 if (dso == NULL) in machine__module_dso()
474 dso->symtab_type = DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE; in machine__module_dso()
476 dso->symtab_type = DSO_BINARY_TYPE__GUEST_KMODULE; in machine__module_dso()
480 dso->symtab_type++; in machine__module_dso()
[all …]
Dbuild-id.c44 al.map->dso->hit = 1; in build_id__mark_dso_hit()
122 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size) in dso__build_id_filename() argument
126 if (!dso->has_build_id) in dso__build_id_filename()
129 build_id__sprintf(dso->build_id, sizeof(dso->build_id), build_id_hex); in dso__build_id_filename()
167 struct dso *pos; in __dsos__write_buildid_table()
237 struct dso *pos; in __dsos__hit_all()
462 static int dso__cache_build_id(struct dso *dso, struct machine *machine) in dso__cache_build_id() argument
464 bool is_kallsyms = dso->kernel && dso->long_name[0] != '/'; in dso__cache_build_id()
465 bool is_vdso = dso__is_vdso(dso); in dso__cache_build_id()
466 const char *name = dso->long_name; in dso__cache_build_id()
[all …]
Dunwind-libdw.c27 struct dso *dso = NULL; in __report_module() local
34 dso = al->map->dso; in __report_module()
36 if (!dso) in __report_module()
41 mod = dwfl_report_elf(ui->dwfl, dso->short_name, in __report_module()
42 dso->long_name, -1, al->map->start, in __report_module()
99 if (!al.map->dso) in access_dso_mem()
102 size = dso__data_read_addr(al.map->dso, al.map, ui->machine, in access_dso_mem()
Dsymbol-minimal.c249 int symsrc__init(struct symsrc *ss, struct dso *dso, const char *name, in symsrc__init() argument
267 dso->load_errno = errno; in symsrc__init()
288 int dso__synthesize_plt_symbols(struct dso *dso __maybe_unused, in dso__synthesize_plt_symbols()
334 int dso__load_sym(struct dso *dso, struct map *map __maybe_unused, in dso__load_sym() argument
345 dso->is_64_bit = ret; in dso__load_sym()
348 dso__set_build_id(dso, build_id); in dso__load_sym()
Dmap.h20 struct dso;
51 struct dso *dso; member
115 dso__for_each_symbol(map->dso, pos, n, map->type)
136 u64 start, u64 end, u64 pgoff, struct dso *dso);
141 struct map *map__new2(u64 start, struct dso *dso, enum map_type type);
Dbuild-id.h11 struct dso;
14 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size);
Dannotate.c928 struct dso *dso = map->dso; in symbol__annotate() local
929 char *filename = dso__build_id_filename(dso, NULL, 0); in symbol__annotate()
943 if (dso->has_build_id) { in symbol__annotate()
949 } else if (dso__is_kcore(dso)) { in symbol__annotate()
961 filename = (char *)dso->long_name; in symbol__annotate()
966 if (dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS && in symbol__annotate()
967 !dso__is_kcore(dso)) { in symbol__annotate()
971 if (dso->annotate_warned) in symbol__annotate()
974 if (dso->has_build_id) { in symbol__annotate()
975 build_id__sprintf(dso->build_id, in symbol__annotate()
[all …]
Dmachine.h193 bool (skip)(struct dso *dso, int parm), int parm);
196 bool (skip)(struct dso *dso, int parm), int parm);
199 int __machine__create_kernel_maps(struct machine *machine, struct dso *kernel);
Devent.c353 if (pos->dso->kernel) in perf_event__synthesize_modules()
356 size = PERF_ALIGN(pos->dso->long_name_len + 1, sizeof(u64)); in perf_event__synthesize_modules()
366 memcpy(event->mmap.filename, pos->dso->long_name, in perf_event__synthesize_modules()
367 pos->dso->long_name_len + 1); in perf_event__synthesize_modules()
906 al->map ? al->map->dso->long_name : in perf_event__preprocess_sample()
916 struct dso *dso = al->map->dso; in perf_event__preprocess_sample() local
919 (!dso || !(strlist__has_entry(symbol_conf.dso_list, in perf_event__preprocess_sample()
920 dso->short_name) || in perf_event__preprocess_sample()
921 (dso->short_name != dso->long_name && in perf_event__preprocess_sample()
923 dso->long_name))))) { in perf_event__preprocess_sample()
Dprobe-event.c176 if (strncmp(pos->dso->short_name + 1, module, in kernel_get_module_map()
177 pos->dso->short_name_len - 2) == 0) { in kernel_get_module_map()
197 dso__delete(map->dso); in put_target_map()
203 static struct dso *kernel_get_module_dso(const char *module) in kernel_get_module_dso()
205 struct dso *dso; in kernel_get_module_dso() local
210 list_for_each_entry(dso, &host_machine->kernel_dsos.head, in kernel_get_module_dso()
212 if (strncmp(dso->short_name + 1, module, in kernel_get_module_dso()
213 dso->short_name_len - 2) == 0) in kernel_get_module_dso()
221 dso = map->dso; in kernel_get_module_dso()
225 if (dso__load_vmlinux(dso, map, vmlinux_name, false, NULL) <= 0) in kernel_get_module_dso()
[all …]
Dsession.h91 bool (fn)(struct dso *dso, int parm), int parm);
Dutil.h312 struct dso;
315 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
Dthread-stack.h28 struct dso;
Dhist.c46 static void hists__set_unres_dso_col_len(struct hists *hists, int dso) in hists__set_unres_dso_col_len() argument
50 if (hists__col_len(hists, dso) < unresolved_col_width && in hists__set_unres_dso_col_len()
53 hists__set_col_len(hists, dso, unresolved_col_width); in hists__set_unres_dso_col_len()
83 len = dso__name_len(h->ms.map->dso); in hists__calc_col_len()
97 symlen = dso__name_len(h->branch_info->from.map->dso); in hists__calc_col_len()
111 symlen = dso__name_len(h->branch_info->to.map->dso); in hists__calc_col_len()
134 symlen = dso__name_len(h->mem_info->daddr.map->dso); in hists__calc_col_len()
1184 (he->ms.map == NULL || he->ms.map->dso != hists->dso_filter)) { in hists__filter_entry_by_dso()
Dsort.c127 struct dso *dso_l = map_l ? map_l->dso : NULL; in _sort__dso_cmp()
128 struct dso *dso_r = map_r ? map_r->dso : NULL; in _sort__dso_cmp()
154 if (map && map->dso) { in _hist_entry__dso_snprintf()
155 const char *dso_name = !verbose ? map->dso->short_name : in _hist_entry__dso_snprintf()
156 map->dso->long_name; in _hist_entry__dso_snprintf()
236 char o = map ? dso__symtab_origin(map->dso) : '!'; in _hist_entry__sym_snprintf()
293 left->srcline = get_srcline(map->dso, in sort__srcline_cmp()
303 right->srcline = get_srcline(map->dso, in sort__srcline_cmp()
Dhist.h54 struct dso;
64 const struct dso *dso_filter;
Dheader.h142 struct dso *pos, u16 misc,
Dheader.c1224 struct dso *dso; in __event_process_build_id() local
1251 dso = __dsos__findnew(dsos, filename); in __event_process_build_id()
1252 if (dso != NULL) { in __event_process_build_id()
1255 dso__set_build_id(dso, &bev->build_id); in __event_process_build_id()
1258 dso->kernel = dso_type; in __event_process_build_id()
1260 build_id__sprintf(dso->build_id, sizeof(dso->build_id), in __event_process_build_id()
1263 dso->long_name, sbuild_id); in __event_process_build_id()
2746 struct dso *pos, u16 misc, in perf_event__synthesize_build_id()
Dprobe-finder.c117 struct dso *dso; in debuginfo__new() local
121 dso = dso__new(path); in debuginfo__new()
122 if (!dso) in debuginfo__new()
128 if (dso__read_binary_type_filename(dso, *type, &nil, in debuginfo__new()
133 dso__delete(dso); in debuginfo__new()
Dcallchain.c832 cl->srcline = get_srcline(cl->ms.map->dso, in callchain_list__sym_name()
847 cl->ms.map->dso->short_name : in callchain_list__sym_name()
DBuild33 libperf-y += dso.o
Dsession.c1484 bool (skip)(struct dso *dso, int parm), int parm) in perf_session__fprintf_dsos_buildid() argument
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DEventClass.py24 def create_event(name, comm, dso, symbol, raw_buf): argument
26 event = PebsEvent(name, comm, dso, symbol, raw_buf)
28 event = PebsNHM(name, comm, dso, symbol, raw_buf)
30 event = PerfEvent(name, comm, dso, symbol, raw_buf)
36 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument
39 self.dso = dso
46 … event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" % (self.name, self.symbol, self.comm, self.dso)
55 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument
69 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type)
84 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument
[all …]
/linux-4.1.27/tools/perf/tests/
Ddso-data.c105 struct dso *dso; in test__dso_data() local
113 dso = dso__new((const char *)file); in test__dso_data()
116 dso__data_fd(dso, &machine) >= 0); in test__dso_data()
125 size = dso__data_read_offset(dso, &machine, data->offset, in test__dso_data()
144 size = dso__data_read_offset(dso, &machine, 10, in test__dso_data()
158 dso__delete(dso); in test__dso_data()
188 static struct dso **dsos;
215 struct dso *dso = dsos[i]; in dsos__delete() local
217 unlink(dso->name); in dsos__delete()
218 dso__delete(dso); in dsos__delete()
[all …]
Dhists_common.c121 struct dso *dso; in setup_fake_machine() local
123 dso = __dsos__findnew(&machine->user_dsos, in setup_fake_machine()
125 if (dso == NULL) in setup_fake_machine()
129 dso__set_loaded(dso, MAP__FUNCTION); in setup_fake_machine()
140 symbols__insert(&dso->symbols[MAP__FUNCTION], sym); in setup_fake_machine()
174 he->ms.map->dso->short_name, in print_hists_in()
201 he->ms.map->dso->short_name, in print_hists_out()
Dvmlinux-kallsyms.c110 for (nd = rb_first(&vmlinux_map->dso->symbols[type]); nd; nd = rb_next(nd)) { in test__vmlinux_matches_kallsyms()
196 (pos->dso->kernel ? in test__vmlinux_matches_kallsyms()
197 pos->dso->short_name : in test__vmlinux_matches_kallsyms()
198 pos->dso->name)); in test__vmlinux_matches_kallsyms()
220 pos->start, pos->end, pos->pgoff, pos->dso->name); in test__vmlinux_matches_kallsyms()
224 pr_info(" %s\n", pair->dso->name); in test__vmlinux_matches_kallsyms()
Dcode-reading.c148 if (!al.map || !al.map->dso) { in read_object_code()
153 pr_debug("File is: %s\n", al.map->dso->long_name); in read_object_code()
155 if (al.map->dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS && in read_object_code()
156 !dso__is_kcore(al.map->dso)) { in read_object_code()
171 ret_len = dso__data_read_offset(al.map->dso, thread->mg->machine, in read_object_code()
186 if (dso__is_kcore(al.map->dso)) { in read_object_code()
205 ret = read_via_objdump(al.map->dso->long_name, objdump_addr, buf2, len); in read_object_code()
216 } else if (dso__is_kcore(al.map->dso)) { in read_object_code()
433 have_vmlinux = dso__is_vmlinux(map->dso); in do_test_code_reading()
434 have_kcore = dso__is_kcore(map->dso); in do_test_code_reading()
Dhists_cumulate.c150 #define DSO(he) (he->ms.map->dso->short_name)
155 #define CDSO(cl) (cl->ms.map->dso->short_name)
162 const char *dso; member
169 const char *dso; member
209 !strcmp(DSO(he), expected[i].dso) && in do_test()
229 !strcmp(CDSO(clist), expected_callchain[i].node[c].dso) && in do_test()
Dhists_filter.c193 hists->dso_filter = fake_samples[0].map->dso; in test__hists_filter()
254 hists->dso_filter = fake_samples[1].map->dso; in test__hists_filter()
DBuild3 perf-y += dso-data.o
Dhists_output.c116 #define DSO(he) (he->ms.map->dso->short_name)
/linux-4.1.27/tools/perf/arch/powerpc/util/
Dskip-callchain-idx.c148 static int check_return_addr(struct dso *dso, u64 map_start, Dwarf_Addr pc) in check_return_addr() argument
158 const char *exec_file = dso->long_name; in check_return_addr()
160 dwfl = dso->dwfl; in check_return_addr()
182 dso->dwfl = dwfl; in check_return_addr()
241 struct dso *dso = NULL; in arch_skip_callchain_idx() local
255 dso = al.map->dso; in arch_skip_callchain_idx()
257 if (!dso) { in arch_skip_callchain_idx()
262 rc = check_return_addr(dso, al.map->start, ip); in arch_skip_callchain_idx()
265 dso->long_name, al.sym->name, ip, rc); in arch_skip_callchain_idx()
/linux-4.1.27/tools/perf/
Dbuiltin-inject.c170 static int dso__read_build_id(struct dso *dso) in dso__read_build_id() argument
172 if (dso->has_build_id) in dso__read_build_id()
175 if (filename__read_build_id(dso->long_name, dso->build_id, in dso__read_build_id()
176 sizeof(dso->build_id)) > 0) { in dso__read_build_id()
177 dso->has_build_id = true; in dso__read_build_id()
184 static int dso__inject_build_id(struct dso *dso, struct perf_tool *tool, in dso__inject_build_id() argument
190 if (dso__read_build_id(dso) < 0) { in dso__inject_build_id()
191 pr_debug("no build_id found for %s\n", dso->long_name); in dso__inject_build_id()
195 if (dso->kernel) in dso__inject_build_id()
198 err = perf_event__synthesize_build_id(tool, dso, misc, perf_event__repipe, in dso__inject_build_id()
[all …]
Dbuiltin-buildid-list.c48 static bool dso__skip_buildid(struct dso *dso, int with_hits) in dso__skip_buildid() argument
50 return with_hits && !dso->hit; in dso__skip_buildid()
Dbuiltin-buildid-cache.c249 static bool dso__missing_buildid_cache(struct dso *dso, int parm __maybe_unused) in dso__missing_buildid_cache() argument
254 if (dso__build_id_filename(dso, filename, sizeof(filename)) && in dso__missing_buildid_cache()
262 } else if (memcmp(dso->build_id, build_id, sizeof(dso->build_id))) { in dso__missing_buildid_cache()
Dbuiltin-mem.c80 al.map->dso->hit = 1; in dump_raw_samples()
104 al.map ? (al.map->dso ? al.map->dso->long_name : "???") : "???", in dump_raw_samples()
Dbuiltin-top.c105 if (map->dso->symtab_type == DSO_BINARY_TYPE__KALLSYMS && in perf_top__parse_source()
106 !dso__is_kcore(map->dso)) { in perf_top__parse_source()
160 ip, map->dso->long_name, dso__symtab_origin(map->dso), in ui__warn_map_erange()
649 if (!map->dso->kernel) in symbol_filter()
736 al.map && !RB_EMPTY_ROOT(&al.map->dso->symbols[MAP__FUNCTION]) ? in perf_event__process_sample()
758 RB_EMPTY_ROOT(&al.map->dso->symbols[MAP__FUNCTION])) { in perf_event__process_sample()
761 dso__strerror_load(al.map->dso, serr, sizeof(serr)); in perf_event__process_sample()
Dbuiltin-report.c167 al.map->dso->hit = 1; in process_sample_event()
353 (kernel_map->dso->hit && in report__warn_kptr_restrict()
361 const struct dso *kdso = kernel_map->dso; in report__warn_kptr_restrict()
Dbuiltin-annotate.c64 &al->map->dso->symbols[al->map->type]); in perf_evsel__add_sample()
125 if (he->ms.sym == NULL || he->ms.map->dso->annotate_warned) in hists__find_annotations()
Dbuiltin-trace.c1906 fprintf(f, "%s@", al->map->dso->long_name); in print_location()
/linux-4.1.27/tools/perf/scripts/python/
Devent_analyzing_sample.py79 dso = param_dict["dso"]
81 dso = "Unknown_dso"
89 event = create_event(name, comm, dso, symbol, raw_buf)
95 (event.name, event.symbol, event.comm, event.dso))
100 (event.name, event.symbol, event.comm, event.dso, event.flags,
/linux-4.1.27/tools/perf/util/scripting-engines/
Dtrace-event-python.c362 if (map && map->dso && (map->dso->name || map->dso->long_name)) { in python_process_callchain()
363 if (symbol_conf.show_kernel_path && map->dso->long_name) in python_process_callchain()
364 dsoname = map->dso->long_name; in python_process_callchain()
365 else if (map->dso->name) in python_process_callchain()
366 dsoname = map->dso->name; in python_process_callchain()
606 static int python_export_dso(struct db_export *dbe, struct dso *dso, in python_export_dso() argument
613 build_id__sprintf(dso->build_id, sizeof(dso->build_id), sbuild_id); in python_export_dso()
617 tuple_set_u64(t, 0, dso->db_id); in python_export_dso()
619 tuple_set_string(t, 2, dso->short_name); in python_export_dso()
620 tuple_set_string(t, 3, dso->long_name); in python_export_dso()
[all …]
/linux-4.1.27/tools/perf/ui/browsers/
Dhists.c1241 const struct dso *dso = hists->dso_filter; in hists__browser_title() local
1288 if (dso) in hists__browser_title()
1290 ", DSO: %s", dso->short_name); in hists__browser_title()
1492 const struct dso *dso = NULL; in perf_evsel__hists_browse() local
1505 dso = browser->selection->map ? browser->selection->map->dso : NULL; in perf_evsel__hists_browse()
1527 browser->selection->map->dso->annotate_warned) in perf_evsel__hists_browse()
1627 !bi->from.map->dso->annotate_warned && in perf_evsel__hists_browse()
1633 !bi->to.map->dso->annotate_warned && in perf_evsel__hists_browse()
1635 bi->to.map->dso != bi->from.map->dso) && in perf_evsel__hists_browse()
1641 !browser->selection->map->dso->annotate_warned) { in perf_evsel__hists_browse()
[all …]
Dmap.c75 if (ui_browser__show(&browser->b, browser->map->dso->long_name, in map_browser__run()
105 .entries = &map->dso->symbols[map->type], in map__browse()
Dannotate.c441 return snprintf(title, sz, "%s %s", sym->name, map->dso->long_name); in sym_title()
917 if (map->dso->annotate_warned) in symbol__tui_annotate()
/linux-4.1.27/tools/perf/Documentation/
Dperf-trace.txt129 <min|maj>fault [<ip.symbol>+<ip.offset>] => <addr.dso@addr.offset> (<map type><addr level>).
134 - addr.dso shows DSO for the faulted address;
136 - addr level is either 'k' for kernel dso or '.' for user dso.
144 for both IP and fault address in the form of dso@symbol+offset.
Dperf-annotate.txt28 --dsos=<dso[,dso...]>::
Dperf-report.txt70 pid, comm, dso, symbol, parent, cpu, srcline, weight, local_weight.
76 - dso: name of library or module executed at the time of sample
97 By default, comm, dso and symbol keys are used.
98 (i.e. --sort comm,dso,symbol)
138 And default sort keys are changed to local_weight, mem, sym, dso,
311 Zoom operations on the TUI (thread, dso, etc).
Dperf-top.txt118 Sort by key(s): pid, comm, dso, symbol, parent, srcline, weight,
193 Zoom operations on the TUI (thread, dso, etc).
Dperf-diff.txt23 If no parameters are passed the samples will be sorted by dso and symbol.
61 Sort by key(s): pid, comm, dso, symbol, cpu, parent, srcline.
Dperf-buildid-cache.txt54 to update kallsyms and kernel dso to vmlinux in order to support
Dexamples.txt104 titan:~/git> perf report --sort comm,dso,symbol
Dperf-script.txt118 comm, tid, pid, time, cpu, event, trace, ip, sym, dso, addr, symoff, srcline, period.
/linux-4.1.27/Documentation/trace/
Dtracepoint-analysis.txt253 # (For more details, try: perf report --sort comm,dso,symbol)
280 # (For more details, try: perf report --sort comm,dso,symbol)
286 $ perf report --sort comm,dso,symbol
/linux-4.1.27/tools/perf/ui/gtk/
Dannotate.c166 if (map->dso->annotate_warned) in symbol__gtk_annotate()