perf symbols: Add a 'type' field to struct map
That way we will be able to check if the right symtab is loaded in the underlying DSO. 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-5-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
605ca4ba01
commit
3610583c29
6 changed files with 42 additions and 21 deletions
|
@ -80,6 +80,10 @@ typedef union event_union {
|
|||
struct sample_event sample;
|
||||
} event_t;
|
||||
|
||||
enum map_type {
|
||||
MAP__FUNCTION,
|
||||
};
|
||||
|
||||
struct map {
|
||||
union {
|
||||
struct rb_node rb_node;
|
||||
|
@ -87,6 +91,7 @@ struct map {
|
|||
};
|
||||
u64 start;
|
||||
u64 end;
|
||||
enum map_type type;
|
||||
u64 pgoff;
|
||||
u64 (*map_ip)(struct map *, u64);
|
||||
u64 (*unmap_ip)(struct map *, u64);
|
||||
|
@ -112,9 +117,10 @@ struct symbol;
|
|||
|
||||
typedef int (*symbol_filter_t)(struct map *map, struct symbol *sym);
|
||||
|
||||
void map__init(struct map *self, u64 start, u64 end, u64 pgoff,
|
||||
struct dso *dso);
|
||||
struct map *map__new(struct mmap_event *event, char *cwd, int cwdlen);
|
||||
void map__init(struct map *self, enum map_type type,
|
||||
u64 start, u64 end, u64 pgoff, struct dso *dso);
|
||||
struct map *map__new(struct mmap_event *event, enum map_type,
|
||||
char *cwd, int cwdlen);
|
||||
void map__delete(struct map *self);
|
||||
struct map *map__clone(struct map *self);
|
||||
int map__overlap(struct map *l, struct map *r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue