]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/trace/trace_functions_graph.c
Merge branch 'x86/core' into tracing/ftrace
[karo-tx-linux.git] / kernel / trace / trace_functions_graph.c
index c009553a8e815829cc47658744868d86d66e2d32..35257be6a9d6fb2a3352995d78a0e95abee65e94 100644 (file)
@@ -112,7 +112,7 @@ unsigned long ftrace_return_to_handler(void)
        unsigned long ret;
 
        ftrace_pop_return_trace(&trace, &ret);
-       trace.rettime = cpu_clock(raw_smp_processor_id());
+       trace.rettime = trace_clock_local();
        ftrace_graph_return(&trace);
 
        if (unlikely(!ret)) {
@@ -742,7 +742,11 @@ print_graph_comment(struct print_entry *trace, struct trace_seq *s,
                }
 
        /* The comment */
-       ret = trace_seq_printf(s, "/* %s", trace->buf);
+       ret = trace_seq_printf(s, "/* ");
+       if (!ret)
+               return TRACE_TYPE_PARTIAL_LINE;
+
+       ret = trace_seq_bprintf(s, trace->fmt, trace->buf);
        if (!ret)
                return TRACE_TYPE_PARTIAL_LINE;
 
@@ -833,7 +837,7 @@ static void graph_trace_open(struct trace_iterator *iter)
 
 static void graph_trace_close(struct trace_iterator *iter)
 {
-       percpu_free(iter->private);
+       free_percpu(iter->private);
 }
 
 static struct tracer graph_trace __read_mostly = {