Yonghong Song
f4e2298e63
bpf/tracing: fix kernel/events/core.c compilation error
...
Commit f371b304f1 ("bpf/tracing: allow user space to
query prog array on the same tp") introduced a perf
ioctl command to query prog array attached to the
same perf tracepoint. The commit introduced a
compilation error under certain config conditions, e.g.,
(1). CONFIG_BPF_SYSCALL is not defined, or
(2). CONFIG_TRACING is defined but neither CONFIG_UPROBE_EVENTS
nor CONFIG_KPROBE_EVENTS is defined.
Error message:
kernel/events/core.o: In function `perf_ioctl':
core.c:(.text+0x98c4): undefined reference to `bpf_event_query_prog_array'
This patch fixed this error by guarding the real definition under
CONFIG_BPF_EVENTS and provided static inline dummy function
if CONFIG_BPF_EVENTS was not defined.
It renamed the function from bpf_event_query_prog_array to
perf_event_query_prog_array and moved the definition from linux/bpf.h
to linux/trace_events.h so the definition is in proximity to
other prog_array related functions.
Fixes: f371b304f1 ("bpf/tracing: allow user space to query prog array on the same tp")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au >
Signed-off-by: Yonghong Song <yhs@fb.com >
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net >
2017-12-13 22:44:10 +01:00
..
2017-11-16 14:05:12 -08:00
2017-11-14 16:49:31 -08:00
2017-11-14 17:52:21 -08:00
2017-11-14 14:44:04 -08:00
2017-11-26 14:39:20 -08:00
2017-11-16 09:15:57 -08:00
2017-11-15 14:54:53 -08:00
2017-11-15 14:54:53 -08:00
2017-11-13 10:17:35 -08:00
2017-11-22 20:46:06 -10:00
2017-11-13 21:14:07 -08:00
2017-11-16 10:57:11 -08:00
2017-11-22 20:46:06 -10:00
2017-11-10 21:33:23 +00:00
2017-11-15 14:29:44 -08:00
2017-11-17 20:04:24 -08:00
2017-11-10 21:33:44 +00:00
2017-11-27 16:45:11 -05:00
2017-11-13 21:14:07 -08:00
2017-11-17 12:54:01 -08:00
2017-11-13 01:34:49 +01:00
2017-11-15 13:28:48 -08:00
2017-11-14 15:32:19 -08:00
2017-11-15 18:21:07 -08:00
2017-11-14 23:57:38 +02:00
2017-11-17 12:08:18 -08:00
2017-11-17 16:10:01 -08:00
2017-11-13 08:25:06 -08:00
2017-11-14 17:23:44 -08:00
2017-11-14 15:32:19 -08:00
2017-11-14 15:32:19 -08:00
2017-11-14 15:32:19 -08:00
2017-11-14 15:32:19 -08:00
2017-11-15 18:21:05 -08:00
2017-11-23 10:56:35 +01:00
2017-12-13 22:44:10 +01:00
2017-11-14 15:32:19 -08:00
2017-11-17 16:10:01 -08:00
2017-11-15 18:21:04 -08:00
2017-11-15 14:29:44 -08:00
2017-11-15 14:29:44 -08:00
2017-11-14 10:07:45 -08:00
2017-11-17 11:54:55 -08:00
2017-11-17 16:10:01 -08:00
2017-11-14 07:21:44 +01:00
2017-11-13 18:23:19 -08:00
2017-11-15 19:46:50 +01:00
2017-11-15 10:56:56 -08:00
2017-11-13 21:05:31 -08:00
2017-11-17 09:51:57 -08:00
2017-11-14 16:54:12 -08:00
2017-11-15 18:21:04 -08:00
2017-11-15 11:56:19 -08:00
2017-11-14 15:32:19 -08:00
2017-12-12 09:02:34 -08:00
2017-11-13 01:41:20 +01:00
2017-11-29 18:40:43 -08:00
2017-11-14 11:35:15 -08:00
2017-11-14 11:35:15 -08:00
2017-11-14 11:35:15 -08:00
2017-11-14 14:13:11 -08:00
2017-11-17 14:58:01 -08:00
2017-11-17 16:10:02 -08:00
2017-11-14 15:32:19 -08:00
2017-11-15 18:21:06 -08:00
2017-11-15 11:10:38 +01:00
2017-11-15 18:21:03 -08:00
2017-11-29 18:40:42 -08:00
2017-12-03 10:10:02 -05:00
2017-11-10 10:03:12 +01:00
2017-11-13 17:56:58 -08:00
2017-11-17 16:10:04 -08:00
2017-11-17 14:58:01 -08:00
2017-11-15 18:21:05 -08:00
2017-11-17 09:51:57 -08:00
2017-11-17 16:10:01 -08:00
2017-11-17 16:10:04 -08:00
2017-11-11 15:13:02 +09:00
2017-11-13 12:18:10 -08:00
2017-11-14 11:23:05 +01:00
2017-11-15 10:56:56 -08:00
2017-11-13 17:33:11 -08:00
2017-11-29 10:30:13 -08:00
2017-11-15 18:21:01 -08:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:04 -08:00
2017-11-15 16:38:45 +00:00
2017-11-15 16:38:45 +00:00
2017-11-15 18:21:05 -08:00
2017-11-15 18:21:01 -08:00
2017-12-12 08:56:26 -08:00
2017-11-21 16:35:54 -08:00
2017-11-27 17:53:47 +01:00
2017-12-01 13:09:40 -08:00
2017-11-14 15:32:19 -08:00
2017-11-13 08:25:06 -08:00
2017-12-05 12:51:19 -05:00
2017-11-15 18:21:05 -08:00
2017-11-29 18:40:43 -08:00
2017-11-17 20:21:44 -08:00
2017-11-15 18:21:04 -08:00
2017-11-29 18:40:42 -08:00
2017-11-17 09:51:57 -08:00
2017-11-15 18:21:03 -08:00
2017-11-15 18:21:07 -08:00
2017-12-12 08:56:26 -08:00
2017-11-15 13:46:33 -08:00
2017-11-13 17:33:11 -08:00
2017-11-15 18:21:04 -08:00
2017-11-24 01:37:35 +09:00
2017-12-03 00:27:57 +01:00
2017-11-14 21:51:14 +09:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2017-11-17 16:10:00 -08:00
2017-11-18 20:37:12 -05:00
2017-11-10 19:53:25 -07:00
2017-11-15 15:01:28 -08:00
2017-11-16 16:05:01 -08:00
2017-11-15 11:56:19 -08:00
2017-11-15 18:21:03 -08:00
2017-11-15 18:21:02 -08:00
2017-11-17 16:10:00 -08:00
2017-11-15 18:21:06 -08:00
2017-11-15 18:21:06 -08:00
2017-11-26 14:11:54 -08:00
2017-11-17 14:58:01 -08:00
2017-12-05 12:51:19 -05:00
2017-12-05 11:16:19 -05:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:03 -08:00
2017-11-13 01:33:48 +01:00
2017-11-21 05:28:13 -10:00
2017-11-17 20:14:10 -08:00
2017-11-17 16:10:01 -08:00
2017-11-17 16:10:04 -08:00
2017-11-15 18:21:04 -08:00
2017-11-13 17:56:58 -08:00
2017-11-15 11:56:19 -08:00
2017-11-15 20:42:10 -08:00
2017-11-21 09:25:01 +01:00
2017-12-05 11:16:19 -05:00
2017-11-15 20:42:10 -08:00
2017-12-05 12:09:18 -05:00
2017-11-15 18:21:01 -08:00
2017-11-15 18:21:06 -08:00
2017-11-15 18:21:01 -08:00
2017-11-15 18:21:06 -08:00
2017-11-18 20:37:12 -05:00
2017-11-17 16:10:03 -08:00
2017-11-11 18:53:16 +09:00
2017-11-15 18:21:04 -08:00
2017-11-13 17:56:58 -08:00
2017-11-13 17:56:58 -08:00
2017-11-14 11:20:25 +01:00
2017-11-14 10:01:49 +01:00
2017-11-21 16:35:54 -08:00
2017-12-13 22:44:10 +01:00
2017-11-15 18:21:01 -08:00
2017-11-14 18:01:46 -08:00
2017-11-16 12:20:15 -08:00
2017-11-24 01:37:35 +09:00
2017-11-15 18:21:07 -08:00
2017-11-13 15:38:16 +00:00
2017-11-21 16:35:54 -08:00
2017-11-21 15:46:44 -08:00