Skip to contentSkip to conversation

samples/bpf: fix build for task_fd_query_user.c

PATCH Applied Björn Töpel 4 participants 4 messages Oct 1, 2019 – Oct 3, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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.

---
 samples/bpf/task_fd_query_user.c | 1 +
 1 file changed, 1 insertion(+)
samples/bpf/task_fd_query_user.c +1 -0
index e39938058223..4c31b305e6ef 100644
@@ -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
maintainer Applied
#3 lore raw
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

(https://lore.kernel.org/bpf/[email protected]/T/#t)

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.