diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-12-03 20:10:35 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-03 20:10:42 +0100 |
commit | 23ba90e328fd2326378447cafafa47defdfc83c2 (patch) | |
tree | c1febaf468e0255eedfbedf07a07d8178a0b5ac9 /tools/perf/util/trace-event-perl.h | |
parent | x86: Fix comments of register/stack access functions (diff) | |
parent | perf trace/scripting: Add Fedora libperl install note to doc (diff) | |
download | linux-23ba90e328fd2326378447cafafa47defdfc83c2.tar.xz linux-23ba90e328fd2326378447cafafa47defdfc83c2.zip |
Merge branch 'perf/scripting' into perf/core
Merge reason: it's ready for v2.6.33.
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.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event-perl.h b/tools/perf/util/trace-event-perl.h new file mode 100644 index 000000000000..8fe0d866fe1a --- /dev/null +++ b/tools/perf/util/trace-event-perl.h @@ -0,0 +1,51 @@ +#ifndef __PERF_TRACE_EVENT_PERL_H +#define __PERF_TRACE_EVENT_PERL_H +#ifdef NO_LIBPERL +typedef int INTERP; +#define dSP +#define ENTER +#define SAVETMPS +#define PUTBACK +#define SPAGAIN +#define FREETMPS +#define LEAVE +#define SP +#define ERRSV +#define G_SCALAR (0) +#define G_DISCARD (0) +#define G_NOARGS (0) +#define PUSHMARK(a) +#define SvTRUE(a) (0) +#define XPUSHs(s) +#define sv_2mortal(a) +#define newSVpv(a,b) +#define newSVuv(a) +#define newSViv(a) +#define get_cv(a,b) (0) +#define call_pv(a,b) (0) +#define perl_alloc() (0) +#define perl_construct(a) (0) +#define perl_parse(a,b,c,d,e) (0) +#define perl_run(a) (0) +#define perl_destruct(a) (0) +#define perl_free(a) (0) +#define pTHX void +#define CV void +#define dXSUB_SYS +#define pTHX_ +static inline void newXS(const char *a, void *b, const char *c) {} +#else +#include <EXTERN.h> +#include <perl.h> +typedef PerlInterpreter * INTERP; +#endif + +struct scripting_context { + void *event_data; +}; + +int common_pc(struct scripting_context *context); +int common_flags(struct scripting_context *context); +int common_lock_depth(struct scripting_context *context); + +#endif /* __PERF_TRACE_EVENT_PERL_H */ |