diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-09-03 19:11:07 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2009-09-04 19:13:53 -0400 |
commit | 659372d3e42a3e17a2e042d38a8bcdb94bfbe797 (patch) | |
tree | 4c6195eb5e96569f902695f33babbea37e00bd41 /kernel/trace/trace.h | |
parent | e77405ad80f53966524b5c31244e13fbbbecbd84 (diff) | |
download | op-kernel-dev-659372d3e42a3e17a2e042d38a8bcdb94bfbe797.zip op-kernel-dev-659372d3e42a3e17a2e042d38a8bcdb94bfbe797.tar.gz |
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 'kernel/trace/trace.h')
-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 4d30414..fa1dccb 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; |