diff options
| author | Björn Töpel <[email protected]> | 2019-10-01 11:22:49 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-10-03 14:27:03 +0000 |
| commit | e55190f26f92927e95aba22b069679311d5379ea (patch) | |
| tree | b8869fb3db9211c383d1b8a1ce109a21e8f9b883 /samples/bpf/task_fd_query_user.c | |
| parent | selftests/bpf: test_progs: Don't leak server_fd in test_sockopt_inherit (diff) | |
| download | kernel-e55190f26f92927e95aba22b069679311d5379ea.tar.gz kernel-e55190f26f92927e95aba22b069679311d5379ea.zip | |
samples/bpf: Fix build for task_fd_query_user.c
Add missing include for <linux/perf_event.h> which was removed from
perf-sys.h in commit 91854f9a077e ("perf tools: Move everything
related to sys_perf_event_open() to perf-sys.h").
Fixes: 91854f9a077e ("perf tools: Move everything related to sys_perf_event_open() to perf-sys.h")
Reported-by: KP Singh <[email protected]>
Reported-by: Florent Revest <[email protected]>
Signed-off-by: Björn Töpel <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Tested-by: KP Singh <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'samples/bpf/task_fd_query_user.c')
| -rw-r--r-- | samples/bpf/task_fd_query_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/bpf/task_fd_query_user.c b/samples/bpf/task_fd_query_user.c index e39938058223..4c31b305e6ef 100644 --- a/samples/bpf/task_fd_query_user.c +++ b/samples/bpf/task_fd_query_user.c @@ -13,6 +13,7 @@ #include <sys/resource.h> #include <sys/types.h> #include <sys/stat.h> +#include <linux/perf_event.h> #include "libbpf.h" #include "bpf_load.h" |
