diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-11-24 10:01:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-24 10:37:03 -0500 |
commit | fcf1203a919c3a3d212c0ed01f5240fd592bf5ae (patch) | |
tree | bd7a9f796882c5b01fabc4afe2bdea6ac74c2098 /tools/perf/util/symbol.h | |
parent | 727dad10c17cbaade3cb6a56bd4863a4630f4d13 (diff) |
perf symbols: Rename find_symbol routines to find_function
Paving the way for supporting variable in adition to function
symbols.
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: <1259074912-5924-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 5538691494af..65846d0c5df7 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -65,8 +65,8 @@ static inline void *symbol__priv(struct symbol *self) | |||
65 | 65 | ||
66 | struct dso { | 66 | struct dso { |
67 | struct list_head node; | 67 | struct list_head node; |
68 | struct rb_root syms; | 68 | struct rb_root functions; |
69 | struct symbol *(*find_symbol)(struct dso *, u64 ip); | 69 | struct symbol *(*find_function)(struct dso *, u64 ip); |
70 | u8 adjust_symbols:1; | 70 | u8 adjust_symbols:1; |
71 | u8 slen_calculated:1; | 71 | u8 slen_calculated:1; |
72 | u8 loaded:1; | 72 | u8 loaded:1; |
@@ -83,7 +83,7 @@ struct dso { | |||
83 | struct dso *dso__new(const char *name); | 83 | struct dso *dso__new(const char *name); |
84 | void dso__delete(struct dso *self); | 84 | void dso__delete(struct dso *self); |
85 | 85 | ||
86 | struct symbol *dso__find_symbol(struct dso *self, u64 ip); | 86 | struct symbol *dso__find_function(struct dso *self, u64 ip); |
87 | 87 | ||
88 | struct dso *dsos__findnew(const char *name); | 88 | struct dso *dsos__findnew(const char *name); |
89 | int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); | 89 | int dso__load(struct dso *self, struct map *map, symbol_filter_t filter); |