diff options
Diffstat (limited to 'tools/perf/util/symbol.h')
-rw-r--r-- | tools/perf/util/symbol.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 50f723571241..48b8e5759af9 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
@@ -8,6 +8,30 @@ | |||
8 | #include "module.h" | 8 | #include "module.h" |
9 | #include "event.h" | 9 | #include "event.h" |
10 | 10 | ||
11 | #ifdef HAVE_CPLUS_DEMANGLE | ||
12 | extern char *cplus_demangle(const char *, int); | ||
13 | |||
14 | static inline char *bfd_demangle(void __used *v, const char *c, int i) | ||
15 | { | ||
16 | return cplus_demangle(c, i); | ||
17 | } | ||
18 | #else | ||
19 | #ifdef NO_DEMANGLE | ||
20 | static inline char *bfd_demangle(void __used *v, const char __used *c, | ||
21 | int __used i) | ||
22 | { | ||
23 | return NULL; | ||
24 | } | ||
25 | #else | ||
26 | #include <bfd.h> | ||
27 | #endif | ||
28 | #endif | ||
29 | |||
30 | #ifndef DMGL_PARAMS | ||
31 | #define DMGL_PARAMS (1 << 0) /* Include function args */ | ||
32 | #define DMGL_ANSI (1 << 1) /* Include const, volatile, etc */ | ||
33 | #endif | ||
34 | |||
11 | struct symbol { | 35 | struct symbol { |
12 | struct rb_node rb_node; | 36 | struct rb_node rb_node; |
13 | u64 start; | 37 | u64 start; |