diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-01-23 12:06:23 -0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-26 14:40:53 +0100 |
commit | 9011262a37cb438f0fa9394b5e83840db8f9680a (patch) | |
tree | e79b5e6ff2499047f95fd99d7f9e90b62c6ae2cf /kernel/trace | |
parent | 5ce1b1ed27d4ab1d81b8543a96f488bba2071576 (diff) | |
download | op-kernel-dev-9011262a37cb438f0fa9394b5e83840db8f9680a.zip op-kernel-dev-9011262a37cb438f0fa9394b5e83840db8f9680a.tar.gz |
ftrace: add ftrace_vprintk
Impact: new helper function
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 2129ab9..2f8ac1f 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -2951,6 +2951,15 @@ int __ftrace_printk(unsigned long ip, const char *fmt, ...) } EXPORT_SYMBOL_GPL(__ftrace_printk); +int __ftrace_vprintk(unsigned long ip, const char *fmt, va_list ap) +{ + if (!(trace_flags & TRACE_ITER_PRINTK)) + return 0; + + return trace_vprintk(ip, task_curr_ret_stack(current), fmt, ap); +} +EXPORT_SYMBOL_GPL(__ftrace_vprintk); + static int trace_panic_handler(struct notifier_block *this, unsigned long event, void *unused) { |