summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2013-10-18 21:15:54 -0300
committerSteven Rostedt <rostedt@goodmis.org>2013-11-06 11:06:00 -0500
commit2e86421debc2cf4d1513c9b73fcd34c5ce431ae3 (patch)
treed72c2718037c2dc1ea9ddc26b8c9eb98c30efb66 /kernel/trace/trace.h
parentb2f974d6af9accfec11e69cc76d2ab9f0c7359e0 (diff)
downloadop-kernel-dev-2e86421debc2cf4d1513c9b73fcd34c5ce431ae3.zip
op-kernel-dev-2e86421debc2cf4d1513c9b73fcd34c5ce431ae3.tar.gz
tracing: Add helper function tracing_is_disabled()
This patch creates the function 'tracing_is_disabled', which can be used outside of trace.c. Link: http://lkml.kernel.org/r/1382141754-12155-1-git-send-email-geyslan@gmail.com Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 9c27cda..4388e16 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -514,6 +514,7 @@ void tracing_reset_online_cpus(struct trace_buffer *buf);
void tracing_reset_current(int cpu);
void tracing_reset_all_online_cpus(void);
int tracing_open_generic(struct inode *inode, struct file *filp);
+bool tracing_is_disabled(void);
struct dentry *trace_create_file(const char *name,
umode_t mode,
struct dentry *parent,
OpenPOWER on IntegriCloud