Lines Matching refs:symbol
16 #include "symbol.h"
86 static int choose_best_symbol(struct symbol *syma, struct symbol *symb)
92 /* Prefer a symbol with non zero length */
100 /* Prefer a non weak symbol over a weak one */
108 /* Prefer a global symbol over a non global one */
116 /* Prefer a symbol with less underscores */
124 /* Choose the symbol with the longest name */
144 struct symbol *curr, *next;
149 curr = rb_entry(nd, struct symbol, rb_node);
152 next = rb_entry(nd, struct symbol, rb_node);
173 struct symbol *curr, *prev;
178 curr = rb_entry(prevnd, struct symbol, rb_node);
182 curr = rb_entry(nd, struct symbol, rb_node);
216 struct symbol *symbol__new(u64 start, u64 len, u8 binding, const char *name)
219 struct symbol *sym = calloc(1, (symbol_conf.priv_size +
239 void symbol__delete(struct symbol *sym)
244 size_t symbol__fprintf(struct symbol *sym, FILE *fp)
253 size_t symbol__fprintf_symname_offs(const struct symbol *sym,
273 size_t symbol__fprintf_symname(const struct symbol *sym, FILE *fp)
280 struct symbol *pos;
284 pos = rb_entry(next, struct symbol, rb_node);
291 void symbols__insert(struct rb_root *symbols, struct symbol *sym)
296 struct symbol *s;
300 s = rb_entry(parent, struct symbol, rb_node);
310 static struct symbol *symbols__find(struct rb_root *symbols, u64 ip)
320 struct symbol *s = rb_entry(n, struct symbol, rb_node);
333 static struct symbol *symbols__first(struct rb_root *symbols)
338 return rb_entry(n, struct symbol, rb_node);
345 struct symbol sym;
348 static void symbols__insert_by_name(struct rb_root *symbols, struct symbol *sym)
374 struct symbol *pos = rb_entry(nd, struct symbol, rb_node);
379 static struct symbol *symbols__find_by_name(struct rb_root *symbols,
407 struct symbol *dso__find_symbol(struct dso *dso,
413 struct symbol *dso__first_symbol(struct dso *dso, enum map_type type)
418 struct symbol *dso__find_symbol_by_name(struct dso *dso, enum map_type type,
518 struct symbol *sym;
544 * so that we can in the next step set the symbol ->end address and then
559 struct symbol *pos;
567 pos = rb_entry(next, struct symbol, rb_node);
612 struct symbol *pos;
621 pos = rb_entry(next, struct symbol, rb_node);
797 struct symbol *sym;
836 /* Find the kernel map using the first symbol */
934 struct symbol *sym;
1453 sizeof(struct symbol));
1472 symbol_conf.sym_list_str, "symbol") < 0)