diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2018-02-10 13:48:00 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-04-26 13:34:48 +0100 |
commit | 61a8968627f66b5777dd04f348df525685ba1fa1 (patch) | |
tree | e849af418e3169fad06b162e7d0f6898ffab45cd | |
parent | 29a40b793345443b1fa71ca268858eb5536ecd8d (diff) | |
download | sos-61a8968627f66b5777dd04f348df525685ba1fa1.tar.gz |
[kernel] Add collection of tracing information
Adds collection of /sys/kernel/debug/tracing information.
Resolves: #1211
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/kernel.py | 10 |
1 files changed, 10 insertions, 0 deletions
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", |