diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-06-02 19:43:38 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2009-06-02 19:49:57 -0400 |
commit | 73874005cd8800440be4299bd095387fff4b90ac (patch) | |
tree | 7e83d89585220db0e0dff6cdfa538d72540c472b /kernel/trace | |
parent | 62edab9056a6cf0c9207339c8892c923a5217e45 (diff) |
hw-breakpoints: fix undeclared ksym_tracer_mutex
ksym_tracer_mutex is declared inside an #ifdef CONFIG_PROFILE_KSYM_TRACER
section. This makes it unavailable for the hardware breakpoint tracer if it is
configured without the breakpoint profiler.
This patch fixes the following build error:
kernel/trace/trace_ksym.c: In function ‘ksym_trace_filter_read’:
kernel/trace/trace_ksym.c:226: erreur: ‘ksym_tracer_mutex’ undeclared (first use in this function)
kernel/trace/trace_ksym.c:226: erreur: (Each undeclared identifier is reported only once
kernel/trace/trace_ksym.c:226: erreur: for each function it appears in.)
kernel/trace/trace_ksym.c: In function ‘ksym_trace_filter_write’:
kernel/trace/trace_ksym.c:273: erreur: ‘ksym_tracer_mutex’ undeclared (first use in this function)
kernel/trace/trace_ksym.c: In function ‘ksym_trace_reset’:
kernel/trace/trace_ksym.c:335: erreur: ‘ksym_tracer_mutex’ undeclared (first use in this function)
make[1]: *** [kernel/trace/trace_ksym.o] Erreur 1
[ Impact: fix a build error ]
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_ksym.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/trace_ksym.c b/kernel/trace/trace_ksym.c index 11c74f6404cc..eef97e7c8db7 100644 --- a/kernel/trace/trace_ksym.c +++ b/kernel/trace/trace_ksym.c | |||
@@ -44,12 +44,12 @@ static unsigned int ksym_tracing_enabled; | |||
44 | 44 | ||
45 | static HLIST_HEAD(ksym_filter_head); | 45 | static HLIST_HEAD(ksym_filter_head); |
46 | 46 | ||
47 | static DEFINE_MUTEX(ksym_tracer_mutex); | ||
48 | |||
47 | #ifdef CONFIG_PROFILE_KSYM_TRACER | 49 | #ifdef CONFIG_PROFILE_KSYM_TRACER |
48 | 50 | ||
49 | #define MAX_UL_INT 0xffffffff | 51 | #define MAX_UL_INT 0xffffffff |
50 | 52 | ||
51 | static DEFINE_MUTEX(ksym_tracer_mutex); | ||
52 | |||
53 | void ksym_collect_stats(unsigned long hbp_hit_addr) | 53 | void ksym_collect_stats(unsigned long hbp_hit_addr) |
54 | { | 54 | { |
55 | struct hlist_node *node; | 55 | struct hlist_node *node; |