Skip to content

Commit d71bd34

Browse files
tzanussirostedt
authored andcommitted
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>
1 parent 033cbce commit d71bd34

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/trace/trace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6214,7 +6214,7 @@ static int tracing_clock_show(struct seq_file *m, void *v)
62146214
return 0;
62156215
}
62166216

6217-
static int tracing_set_clock(struct trace_array *tr, const char *clockstr)
6217+
int tracing_set_clock(struct trace_array *tr, const char *clockstr)
62186218
{
62196219
int i;
62206220

‎kernel/trace/trace.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ extern int trace_array_get(struct trace_array *tr);
289289
extern void trace_array_put(struct trace_array *tr);
290290

291291
extern int tracing_set_time_stamp_abs(struct trace_array *tr, bool abs);
292+
extern int tracing_set_clock(struct trace_array *tr, const char *clockstr);
292293

293294
extern bool trace_clock_in_ns(struct trace_array *tr);
294295

0 commit comments

Comments
 (0)