diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-08-15 06:06:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-15 06:06:12 -0400 |
commit | be750231ce1599b86fbba213e3da8344ece262e2 (patch) | |
tree | a506c461082692bb5bab8b9bb63a762816329454 /tools/perf/util/symbol.h | |
parent | 18408ddc01136f505ae357c03f0d8e50b10e0db6 (diff) | |
parent | 39e6dd73502f64e2ae3236b304e160ae30de9384 (diff) |
Merge branch 'perfcounters/urgent' into perfcounters/core
Conflicts:
kernel/perf_counter.c
Merge reason: update to latest upstream (-rc6) and resolve
the conflict with urgent fixes.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
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; |