10 return fprintf(fp,
" %" PRIx64
"-%" PRIx64
" %c %s\n",
12 sym->
binding == STB_GLOBAL ?
'g' :
13 sym->
binding == STB_LOCAL ?
'l' :
'w',
20 bool print_offsets, FILE *fp)
26 length = fprintf(fp,
"%s", sym->
name);
27 if (al && print_offsets) {
32 length += fprintf(fp,
"+0x%lx", offset);
35 }
else if (al && unknown_as_addr)
36 return fprintf(fp,
"[%#" PRIx64
"]", al->
addr);
38 return fprintf(fp,
"[unknown]");
50 bool unknown_as_addr, FILE *fp)
67 for (nd = rb_first(&dso->
symbol_names); nd; nd = rb_next(nd)) {
69 fprintf(fp,
"%s\n", pos->
sym.
name);
struct rb_root symbol_names
size_t dso__fprintf_symbols_by_name(struct dso *dso, FILE *fp)
size_t symbol__fprintf_symname_offs(const struct symbol *sym, const struct addr_location *al, FILE *fp)
size_t __symbol__fprintf_symname_offs(const struct symbol *sym, const struct addr_location *al, bool unknown_as_addr, bool print_offsets, FILE *fp)
size_t symbol__fprintf(struct symbol *sym, FILE *fp)
static int sym(yyscan_t scanner, int type, int config)
size_t symbol__fprintf_symname(const struct symbol *sym, FILE *fp)
size_t __symbol__fprintf_symname(const struct symbol *sym, const struct addr_location *al, bool unknown_as_addr, FILE *fp)