projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2786a7f
)
ksnoop: remove duplicate include
author
Dave Marchevsky
<davemarchevsky@fb.com>
Thu, 23 Sep 2021 02:54:48 +0000
(22:54 -0400)
committer
GitHub
<noreply@github.com>
Thu, 23 Sep 2021 02:54:48 +0000
(22:54 -0400)
`ksnoop` is the only libbpf tool which is including both `<linux/bpf.h>` and `<bpf/bpf.h>` - the rest of the tools just include the latter
build fails for me because of redefinition errors as a result. Let's use `<bpf/bpf.h>` like the rest of the tools
libbpf-tools/ksnoop.c
patch
|
blob
|
history
diff --git
a/libbpf-tools/ksnoop.c
b/libbpf-tools/ksnoop.c
index
f6d4d8e
..
29f6fcd
100644
(file)
--- a/
libbpf-tools/ksnoop.c
+++ b/
libbpf-tools/ksnoop.c
@@
-4,7
+4,6
@@
#include <ctype.h>
#include <errno.h>
#include <getopt.h>
-#include <linux/bpf.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>