OSDN Git Service

bpftool: Only probe trace_vprintk feature in 'full' mode
authorDave Marchevsky <davemarchevsky@fb.com>
Fri, 17 Sep 2021 18:29:08 +0000 (11:29 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Sep 2021 21:02:05 +0000 (14:02 -0700)
commit4190c299a49f323232221e73fe1846c53e3fc3f1
tree88b70e66ce868b958b2cb38be14ad94959a6e41a
parent6c66b0e7c91a1320c1b85ad8150bdd534eb4ddae
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
tools/bpf/bpftool/feature.c
tools/testing/selftests/bpf/test_bpftool.py