summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2018-01-16 03:52:07 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-10 22:06:03 +0100
commitd71bd34d78bb78b9e6f8a0be3952d5fa470a260a (patch)
treec2e65a3c8c4af8e92bd6b48c82a789d8f9eefbf9 /kernel/trace/trace.h
parenttracing: Add inter-event hist trigger Documentation (diff)
downloadlinux-d71bd34d78bb78b9e6f8a0be3952d5fa470a260a.tar.xz
linux-d71bd34d78bb78b9e6f8a0be3952d5fa470a260a.zip
tracing: Make tracing_set_clock() non-static
Allow tracing code outside of trace.c to access tracing_set_clock(). Some applications may require a particular clock in order to function properly, such as latency calculations. Also, add an accessor returning the current clock string. Link: http://lkml.kernel.org/r/6d1c53e9ee2163f54e1849f5376573f54f0e6009.1516069914.git.tom.zanussi@linux.intel.com Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <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 99b7ee7ed127..9de3e2a2f042 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -289,6 +289,7 @@ extern int trace_array_get(struct trace_array *tr);
extern void trace_array_put(struct trace_array *tr);
extern int tracing_set_time_stamp_abs(struct trace_array *tr, bool abs);
+extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
extern bool trace_clock_in_ns(struct trace_array *tr);