53 fprintf(stderr,
"Python scripting not supported." 54 " Install libpython and rebuild perf to enable it.\n" 55 "For example:\n # apt-get install python-dev (ubuntu)" 56 "\n # yum install python-devel (Fedora)" 61 int argc __maybe_unused,
62 const char **argv __maybe_unused)
90 if (scripting_context == NULL)
91 scripting_context =
malloc(
sizeof(*scripting_context));
93 if (scripting_context == NULL ||
96 pr_err(
"Error registering Python script extension: disabling it\n");
97 zfree(&scripting_context);
101 #ifndef HAVE_LIBPYTHON_SUPPORT 117 fprintf(stderr,
"Perl scripting not supported." 118 " Install libperl and rebuild perf to enable it.\n" 119 "For example:\n # apt-get install libperl-dev (ubuntu)" 120 "\n # yum install 'perl(ExtUtils::Embed)' (Fedora)" 125 int argc __maybe_unused,
126 const char **argv __maybe_unused)
135 const char *outfile __maybe_unused)
153 if (scripting_context == NULL)
154 scripting_context =
malloc(
sizeof(*scripting_context));
156 if (scripting_context == NULL ||
159 pr_err(
"Error registering Perl script extension: disabling it\n");
160 zfree(&scripting_context);
164 #ifndef HAVE_LIBPERL_SUPPORT
static int python_start_script_unsupported(const char *script __maybe_unused, int argc __maybe_unused, const char **argv __maybe_unused)
static int perl_start_script_unsupported(const char *script __maybe_unused, int argc __maybe_unused, const char **argv __maybe_unused)
struct scripting_context * scripting_context
static int stop_script_unsupported(void)
void setup_python_scripting(void)
static int flush_script_unsupported(void)
void setup_perl_scripting(void)
static int perl_generate_script_unsupported(struct pevent *pevent __maybe_unused, const char *outfile __maybe_unused)
static void print_perl_unsupported_msg(void)
static void register_perl_scripting(struct scripting_ops *scripting_ops)
static void print_python_unsupported_msg(void)
static void register_python_scripting(struct scripting_ops *scripting_ops)
static void process_event_unsupported(union perf_event *event __maybe_unused, struct perf_sample *sample __maybe_unused, struct perf_evsel *evsel __maybe_unused, struct addr_location *al __maybe_unused)
int script_spec_register(const char *spec, struct scripting_ops *ops)
struct scripting_ops perl_scripting_unsupported_ops
struct scripting_ops python_scripting_unsupported_ops
static int python_generate_script_unsupported(struct pevent *pevent __maybe_unused, const char *outfile __maybe_unused)