Skip to content

Commit e55190f

Browse files
Björn Töpelborkmann
authored andcommitted
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 91854f9 ("perf tools: Move everything related to sys_perf_event_open() to perf-sys.h"). Fixes: 91854f9 ("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]
1 parent a2d074e commit e55190f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/bpf/task_fd_query_user.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <sys/resource.h>
1414
#include <sys/types.h>
1515
#include <sys/stat.h>
16+
#include <linux/perf_event.h>
1617

1718
#include "libbpf.h"
1819
#include "bpf_load.h"

0 commit comments

Comments
 (0)