diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2013-03-15 15:32:53 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 17:21:16 (GMT) |
commit | 6c43e554a2a5c1f2caf1733d46719bc58de3e37b (patch) | |
tree | 032b7ade3b4c0c24e9e89c9bf6fd3f37947c58cf /kernel/module-internal.h | |
parent | 8d016091d10953e00f9d2c0125cc0ddd46c23a6a (diff) | |
download | linux-fsl-qoriq-6c43e554a2a5c1f2caf1733d46719bc58de3e37b.tar.xz |
ring-buffer: Add ring buffer startup selftest
When testing my large changes to the ftrace system, there was
a bug that looked like the ring buffer was dropping events.
I wrote up a quick integrity checker of the ring buffer to
see if it was.
Although the bug ended up being something stupid I did in ftrace,
and had nothing to do with the ring buffer, I figured if I spent
the time to write up this test, I might as well include it in the
kernel.
I cleaned it up a bit, as the original version was rather ugly.
Not saying this version is pretty, but it's a beauty queen
compared to what I original wrote.
To enable the start up test, set CONFIG_RING_BUFFER_STARTUP_TEST.
Note, it runs for 10 seconds, so it will slow your boot time
by at least 10 more seconds.
What it does is documented in both the comments and the Kconfig
help.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/module-internal.h')
0 files changed, 0 insertions, 0 deletions