tracing: Add alloc/free_snapshot() to replace duplicate code
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 12 Mar 2013 15:17:54 +0000 (11:17 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:36:00 +0000 (00:36 -0400)
commit3209cff4490bee55fd2bc1d087cb8ecf2a686a88
tree0fd63cd5faa888c44b5d2a20ffd5048fcbd8dccf
parente1df4cb682ab2c3c2981c8efa4aec044e61f4e06
tracing: Add alloc/free_snapshot() to replace duplicate code

Add alloc_snapshot() and free_snapshot() to allocate and free the
snapshot buffer respectively, and use these to remove duplicate
code.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c