perf: export perf_trace_regs and perf_arch_fetch_caller_regs
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 11 Mar 2010 07:30:35 +0000 (15:30 +0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 11 Mar 2010 14:21:29 +0000 (15:21 +0100)
Export perf_trace_regs and perf_arch_fetch_caller_regs since module will
use these.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
[ use EXPORT_PER_CPU_SYMBOL_GPL() ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4B989C1B.2090407@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_event.c
kernel/trace/trace_event_perf.c

index 5fb490c6ee5ca8559e56bcb0f08faa37a26040b3..7645faea8e85e9d4f3c85326ddb6851bc1e0510e 100644 (file)
@@ -1713,3 +1713,4 @@ void perf_arch_fetch_caller_regs(struct pt_regs *regs, unsigned long ip, int ski
        regs->cs = __KERNEL_CS;
        local_save_flags(regs->flags);
 }
+EXPORT_SYMBOL_GPL(perf_arch_fetch_caller_regs);
index f315b12a41d8faefc288833eb9da8558f71bd677..0709e4f7511404e7fb84d6c6ab6da1b5b1560f51 100644 (file)
@@ -10,6 +10,7 @@
 #include "trace.h"
 
 DEFINE_PER_CPU(struct pt_regs, perf_trace_regs);
+EXPORT_PER_CPU_SYMBOL_GPL(perf_trace_regs);
 
 static char *perf_trace_buf;
 static char *perf_trace_buf_nmi;