Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1266763 > unrolled thread
| Started by | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| First post | 2015-11-10 21:30 +0100 |
| Last post | 2015-11-10 21:50 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] bpf_trace: Make dependent on PERF_EVENTS Steven Rostedt <rostedt@goodmis.org> - 2015-11-10 21:30 +0100
Re: [PATCH] bpf_trace: Make dependent on PERF_EVENTS David Miller <davem@davemloft.net> - 2015-11-10 21:50 +0100
Re: [PATCH] bpf_trace: Make dependent on PERF_EVENTS Steven Rostedt <rostedt@goodmis.org> - 2015-11-10 21:50 +0100
Re: [PATCH] bpf_trace: Make dependent on PERF_EVENTS Arnd Bergmann <arnd@arndb.de> - 2015-11-10 21:50 +0100
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2015-11-10 21:30 +0100 |
| Subject | [PATCH] bpf_trace: Make dependent on PERF_EVENTS |
| Message-ID | <qtnId-1o6-5@gated-at.bofh.it> |
Arnd Bergmann reported:
In my ARM randconfig tests, I'm getting a build error for
newly added code in bpf_perf_event_read and bpf_perf_event_output
whenever CONFIG_PERF_EVENTS is disabled:
kernel/trace/bpf_trace.c: In function 'bpf_perf_event_read':
kernel/trace/bpf_trace.c:203:11: error: 'struct perf_event' has no member named 'oncpu'
if (event->oncpu != smp_processor_id() ||
^
kernel/trace/bpf_trace.c:204:11: error: 'struct perf_event' has no member named 'pmu'
event->pmu->count)
This can happen when UPROBE_EVENT is enabled but KPROBE_EVENT
is disabled. I'm not sure if that is a configuration we care
about, otherwise we could prevent this case from occuring by
adding Kconfig dependencies.
Looking at this further, it's really that UPROBE_EVENT enables PERF_EVENTS.
By just having BPF_EVENTS depend on PERF_EVENTS, then all is fine.
Link: http://lkml.kernel.org/r/4525348.Aq9YoXkChv@wuerfel
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
kernel/trace/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 8d6363f42169..e45db6b0d878 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -434,7 +434,7 @@ config UPROBE_EVENT
config BPF_EVENTS
depends on BPF_SYSCALL
- depends on KPROBE_EVENT || UPROBE_EVENT
+ depends on (KPROBE_EVENT || UPROBE_EVENT) && PERF_EVENTS
bool
default y
help
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2015-11-10 21:50 +0100 |
| Message-ID | <qto1A-1vO-3@gated-at.bofh.it> |
| In reply to | #1266763 |
From: Steven Rostedt <rostedt@goodmis.org> Date: Tue, 10 Nov 2015 15:28:17 -0500 > > Arnd Bergmann reported: > > In my ARM randconfig tests, I'm getting a build error for > newly added code in bpf_perf_event_read and bpf_perf_event_output > whenever CONFIG_PERF_EVENTS is disabled: > > kernel/trace/bpf_trace.c: In function 'bpf_perf_event_read': > kernel/trace/bpf_trace.c:203:11: error: 'struct perf_event' has no member named 'oncpu' > if (event->oncpu != smp_processor_id() || > ^ > kernel/trace/bpf_trace.c:204:11: error: 'struct perf_event' has no member named 'pmu' > event->pmu->count) > > This can happen when UPROBE_EVENT is enabled but KPROBE_EVENT > is disabled. I'm not sure if that is a configuration we care > about, otherwise we could prevent this case from occuring by > adding Kconfig dependencies. > > Looking at this further, it's really that UPROBE_EVENT enables PERF_EVENTS. > By just having BPF_EVENTS depend on PERF_EVENTS, then all is fine. > > Link: http://lkml.kernel.org/r/4525348.Aq9YoXkChv@wuerfel > Reported-by: Arnd Bergmann <arnd@arndb.de> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org> I'll apply this, thanks Steven et al. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Date | 2015-11-10 21:50 +0100 |
| Message-ID | <qto1A-1vO-21@gated-at.bofh.it> |
| In reply to | #1266775 |
On Tue, 10 Nov 2015 15:40:35 -0500 (EST) David Miller <davem@davemloft.net> wrote: > I'll apply this, thanks Steven et al. Thanks David. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2015-11-10 21:50 +0100 |
| Message-ID | <qto1A-1vO-15@gated-at.bofh.it> |
| In reply to | #1266763 |
On Tuesday 10 November 2015 15:28:17 Steven Rostedt wrote: > Arnd Bergmann reported: > > In my ARM randconfig tests, I'm getting a build error for > newly added code in bpf_perf_event_read and bpf_perf_event_output > whenever CONFIG_PERF_EVENTS is disabled: > > kernel/trace/bpf_trace.c: In function 'bpf_perf_event_read': > kernel/trace/bpf_trace.c:203:11: error: 'struct perf_event' has no member named 'oncpu' > if (event->oncpu != smp_processor_id() || > ^ > kernel/trace/bpf_trace.c:204:11: error: 'struct perf_event' has no member named 'pmu' > event->pmu->count) > > This can happen when UPROBE_EVENT is enabled but KPROBE_EVENT > is disabled. I'm not sure if that is a configuration we care > about, otherwise we could prevent this case from occuring by > adding Kconfig dependencies. > > Looking at this further, it's really that UPROBE_EVENT enables PERF_EVENTS. > By just having BPF_EVENTS depend on PERF_EVENTS, then all is fine. > > Link: http://lkml.kernel.org/r/4525348.Aq9YoXkChv@wuerfel > Reported-by: Arnd Bergmann <arnd@arndb.de> > Signed-off-by: Steven Rostedt <rostedt@goodmis.org> > Ok, sounds good. Acked-by: Arnd Bergmann <arnd@arndb.de> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web