diff options
author | Matt Mullins <mmullins@fb.com> | 2019-04-26 11:49:50 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-04-26 19:04:19 -0700 |
commit | 4635b0ae4d26f87cf68dbab6740955dd1ad67cf4 (patch) | |
tree | 3622175df191cd2da9839c68170c9af3c0d9e4fa /tools/lib/bpf/libbpf.c | |
parent | 2abd2de712cd891321a06b0890a85aef1e506cb5 (diff) | |
download | linux-stable-4635b0ae4d26f87cf68dbab6740955dd1ad67cf4.tar.gz linux-stable-4635b0ae4d26f87cf68dbab6740955dd1ad67cf4.tar.bz2 linux-stable-4635b0ae4d26f87cf68dbab6740955dd1ad67cf4.zip |
tools: sync bpf.h
This adds BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, and fixes up the
error: enumeration value ‘BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE’ not handled in switch [-Werror=switch-enum]
build errors it would otherwise cause in libbpf.
Signed-off-by: Matt Mullins <mmullins@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
-rw-r--r-- | tools/lib/bpf/libbpf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 9052061ba7fc..11a65db4b93f 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -2136,6 +2136,7 @@ static bool bpf_prog_type__needs_kver(enum bpf_prog_type type) case BPF_PROG_TYPE_UNSPEC: case BPF_PROG_TYPE_TRACEPOINT: case BPF_PROG_TYPE_RAW_TRACEPOINT: + case BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE: case BPF_PROG_TYPE_PERF_EVENT: case BPF_PROG_TYPE_CGROUP_SYSCTL: return false; |