tracing: Show more exact help information about snapshot
authorWang YanQing <udknight@gmail.com>
Sat, 14 Sep 2013 04:59:16 +0000 (12:59 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 10 Oct 2013 01:38:22 +0000 (21:38 -0400)
commitb9be6d026d327593784b042aab4fa27e2de9c825
treed54d923484f06479b39ab6b6b5c2a374d4801fe4
parentd0e639c9e06d44e713170031fe05fb60ebe680af
tracing: Show more exact help information about snapshot

The current "help" that comes out of the snapshot file when it is
not allocated looks like this:

 # * 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')

Echo 2 says that it does not allocate the buffer, which is correct,
but to be more consistent with "echo 0" it should also state
that it does not free.

Link: http://lkml.kernel.org/r/20130914045916.GA4243@udknight
Signed-off-by: Wang YanQing <udknight@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c