samples/bpf: fix build for task_fd_query_user.c
Subsystems (3)
PATCH 1/1 samples/bpf: fix build for task_fd_query_user.c
From: Björn Töpel <[email protected]>
Add missing "linux/perf_event.h" include file.
Signed-off-by Björn Töpel <[email protected]>
--- samples/bpf/task_fd_query_user.c | 1 + 1 file changed, 1 insertion(+)
samples/bpf/task_fd_query_user.c +1 -0
@@ -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"
Signature · 1 line
2.20.1
Quoted 6 lines · Björn Töpel
From: Björn Töpel <[email protected]>
Add missing "
linux/perf_event.h" include file.Signed-off-by Björn Töpel <[email protected]>
Acked-by Song Liu <[email protected]>
KP Singh
Tested-byQuoted 10 lines · Song Liu
Quoted 6 lines · Björn Töpel
From: Björn Töpel <[email protected]>
Add missing "
linux/perf_event.h" include file.Signed-off-by Björn Töpel <[email protected]>Acked-by Song Liu <[email protected]>
Tested-by KP Singh <[email protected]>
Quoted 7 lines · KP Singh
Quoted 6 lines · Song Liu
Quoted 5 lines · Björn Töpel
From: Björn Töpel <[email protected]>
Add missing "
linux/perf_event.h" include file.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Björn Töpel <[email protected]>Acked-by Song Liu <[email protected]>Tested-by KP Singh <[email protected]>
Applied, thanks! Given also KP and Florent sent a similar patch earlier, I've added Reported-by and improved the commit message a bit to something more useful with regards to *why* we suddenly need to add the include.