Home
last modified time | relevance | path

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

12345

/tools/perf/util/
A Ddso.h228 struct dso *dso; member
714 void dso__delete(struct dso *dso);
716 int dso__cmp_id(struct dso *a, struct dso *b);
721 int dso__name_len(const struct dso *dso);
723 struct dso *dso__get(struct dso *dso);
732 #define dso__zput(dso) __dso__zput(&dso) argument
734 bool dso__loaded(const struct dso *dso);
744 void dso__set_sorted_by_name(struct dso *dso);
745 void dso__sort_by_name(struct dso *dso);
759 bool dso__needs_decompress(struct dso *dso);
[all …]
A Ddso.c518 dso__data(dso)->dso = dso__get(dso); in dso__list_add()
530 dso__put(dso__data(dso)->dso); in dso__list_del()
684 struct dso *dso; in close_first_dso() local
688 dso = dso_data->dso; in close_first_dso()
867 static int bpf_size(struct dso *dso) in bpf_size() argument
884 dso_cache__free(struct dso *dso) in dso_cache__free() argument
1322 struct dso *dso = dso__new(name); in dso__new_map() local
1527 RC_STRUCT(dso) *dso = zalloc(sizeof(*dso) + strlen(name) + 1); in dso__new_id()
1580 void dso__delete(struct dso *dso) in dso__delete() argument
1614 struct dso *dso__get(struct dso *dso) in dso__get() argument
[all …]
A Ddsos.c30 struct dso *dso = dsos->dsos[i]; in dsos__purge() local
52 int (*cb)(struct dso *dso, void *data), in __dsos__for_each_dso() argument
56 struct dso *dso = dsos->dsos[i]; in __dsos__for_each_dso() local
127 const struct dso *a = *((const struct dso **)va); in dsos__cmp_long_name_id_short_name()
147 const struct dso *dso = *((const struct dso **)vdso); in dsos__cmp_key_long_name_id() local
174 struct dso *dso; in __dsos__find_by_longname_id() local
295 static void dso__set_basename(struct dso *dso) in dso__set_basename() argument
329 struct dso *dso = dso__new_id(name, id); in __dsos__addnew_id() local
356 struct dso *dso; in dsos__findnew_id() local
365 bool (*skip)(struct dso *dso, int parm);
[all …]
A Dmap.c135 struct dso *dso; in map__new() local
252 struct dso *dso = map__dso(map); in __map__is_bpf_prog() local
269 struct dso *dso = map__dso(map); in __map__is_bpf_image() local
317 struct dso *dso = map__dso(map); in map__fixup_start() local
330 struct dso *dso = map__dso(map); in map__fixup_end() local
344 struct dso *dso = map__dso(map); in map__load() local
393 struct dso *dso; in map__find_symbol_by_name_idx() local
416 struct dso *dso = map__dso(from); in map__clone() local
418 if (dso && dso__kernel(dso)) in map__clone()
424 map->dso = dso__get(dso); in map__clone()
[all …]
A Dvdso.c130 struct dso *dso; in __machine__addnew_vdso() local
149 struct dso *dso = map__dso(map); in machine__thread_dso_type_maps_cb() local
151 if (!dso || dso__long_name(dso)[0] != '/') in machine__thread_dso_type_maps_cb()
251 struct dso *dso; in __machine__findnew_compat() local
254 if (dso) in __machine__findnew_compat()
267 struct dso **dso) in __machine__findnew_vdso_compat() argument
301 struct dso *dso = NULL; in machine__find_vdso() local
334 struct dso *dso = NULL; in machine__findnew_vdso() local
345 if (dso) in machine__findnew_vdso()
354 if (dso) in machine__findnew_vdso()
[all …]
A Ddsos.h11 struct dso;
22 struct dso **dsos;
31 int __dsos__add(struct dsos *dsos, struct dso *dso);
32 int dsos__add(struct dsos *dsos, struct dso *dso);
33 struct dso *dsos__find(struct dsos *dsos, const char *name, bool cmp_short);
35 struct dso *dsos__findnew_id(struct dsos *dsos, const char *name, const struct dso_id *id);
40 bool (skip)(struct dso *dso, int parm), int parm);
45 struct dso *dsos__findnew_module_dso(struct dsos *dsos, struct machine *machine,
48 struct dso *dsos__find_kernel_dso(struct dsos *dsos);
50 int dsos__for_each_dso(struct dsos *dsos, int (*cb)(struct dso *dso, void *data), void *data);
A Dsymbol.h23 struct dso;
118 int dso__load(struct dso *dso, struct map *map);
119 int dso__load_vmlinux(struct dso *dso, struct map *map,
121 int dso__load_vmlinux_path(struct dso *dso, struct map *map);
126 void dso__insert_symbol(struct dso *dso,
128 void dso__delete_symbol(struct dso *dso,
131 struct symbol *dso__find_symbol(struct dso *dso, u64 addr);
132 struct symbol *dso__find_symbol_nocache(struct dso *dso, u64 addr);
137 struct symbol *dso__first_symbol(struct dso *dso);
138 struct symbol *dso__last_symbol(struct dso *dso);
[all …]
A Dsymbol.c52 static int dso__load_kernel_sym(struct dso *dso, struct map *map);
551 void dso__reset_find_symbol_cache(struct dso *dso) in dso__reset_find_symbol_cache() argument
576 struct symbol *dso__find_symbol(struct dso *dso, u64 addr) in dso__find_symbol() argument
591 struct symbol *dso__first_symbol(struct dso *dso) in dso__first_symbol() argument
596 struct symbol *dso__last_symbol(struct dso *dso) in dso__last_symbol() argument
630 void dso__sort_by_name(struct dso *dso) in dso__sort_by_name() argument
768 struct dso *dso = arg; in map__process_kallsym_symbol() local
1173 struct dso *dso; in do_validate_kcore_modules_cb() local
1268 struct dso *dso; member
1334 md.dso = dso; in dso__load_kcore()
[all …]
A Dsrcline.h9 struct dso;
14 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
16 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
20 char *get_srcline_split(struct dso *dso, u64 addr, unsigned *line);
45 struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr,
A Dsrcline.c34 static const char *srcline_dso_name(struct dso *dso) in srcline_dso_name() argument
96 static struct symbol *new_inline_sym(struct dso *dso, in new_inline_sym() argument
106 if (dso) { in new_inline_sym()
152 char **file, unsigned int *line, struct dso *dso, in addr2line() argument
185 void dso__free_a2l(struct dso *dso __maybe_unused) in dso__free_a2l()
418 void dso__free_a2l(struct dso *dso) in dso__free_a2l() argument
693 struct dso *dso, in addr2line() argument
837 void dso__free_a2l(struct dso *dso) in dso__free_a2l() argument
852 struct dso *dso, struct symbol *sym) in addr2inlines() argument
906 dso__set_a2l_fails(dso, dso__a2l_fails(dso) + 1); in __get_srcline()
[all …]
A Dunwind-libunwind-local.c284 static int unwind_spec_ehframe(struct dso *dso, struct machine *machine, in unwind_spec_ehframe() argument
306 struct dso *dso; member
327 .dso = dso, in read_unwind_spec_eh_frame()
361 static int read_unwind_spec_debug_frame(struct dso *dso, in read_unwind_spec_debug_frame() argument
451 struct dso *dso; in find_proc_info() local
460 dso = map__dso(map); in find_proc_info()
461 if (!dso) { in find_proc_info()
497 symfile = dso__symsrc_filename(dso) ?: dso__name(dso); in find_proc_info()
548 struct dso *dso; in access_dso_mem() local
557 dso = map__dso(map); in access_dso_mem()
[all …]
A Dllvm-c-helpers.h16 struct dso;
53 char *llvm_name_for_code(struct dso *dso, const char *dso_name, u64 addr);
54 char *llvm_name_for_data(struct dso *dso, const char *dso_name, u64 addr);
A Dunwind-libdw.c29 const struct dso *dso = *userdata; in __find_debuginfo() local
31 assert(dso); in __find_debuginfo()
32 if (dso__symsrc_filename(dso) && strcmp(file_name, dso__symsrc_filename(dso))) in __find_debuginfo()
48 struct dso *dso = NULL; in __report_module() local
57 dso = map__dso(al->map); in __report_module()
59 if (!dso) in __report_module()
69 if (!strncmp(dso__long_name(dso), "/tmp/jitted-", 12)) in __report_module()
105 *userdatap = dso; in __report_module()
166 struct dso *dso; in access_dso_mem() local
173 dso = map__dso(al.map); in access_dso_mem()
[all …]
A Dvdso.h20 struct dso;
22 bool dso__is_vdso(struct dso *dso);
27 struct dso *machine__findnew_vdso(struct machine *machine, struct thread *thread);
A Dllvm-c-helpers.cpp24 char *dso__demangle_sym(struct dso *dso, int kmodule, const char *elf_name);
141 make_symbol_relative_string(struct dso *dso, const char *sym_name, in make_symbol_relative_string() argument
147 char *demangled = dso__demangle_sym(dso, 0, sym_name); in make_symbol_relative_string()
163 char *llvm_name_for_code(struct dso *dso, const char *dso_name, u64 addr) in llvm_name_for_code() argument
176 dso, res_or_err->FunctionName.c_str(), in llvm_name_for_code()
181 char *llvm_name_for_data(struct dso *dso, const char *dso_name, u64 addr) in llvm_name_for_data() argument
194 dso, res_or_err->Name.c_str(), in llvm_name_for_data()
A Dbuild-id.c242 char *__dso__build_id_filename(const struct dso *dso, char *bf, size_t size, in __dso__build_id_filename() argument
245 bool is_vdso = dso__is_vdso((struct dso *)dso); in __dso__build_id_filename()
273 char *dso__build_id_filename(const struct dso *dso, char *bf, size_t size, in dso__build_id_filename() argument
276 bool is_kallsyms = dso__is_kallsyms((struct dso *)dso); in dso__build_id_filename()
312 static int machine__write_buildid_table_cb(struct dso *dso, void *data) in machine__write_buildid_table_cb() argument
322 if (!dso__hit(dso) && !dso__is_vdso(dso)) in machine__write_buildid_table_cb()
325 if (dso__is_vdso(dso)) { in machine__write_buildid_table_cb()
850 static bool dso__build_id_mismatch(struct dso *dso, const char *name) in dso__build_id_mismatch() argument
864 static int dso__cache_build_id(struct dso *dso, struct machine *machine, in dso__cache_build_id() argument
875 if (!dso__has_build_id(dso) || !dso__hit(dso)) in dso__cache_build_id()
[all …]
A Ddb-export.h17 struct dso;
50 int (*export_dso)(struct db_export *dbe, struct dso *dso,
53 struct dso *dso);
92 int db_export__dso(struct db_export *dbe, struct dso *dso,
95 struct dso *dso);
/tools/perf/tests/
A Dsymbols.c51 struct dso *dso; member
65 static struct map *find_module_map(struct machine *machine, struct dso *dso) in find_module_map() argument
67 struct dso_map data = { .dso = dso }; in find_module_map()
84 struct dso *dso = machine__findnew_dso(ti->machine, filename); in create_map() local
90 if (dso && dso__kernel(dso) != DSO_SPACE__USER) { in create_map()
92 dso__put(dso); in create_map()
102 dso__put(dso); in create_map()
115 static int test_dso(struct dso *dso) in test_dso() argument
174 struct dso *dso; in test_file() local
182 dso = map__dso(map); in test_file()
[all …]
A Ddso-data.c107 static int dso__data_fd(struct dso *dso, struct machine *machine) in dso__data_fd() argument
112 dso__data_put_fd(dso); in dso__data_fd()
120 struct dso *dso = dsos->dsos[i]; in dsos__delete() local
122 dso__data_close(dso); in dsos__delete()
131 struct dso *dso; in test__dso_data() local
140 dso = dso__new(file); in test__dso_data()
185 dso__put(dso); in test__dso_data()
223 struct dso *dso; in dsos__create() local
227 dso = dso__new(file); in dsos__create()
230 dso__put(dso); in dsos__create()
[all …]
A Dpe-file-parsing.c34 struct dso *dso; in run_dir() local
58 dso = dso__new(filename); in run_dir()
59 TEST_ASSERT_VAL("Failed to get dso", dso); in run_dir()
61 ret = dso__load_bfd_symbols(dso, debugfile); in run_dir()
64 dso__sort_by_name(dso); in run_dir()
65 sym = dso__find_symbol_by_name(dso, "main", &idx); in run_dir()
67 dso__delete(dso); in run_dir()
A Dhists_common.c129 struct dso *dso; in setup_fake_machine() local
131 dso = machine__findnew_dso(machine, fake_symbols[i].dso_name); in setup_fake_machine()
132 if (dso == NULL) in setup_fake_machine()
136 dso__set_loaded(dso); in setup_fake_machine()
145 dso__put(dso); in setup_fake_machine()
149 symbols__insert(dso__symbols(dso), sym); in setup_fake_machine()
152 dso__put(dso); in setup_fake_machine()
182 struct dso *dso = map__dso(he->ms.map); in print_hists_in() local
186 dso__short_name(dso), in print_hists_in()
211 struct dso *dso = map__dso(he->ms.map); in print_hists_out() local
[all …]
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
A DEventClass.py26 def create_event(name, comm, dso, symbol, raw_buf): argument
28 event = PebsEvent(name, comm, dso, symbol, raw_buf)
30 event = PebsNHM(name, comm, dso, symbol, raw_buf)
32 event = PerfEvent(name, comm, dso, symbol, raw_buf)
38 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_GENERIC): argument
41 self.dso = dso
49 (self.name, self.symbol, self.comm, self.dso))
58 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS): argument
72 PerfEvent.__init__(self, name, comm, dso, symbol, raw_buf, ev_type)
87 def __init__(self, name, comm, dso, symbol, raw_buf, ev_type=EVTYPE_PEBS_LL): argument
[all …]
/tools/perf/arch/powerpc/util/
A Dskip-callchain-idx.c152 static int check_return_addr(struct dso *dso, u64 map_start, Dwarf_Addr pc) in check_return_addr() argument
162 const char *exec_file = dso__long_name(dso); in check_return_addr()
164 dwfl = RC_CHK_ACCESS(dso)->dwfl; in check_return_addr()
186 RC_CHK_ACCESS(dso)->dwfl = dwfl; in check_return_addr()
245 struct dso *dso = NULL; in arch_skip_callchain_idx() local
259 dso = map__dso(al.map); in arch_skip_callchain_idx()
261 if (!dso) { in arch_skip_callchain_idx()
267 rc = check_return_addr(dso, map__start(al.map), ip); in arch_skip_callchain_idx()
270 dso__long_name(dso), al.sym->name, ip, rc); in arch_skip_callchain_idx()
/tools/perf/
A Dbuiltin-buildid-list.c27 const struct dso *dso = map__dso(map); in buildid__map_cb() local
29 const char *dso_long_name = dso__long_name(dso); in buildid__map_cb()
30 const char *dso_short_name = dso__short_name(dso); in buildid__map_cb()
33 if (dso__has_build_id(dso)) in buildid__map_cb()
34 build_id__snprintf(dso__bid(dso), bid_buf, sizeof(bid_buf)); in buildid__map_cb()
82 static bool dso__skip_buildid(struct dso *dso, int with_hits) in dso__skip_buildid() argument
84 return with_hits && !dso__hit(dso); in dso__skip_buildid()
A Dbuiltin-kallsyms.c41 const struct dso *dso; in __cmd_kallsyms() local
49 dso = map__dso(map); in __cmd_kallsyms()
51 symbol->name, dso__short_name(dso), dso__long_name(dso), in __cmd_kallsyms()

Completed in 861 milliseconds

12345