summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2019-07-12 10:35:39 +0900
committerDaniel Borkmann <daniel@iogearbox.net>2019-07-12 15:14:42 +0200
commit216b65fb706e34128a5317d71b300daac9c428c4 (patch)
tree6e550ae6251789909ce01fcaf6a103f088e519ba
parented4ed4043a127c5ca9a35339bb614693be9037a3 (diff)
downloadlinux-stable-216b65fb706e34128a5317d71b300daac9c428c4.tar.gz
linux-stable-216b65fb706e34128a5317d71b300daac9c428c4.tar.bz2
linux-stable-216b65fb706e34128a5317d71b300daac9c428c4.zip
tools: bpftool: add raw_tracepoint_writable prog type to header
From commit 9df1c28bb752 ("bpf: add writable context for raw tracepoints"), a new type of BPF_PROG, RAW_TRACEPOINT_WRITABLE has been added. Since this BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE is not listed at bpftool's header, it causes a segfault when executing 'bpftool feature'. This commit adds BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE entry to prog_type_name enum, and will eventually fixes the segfault issue. Fixes: 9df1c28bb752 ("bpf: add writable context for raw tracepoints") Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
-rw-r--r--tools/bpf/bpftool/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/main.h b/tools/bpf/bpftool/main.h
index 3ef0d9051e10..7031a4bf87a0 100644
--- a/tools/bpf/bpftool/main.h
+++ b/tools/bpf/bpftool/main.h
@@ -74,6 +74,7 @@ static const char * const prog_type_name[] = {
[BPF_PROG_TYPE_SK_REUSEPORT] = "sk_reuseport",
[BPF_PROG_TYPE_FLOW_DISSECTOR] = "flow_dissector",
[BPF_PROG_TYPE_CGROUP_SYSCTL] = "cgroup_sysctl",
+ [BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE] = "raw_tracepoint_writable",
[BPF_PROG_TYPE_CGROUP_SOCKOPT] = "cgroup_sockopt",
};