OSDN Git Service

bpftool: Make probes which emit dmesg warnings optional
authorMichal Rostecki <mrostecki@opensuse.org>
Wed, 26 Feb 2020 16:59:36 +0000 (17:59 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 26 Feb 2020 17:34:34 +0000 (18:34 +0100)
commit368cb0e7cdb5e67ad8c0cd52f1d71341c42a7e4b
tree7031a16848e12350bf8fdc2384ceacdbbc6901a4
parent6b52ca44e8af2c508ffbcd03261cf849a740756a
bpftool: Make probes which emit dmesg warnings optional

Probes related to bpf_probe_write_user and bpf_trace_printk helpers emit
dmesg warnings which might be confusing for people running bpftool on
production environments. This change filters them out by default and
introduces the new positional argument "full" which enables all
available probes.

Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20200226165941.6379-3-mrostecki@opensuse.org
tools/bpf/bpftool/feature.c