summaryrefslogtreecommitdiffstats
path: root/samples/bpf/trace_event_kern.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2019-10-08 19:59:39 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2019-10-08 23:16:03 +0200
commit3ac4dbe3dd8943450e0366f8174fbfc286ea8f19 (patch)
tree3a7567bb8f3831f093d504f54f0d75d6cb1dc4fb /samples/bpf/trace_event_kern.c
parentselftests/bpf: Adjust CO-RE reloc tests for new bpf_core_read() macro (diff)
downloadlinux-3ac4dbe3dd8943450e0366f8174fbfc286ea8f19.tar.xz
linux-3ac4dbe3dd8943450e0366f8174fbfc286ea8f19.zip
selftests/bpf: Split off tracing-only helpers into bpf_tracing.h
Split-off PT_REGS-related helpers into bpf_tracing.h header. Adjust selftests and samples to include it where necessary. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20191008175942.1769476-5-andriin@fb.com
Diffstat (limited to 'samples/bpf/trace_event_kern.c')
-rw-r--r--samples/bpf/trace_event_kern.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/trace_event_kern.c b/samples/bpf/trace_event_kern.c
index 7068fbdde951..8dc18d233a27 100644
--- a/samples/bpf/trace_event_kern.c
+++ b/samples/bpf/trace_event_kern.c
@@ -10,6 +10,7 @@
#include <uapi/linux/bpf_perf_event.h>
#include <uapi/linux/perf_event.h>
#include "bpf_helpers.h"
+#include "bpf_tracing.h"
struct key_t {
char comm[TASK_COMM_LEN];