lkml.org 
[lkml]   [2015]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] kernel/trace: call helper function to check global_trace
Date
Use helper function tracing_is_enabled() to check if global_trace
has been disabled.

No functional change.

Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
---
kernel/trace/trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 6e79408..b0bd322a 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -7111,7 +7111,7 @@ __init static int tracer_alloc_buffers(void)
goto out_free_savedcmd;
}

- if (global_trace.buffer_disabled)
+ if (!tracing_is_enabled())
tracing_off();

if (trace_boot_clock) {
--
1.9.1



\
 
 \ /
  Last update: 2015-09-22 16:01    [W:0.054 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site