Skip to contentSkip to conversation

trace: Fix build breakage without CONFIG_PERF_EVENTS

PATCH In review Mark Brown 2 participants 3 messages Apr 11, 2012 – Apr 12, 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, 4 insertions(+), 0 deletions(-)
kernel/trace/trace.h +4 -0
index 95059f0..ff639ca 100644
@@ -836,11 +836,15 @@ extern const char *__stop___trace_bprintk_fmt[];
 		     filter)
 #include "trace_entries.h"
 
+#ifdef CONFIG_PERF_EVENTS
 #ifdef 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 */
+#else
+#define perf_ftrace_event_register NULL
+#endif /* CONFIG_PERF_EVENTS */
 
 #endif /* _LINUX_KERNEL_TRACE_H */
Signature · 1 line
1.7.9.1
maintainer
#1 lore raw

Hi Mark,

Please change your subject when you submit a new patch. I've ignored your last one because I thought I already applied it.

Your first patch:

http://marc.info/?l=linux-kernel&m=133042701226637

Which was applied:

https://lkml.org/lkml/2012/3/14/304

Your second patch:

https://lkml.org/lkml/2012/3/26/164

As with this one, has the same subject. I only noticed it as I was about to tell you that it was already applied.

Thanks,

-- Steve

Quoted 35 lines · Mark Brown

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, 4 insertions(+), 0 deletions(-)
kernel/trace/trace.h +4 -0
index 95059f0..ff639ca 100644
@@ -836,11 +836,15 @@ extern const char *__stop___trace_bprintk_fmt[];
 		     filter)
 #include "trace_entries.h"
 
+#ifdef CONFIG_PERF_EVENTS
 #ifdef 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 */
+#else
+#define perf_ftrace_event_register NULL
+#endif /* CONFIG_PERF_EVENTS */
 
 #endif /* _LINUX_KERNEL_TRACE_H */
author
#2 lore raw
Quoted 2 lines · Steven Rostedt

Please change your subject when you submit a new patch. I've ignored your last one because I thought I already applied it.

I wrote the subject for the second patch completely from scratch when I noticed the build error I'm afraid - more variation in the build errors would mean more variation in the subjects!

Quoted 2 lines

As with this one, has the same subject. I only noticed it as I was about to tell you that it was already applied.

Which wouldn't have been the end of the world, it'd at least have been a response.