Blame SOURCES/sos-bz1721779-ebpf-net-list.patch

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