]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ad9cb971087f675cd4f0200ccb1b1b128541a20
tree7031a16848e12350bf8fdc2384ceacdbbc6901a4
parent1c1a76b9ccb0fa02e6a3176785a4c410c8e510dd
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