diff options
author | Alon Farchy <afarchy@nvidia.com> | 2011-12-12 11:21:59 -0600 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-22 11:29:19 +0530 |
commit | e744c3588e7a09c8ec80e28efffd6f08c1c2b2b8 (patch) | |
tree | 648528218c7374503729cba660fa7950f6d3b5d0 /kernel/trace/Kconfig | |
parent | c6fe29a6337d4c0be9872e0c97ef66d49cbf2520 (diff) |
tracedump: Dump ftrace ring buffer data
Add a new module that will dump the contents of the ftrace ring buffer.
Data is compressed and can be in ascii or binary form. Data will
automatically dump on kernel panic to console. Data can be dumped by
reading /proc/tracedump. See tracedump.h for details.
Change-Id: I7b7afc3def0b88629dd120d17e43858306a8f357
Signed-off-by: Liang Cheng <licheng@nvidia.com>
Reviewed-on: http://git-master/r/69494
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r-- | kernel/trace/Kconfig | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 997ef6077e9e..93168c0f9910 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -496,6 +496,30 @@ config TRACELEVEL will automatically be enabled on kernel boot, and users can change the the trace level in a kernel parameter. +config TRACEDUMP + bool "Dumping functionality for ftrace" + depends on FUNCTION_TRACER + help + This option adds functionality to dump tracing data in several forms + Data can be dumped in ascii form or as raw pages from the tracing + ring buffers, along with the saved cmdlines. This is specified by + the module parameter tracedump_ascii. Data will be compressed + using zlib. + +config TRACEDUMP_PANIC + bool "Tracedump to console on panic" + depends on TRACEDUMP + help + With this option, tracedump will automatically dump to the console + on a kernel panic. + +config TRACEDUMP_PROCFS + bool "Tracedump via proc file" + depends on TRACEDUMP + help + With this option, tracedump can be dumped from user space by reading + from /proc/tracedump. + endif # FTRACE endif # TRACING_SUPPORT |