Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1230219
| From | Yaowei Bai <bywxiaobai@163.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] kernel/trace: call helper function to check global_trace |
| Date | 2015-09-22 15:50 +0200 |
| Message-ID | <qbw7g-6Xg-11@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/2] kernel/trace: call helper function to check global_trace Yaowei Bai <bywxiaobai@163.com> - 2015-09-22 15:50 +0200
Re: [PATCH 1/2] kernel/trace: call helper function to check global_trace Steven Rostedt <rostedt@goodmis.org> - 2015-09-22 16:00 +0200
Re: [PATCH 1/2] kernel/trace: call helper function to check global_trace Yaowei Bai <bywxiaobai@163.com> - 2015-09-23 16:00 +0200
csiph-web