Add linux trace events

Add the output of the linux trace buffer to user dumps, with
lowest priority since the file can be large (~10MB).

Change-Id: I186b123154098400245f24db438e2a79a8da8b10
Signed-off-by: Eddie James <eajames@linux.ibm.com>
diff --git a/.shellcheck-ignore b/.shellcheck-ignore
index f546731..aab534c 100644
--- a/.shellcheck-ignore
+++ b/.shellcheck-ignore
@@ -30,6 +30,7 @@
 tools/dreport.d/plugins.d/osrelease
 tools/dreport.d/plugins.d/pldmflightrecorder
 tools/dreport.d/plugins.d/timedate
+tools/dreport.d/plugins.d/traceevents
 tools/dreport.d/plugins.d/top
 tools/dreport.d/plugins.d/uptime
 tools/dreport.d/ibm.d/plugins.d/badpel
diff --git a/ffdc b/ffdc
index f08649a..5587a33 100644
--- a/ffdc
+++ b/ffdc
@@ -30,6 +30,7 @@
       "BMC_dmesg.txt"             "dmesg"
       "BMC_procinfo.txt"          "cat /proc/cpuinfo"
       "BMC_meminfo.txt"           "cat /proc/meminfo"
+      "BMC_traceevents.txt"       "cat /sys/kernel/tracing/trace"
 
 # Copy all content from these directories into directories in the .tar
 # Format: "Directory name" "Directory to copy"
diff --git a/tools/dreport.d/plugins.d/traceevents b/tools/dreport.d/plugins.d/traceevents
new file mode 100644
index 0000000..207898b
--- /dev/null
+++ b/tools/dreport.d/plugins.d/traceevents
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# config: 2 99
+# @brief: Collect kernel event tracing
+#
+
+. $DREPORT_INCLUDE/functions
+
+desc="Kernel event traces"
+file_name="/sys/kernel/tracing/trace"
+
+add_copy_file "$file_name" "$desc"