diff options
author | Dave Marchevsky <davemarchevsky@fb.com> | 2021-09-17 21:29:08 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-09-18 00:02:05 +0300 |
commit | 4190c299a49f323232221e73fe1846c53e3fc3f1 (patch) | |
tree | 88b70e66ce868b958b2cb38be14ad94959a6e41a /tools/bpf | |
parent | 6c66b0e7c91a1320c1b85ad8150bdd534eb4ddae (diff) | |
download | linux-4190c299a49f323232221e73fe1846c53e3fc3f1.tar.xz |
bpftool: Only probe trace_vprintk feature in 'full' mode
Since commit 368cb0e7cdb5e ("bpftool: Make probes which emit dmesg
warnings optional"), some helpers aren't probed by bpftool unless
`full` arg is added to `bpftool feature probe`.
bpf_trace_vprintk can emit dmesg warnings when probed, so include it.
Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210917182911.2426606-7-davemarchevsky@fb.com
Diffstat (limited to 'tools/bpf')
-rw-r--r-- | tools/bpf/bpftool/feature.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/feature.c b/tools/bpf/bpftool/feature.c index 7f36385aa9e2..ade44577688e 100644 --- a/tools/bpf/bpftool/feature.c +++ b/tools/bpf/bpftool/feature.c @@ -624,6 +624,7 @@ probe_helpers_for_progtype(enum bpf_prog_type prog_type, bool supported_type, */ switch (id) { case BPF_FUNC_trace_printk: + case BPF_FUNC_trace_vprintk: case BPF_FUNC_probe_write_user: if (!full_mode) continue; |