OSDN Git Service

tracing: Consolidate buffer allocation code
authorSteven Rostedt (Red Hat) <srostedt@redhat.com>
Wed, 6 Mar 2013 02:13:47 +0000 (21:13 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 15 Mar 2013 04:35:49 +0000 (00:35 -0400)
commit737223fbca3b1c91feb947c7f571b35749b743b6
treeff7a4e73785e909c5dd27584f6bfa5aab21a7153
parent45ad21ca5530efdca6a19e4a5ac5e7bd6e24f996
tracing: Consolidate buffer allocation code

There's a bit of duplicate code in creating the trace buffers for
the normal trace buffer and the max trace buffer among the instances
and the main global_trace. This code can be consolidated and cleaned
up a bit making the code cleaner and more readable as well as less
duplication.

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