Skip to contentSkip to conversation

trace: Fix build breakage without CONFIG_PERF_EVENTS

PATCH In review Mark Brown 1 participant 2 messages Apr 13, 2012 – Apr 25, 2012 Tracing

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 trace: Fix build breakage without CONFIG_PERF_EVENTS

Today's -next fails to link for me:

kernel/built-in.o:(.data+0x178e50): undefined reference to `perf_ftrace_event_register'

It looks like multiple fixes have been merged for the issue fixed by commit fa73dc9 (tracing: Fix build breakage without CONFIG_PERF_EVENTS) though I can't identify the other changes that have gone in at the minute, it's possible that the changes which caused the breakage fixed by the previous commit got dropped but the fix made it in.

---
 kernel/trace/trace.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/trace/trace.h +2 -2
index 95059f0..f95d65d 100644
@@ -836,11 +836,11 @@ extern const char *__stop___trace_bprintk_fmt[];
 		     filter)
 #include "trace_entries.h"
 
-#ifdef CONFIG_FUNCTION_TRACER
+#if defined(CONFIG_PERF_EVENTS) && defined(CONFIG_FUNCTION_TRACER)
 int perf_ftrace_event_register(struct ftrace_event_call *call,
 			       enum trace_reg type, void *data);
 #else
 #define perf_ftrace_event_register NULL
-#endif /* CONFIG_FUNCTION_TRACER */
+#endif
 
 #endif /* _LINUX_KERNEL_TRACE_H */
Signature · 1 line
1.7.9.1
#1 lore raw

[tip:perf/urgent] tracing: Fix build breakage without CONFIG_PERF_EVENTS (again)

Commit-ID:  6e48b550d1f5f1919e6500547ae14a73fbf66c7b
Gitweb:     http://git.kernel.org/tip/6e48b550d1f5f1919e6500547ae14a73fbf66c7b
Author:     Mark Brown <[email protected]>
AuthorDate: Fri, 13 Apr 2012 09:52:59 +0100
Committer:  Steven Rostedt <[email protected]>
CommitDate: Fri, 13 Apr 2012 21:37:04 -0400

tracing: Fix build breakage without CONFIG_PERF_EVENTS (again)

Today's -next fails to link for me:

kernel/built-in.o:(.data+0x178e50): undefined reference to `perf_ftrace_event_register'

It looks like multiple fixes have been merged for the issue fixed by commit fa73dc9 (tracing: Fix build breakage without CONFIG_PERF_EVENTS) though I can't identify the other changes that have gone in at the minute, it's possible that the changes which caused the breakage fixed by the previous commit got dropped but the fix made it in.

Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
---
 kernel/trace/trace.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
kernel/trace/trace.h +2 -2
index 95059f0..f95d65d 100644
@@ -836,11 +836,11 @@ extern const char *__stop___trace_bprintk_fmt[];
 		     filter)
 #include "trace_entries.h"
 
-#ifdef CONFIG_FUNCTION_TRACER
+#if defined(CONFIG_PERF_EVENTS) && defined(CONFIG_FUNCTION_TRACER)
 int perf_ftrace_event_register(struct ftrace_event_call *call,
 			       enum trace_reg type, void *data);
 #else
 #define perf_ftrace_event_register NULL
-#endif /* CONFIG_FUNCTION_TRACER */
+#endif
 
 #endif /* _LINUX_KERNEL_TRACE_H */