From 61a8968627f66b5777dd04f348df525685ba1fa1 Mon Sep 17 00:00:00 2001 From: Jake Hunsaker Date: Sat, 10 Feb 2018 13:48:00 -0500 Subject: [kernel] Add collection of tracing information Adds collection of /sys/kernel/debug/tracing information. Resolves: #1211 Signed-off-by: Jake Hunsaker Signed-off-by: Bryn M. Reeves --- sos/plugins/kernel.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sos/plugins/kernel.py b/sos/plugins/kernel.py index 6c2f509c..524ce234 100644 --- a/sos/plugins/kernel.py +++ b/sos/plugins/kernel.py @@ -62,6 +62,15 @@ class Kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): ]) clocksource_path = "/sys/devices/system/clocksource/clocksource0/" + + self.add_forbidden_path([ + '/sys/kernel/debug/tracing/trace_pipe', + '/sys/kernel/debug/tracing/README', + '/sys/kernel/debug/tracing/trace_stat/*', + '/sys/kernel/debug/tracing/per_cpu/*', + '/sys/kernel/debug/tracing/events/*' + ]) + self.add_copy_spec([ "/proc/modules", "/proc/sys/kernel/random/boot_id", @@ -71,6 +80,7 @@ class Kernel(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/sys/module/*/taint", "/sys/module/*/version", "/sys/firmware/acpi/*", + "/sys/kernel/debug/tracing/*", "/proc/kallsyms", "/proc/buddyinfo", "/proc/slabinfo", -- cgit