Lines Matching refs:dso
19 static const char *dso__name(struct dso *dso) in dso__name() argument
23 if (dso->symsrc_filename) in dso__name()
24 dso_name = dso->symsrc_filename; in dso__name()
26 dso_name = dso->long_name; in dso__name()
81 static struct symbol *new_inline_sym(struct dso *dso, in new_inline_sym() argument
91 if (dso) { in new_inline_sym()
92 demangled = dso__demangle_sym(dso, 0, funcname); in new_inline_sym()
262 static int inline_list__append_dso_a2l(struct dso *dso, in inline_list__append_dso_a2l() argument
266 struct a2l_data *a2l = dso->a2l; in inline_list__append_dso_a2l()
267 struct symbol *inline_sym = new_inline_sym(dso, sym, a2l->funcname); in inline_list__append_dso_a2l()
277 char **file, unsigned int *line, struct dso *dso, in addr2line() argument
282 struct a2l_data *a2l = dso->a2l; in addr2line()
285 dso->a2l = addr2line_init(dso_name); in addr2line()
286 a2l = dso->a2l; in addr2line()
305 if (node && inline_list__append_dso_a2l(dso, node, sym)) in addr2line()
316 if (inline_list__append_dso_a2l(dso, node, sym)) in addr2line()
335 void dso__free_a2l(struct dso *dso) in dso__free_a2l() argument
337 struct a2l_data *a2l = dso->a2l; in dso__free_a2l()
344 dso->a2l = NULL; in dso__free_a2l()
348 struct dso *dso, struct symbol *sym) in addr2inlines() argument
361 addr2line(dso_name, addr, NULL, NULL, dso, true, node, sym); in addr2inlines()
390 struct dso *dso __maybe_unused, in addr2line()
428 void dso__free_a2l(struct dso *dso __maybe_unused) in dso__free_a2l()
433 struct dso *dso __maybe_unused, in addr2inlines()
476 inline_sym = new_inline_sym(dso, sym, funcname); in addr2inlines()
502 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym, in __get_srcline() argument
511 if (!dso->has_srcline) in __get_srcline()
514 dso_name = dso__name(dso); in __get_srcline()
518 if (!addr2line(dso_name, addr, &file, &line, dso, in __get_srcline()
528 dso->a2l_fails = 0; in __get_srcline()
533 if (dso->a2l_fails && ++dso->a2l_fails > A2L_FAIL_LIMIT) { in __get_srcline()
534 dso->has_srcline = 0; in __get_srcline()
535 dso__free_a2l(dso); in __get_srcline()
546 } else if (asprintf(&srcline, "%s[%" PRIx64 "]", dso->short_name, addr) < 0) in __get_srcline()
557 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym, in get_srcline() argument
560 return __get_srcline(dso, addr, sym, show_sym, show_addr, false, ip); in get_srcline()
629 struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr, in dso__parse_addr_inlines() argument
634 dso_name = dso__name(dso); in dso__parse_addr_inlines()
638 return addr2inlines(dso_name, addr, dso, sym); in dso__parse_addr_inlines()