diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-09-04 01:11:07 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-09-05 01:13:53 +0200 |
commit | 659372d3e42a3e17a2e042d38a8bcdb94bfbe797 (patch) | |
tree | 4c6195eb5e96569f902695f33babbea37e00bd41 /kernel/trace/trace.h | |
parent | tracing: pass around ring buffer instead of tracer (diff) | |
download | linux-659372d3e42a3e17a2e042d38a8bcdb94bfbe797.tar.xz linux-659372d3e42a3e17a2e042d38a8bcdb94bfbe797.zip |
tracing: add trace_array_printk for internal tracers to use
This patch adds a trace_array_printk to allow a tracer to use the
trace_printk on its own trace array.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to '')
-rw-r--r-- | kernel/trace/trace.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 4d30414fe19a..fa1dccb579d5 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -566,6 +566,11 @@ extern int trace_vbprintk(unsigned long ip, const char *fmt, va_list args); extern int trace_vprintk(unsigned long ip, const char *fmt, va_list args); +extern int +trace_array_vprintk(struct trace_array *tr, + unsigned long ip, const char *fmt, va_list args); +int trace_array_printk(struct trace_array *tr, + unsigned long ip, const char *fmt, ...); extern unsigned long trace_flags; |