]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: add raw_tracepoint_writable prog type to header
authorDaniel T. Lee <danieltimlee@gmail.com>
Fri, 12 Jul 2019 01:35:39 +0000 (10:35 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 12 Jul 2019 13:14:42 +0000 (15:14 +0200)
commit8a50f3da66040cc78791abcec1bf1fdc18d76f75
tree6e550ae6251789909ce01fcaf6a103f088e519ba
parent015564f7efa5af6caf80839bc61ee278d2b563f6
tools: bpftool: add raw_tracepoint_writable prog type to header

From commit dae8bfd9a0ea ("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: dae8bfd9a0ea ("bpf: add writable context for raw tracepoints")
Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/main.h