perf symbols: Better support for multiple symbol tables per dso
By using an array of rb_roots in struct dso we can, from a struct map instance to get the right symbol rb_tree more easily. This way we can have just one symbol lookup method for struct map instances, map__find_symbol, instead of one per symtab type (functions, variables). Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1259346563-12568-6-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
3610583c29
commit
6a4694a433
@@ -81,7 +81,9 @@ typedef union event_union {
|
||||
} event_t;
|
||||
|
||||
enum map_type {
|
||||
MAP__FUNCTION,
|
||||
MAP__FUNCTION = 0,
|
||||
|
||||
MAP__NR_TYPES,
|
||||
};
|
||||
|
||||
struct map {
|
||||
@@ -125,10 +127,10 @@ void map__delete(struct map *self);
|
||||
struct map *map__clone(struct map *self);
|
||||
int map__overlap(struct map *l, struct map *r);
|
||||
size_t map__fprintf(struct map *self, FILE *fp);
|
||||
struct symbol *map__find_function(struct map *self, u64 ip,
|
||||
symbol_filter_t filter);
|
||||
void map__fixup_start(struct map *self, struct rb_root *symbols);
|
||||
void map__fixup_end(struct map *self, struct rb_root *symbols);
|
||||
struct symbol *map__find_symbol(struct map *self, u64 addr,
|
||||
symbol_filter_t filter);
|
||||
void map__fixup_start(struct map *self);
|
||||
void map__fixup_end(struct map *self);
|
||||
|
||||
int event__synthesize_thread(pid_t pid, int (*process)(event_t *event));
|
||||
void event__synthesize_threads(int (*process)(event_t *event));
|
||||
|
Reference in New Issue
Block a user