perf trace/scripting: Fix compile error when libperl not installed
authorTom Zanussi <tzanussi@gmail.com>
Mon, 7 Dec 2009 02:41:52 +0000 (20:41 -0600)
committerIngo Molnar <mingo@elte.hu>
Mon, 7 Dec 2009 05:31:37 +0000 (06:31 +0100)
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>
tools/perf/util/trace-event-perl.c
tools/perf/util/trace-event-perl.h

index 51e833fd58c39a1c863d65ad799839aa3ce3cd31..59564b22d9ce46175f053ae4873a2a2ab075596e 100644 (file)
@@ -32,9 +32,6 @@
 
 void xs_init(pTHX);
 
-void boot_Perf__Trace__Context(pTHX_ CV *cv);
-void boot_DynaLoader(pTHX_ CV *cv);
-
 void xs_init(pTHX)
 {
        const char *file = __FILE__;
index 8fe0d866fe1afec78cbdb5d1b569e111559fe35b..e88fb26137bbbc125531845d364210e7e91df1dc 100644 (file)
@@ -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
 
This page took 0.027929 seconds and 5 git commands to generate.