summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-01-14 17:28:38 +0100
committerSteven Rostedt <rostedt@goodmis.org>2014-04-21 19:59:26 +0200
commit6d9b3fa5e7f663bbfb9d2d80d46136f75319cb28 (patch)
treeeb21578a00e6e1092ba53c79a4a84e8dc8e13388 /kernel/trace/trace.h
parentftrace: Remove global function list and call function directly (diff)
downloadlinux-6d9b3fa5e7f663bbfb9d2d80d46136f75319cb28.tar.xz
linux-6d9b3fa5e7f663bbfb9d2d80d46136f75319cb28.zip
tracing: Move tracing_max_latency into trace_array
In preparation for letting the latency tracers be used by instances, remove the global tracing_max_latency variable and add a max_latency field to the trace_array that the latency tracers will now use. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index df5256be64cd..644a8b533e1d 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -190,6 +190,7 @@ struct trace_array {
*/
struct trace_buffer max_buffer;
bool allocated_snapshot;
+ unsigned long max_latency;
#endif
int buffer_disabled;
#ifdef CONFIG_FTRACE_SYSCALLS
@@ -599,8 +600,6 @@ extern unsigned long nsecs_to_usecs(unsigned long nsecs);
extern unsigned long tracing_thresh;
#ifdef CONFIG_TRACER_MAX_TRACE
-extern unsigned long tracing_max_latency;
-
void update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu);
void update_max_tr_single(struct trace_array *tr,
struct task_struct *tsk, int cpu);