From 62b77dcd78dc271879d01f0132acea1952ef226d Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Thu, 27 Jun 2019 13:44:40 +0200 Subject: [PATCH] [kernel] collect "bpftool net list" List bpf program attachments in the kernel networking subsystem. Resolves: #1712 Signed-off-by: Pavel Moravec --- sos/plugins/kernel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py index 558e71438..bf3c3deaa 100644 --- a/sos/plugins/kernel.py +++ b/sos/plugins/kernel.py @@ -142,6 +142,10 @@ class Kernel(Plugin, RedHatPlugin, Debia if not self.get_option("trace"): self.add_forbidden_path("/sys/kernel/debug/tracing/trace") + # collect list of bpf program attachments in the kernel + # networking subsystem + self.add_cmd_output("bpftool net list") + # collect list of eBPF programs and maps and their dumps prog_file = self.get_cmd_output_now("bpftool -j prog list") for prog_id in self.get_bpftool_prog_ids(prog_file):