summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-perl.h
diff options
context:
space:
mode:
authorTom Zanussi2009-12-07 03:41:52 +0100
committerIngo Molnar2009-12-07 06:31:37 +0100
commit3a9a0beba2913edaae39ff8b4645fee10c3acf37 (patch)
treeb1d94db3c4036097967e218919ac717ae753b9e6 /tools/perf/util/trace-event-perl.h
parentperf_event: Eliminate raw->size (diff)
downloadkernel-qcow2-linux-3a9a0beba2913edaae39ff8b4645fee10c3acf37.tar.gz
kernel-qcow2-linux-3a9a0beba2913edaae39ff8b4645fee10c3acf37.tar.xz
kernel-qcow2-linux-3a9a0beba2913edaae39ff8b4645fee10c3acf37.zip
perf trace/scripting: Fix compile error when libperl not installed
When I added the xs callbacks into perf, I forgot to re-check the no-libperl case. This patch fixes the undefined reference error for that. Reported-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260153712.6564.4.camel@tropicana> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/trace-event-perl.h')
-rw-r--r--tools/perf/util/trace-event-perl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event-perl.h b/tools/perf/util/trace-event-perl.h
index 8fe0d866fe1a..e88fb26137bb 100644
--- a/tools/perf/util/trace-event-perl.h
+++ b/tools/perf/util/trace-event-perl.h
@@ -34,9 +34,13 @@ typedef int INTERP;
#define dXSUB_SYS
#define pTHX_
static inline void newXS(const char *a, void *b, const char *c) {}
+static void boot_Perf__Trace__Context(pTHX_ CV *cv) {}
+static void boot_DynaLoader(pTHX_ CV *cv) {}
#else
#include <EXTERN.h>
#include <perl.h>
+void boot_Perf__Trace__Context(pTHX_ CV *cv);
+void boot_DynaLoader(pTHX_ CV *cv);
typedef PerlInterpreter * INTERP;
#endif