diff options
author | Steven Rostedt (Red Hat) <srostedt@redhat.com> | 2013-03-05 21:23:55 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:35:49 -0400 |
commit | ce9bae55972b228cf7bac34350c4d2caf8ea0d0b (patch) | |
tree | 637ef0eb957989c40ae4749c090764cff640014d /kernel/lglock.c | |
parent | 737223fbca3b1c91feb947c7f571b35749b743b6 (diff) |
tracing: Add snapshot feature to instances
Add the "snapshot" file to the the multi-buffer instances.
cd /sys/kernel/debug/tracing/instances
mkdir foo
ls foo
buffer_size_kb buffer_total_size_kb events free_buffer set_event
snapshot trace trace_clock trace_marker trace_options trace_pipe
tracing_on
cat foo/snapshot
# tracer: nop
#
#
# * Snapshot is freed *
#
# Snapshot commands:
# echo 0 > snapshot : Clears and frees snapshot buffer
# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.
# Takes a snapshot of the main buffer.
# echo 2 > snapshot : Clears snapshot buffer (but does not allocate)
# (Doesn't have to be '2' works with any number that
# is not a '0' or '1')
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/lglock.c')
0 files changed, 0 insertions, 0 deletions