Skip to content

Commit b9be6d0

Browse files
wyqkprostedt
authored andcommitted
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 <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
1 parent d0e639c commit b9be6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2760,7 +2760,7 @@ static void show_snapshot_main_help(struct seq_file *m)
27602760
seq_printf(m, "# echo 0 > snapshot : Clears and frees snapshot buffer\n");
27612761
seq_printf(m, "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n");
27622762
seq_printf(m, "# Takes a snapshot of the main buffer.\n");
2763-
seq_printf(m, "# echo 2 > snapshot : Clears snapshot buffer (but does not allocate)\n");
2763+
seq_printf(m, "# echo 2 > snapshot : Clears snapshot buffer (but does not allocate or free)\n");
27642764
seq_printf(m, "# (Doesn't have to be '2' works with any number that\n");
27652765
seq_printf(m, "# is not a '0' or '1')\n");
27662766
}

0 commit comments

Comments
 (0)