diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2020-02-14 18:33:06 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2020-02-14 18:33:06 +0000 |
commit | 310fc9064928502847d2e95d88c785fa9cb94bae (patch) | |
tree | 8871f415bdea5317bddbc6d86e9f095d5b5869b5 | |
parent | 0829ee913be2287b819c13bb4424881c7ba6b799 (diff) | |
download | sos-310fc9064928502847d2e95d88c785fa9cb94bae.tar.gz |
[ebpf] Collect bpftool [map|prog] list in both formats
Collect and store both maps and progs list in both human readable
and JSON formats.
Resolves: #1923
Suggested-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/ebpf.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sos/plugins/ebpf.py b/sos/plugins/ebpf.py index f3ddb87d..36ac608b 100644 --- a/sos/plugins/ebpf.py +++ b/sos/plugins/ebpf.py @@ -53,6 +53,10 @@ class Ebpf(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): self.add_cmd_output("bpftool map dump id %s" % map_id) self.add_cmd_output([ + # collect list of eBPF programs and maps and their dumps + # in human readable form + "bpftool prog list", + "bpftool map list", # Iterate over all cgroups and list all attached programs "bpftool cgroup tree", # collect list of bpf program attachments in the kernel |