33 static int stop_script_unsupported(
void)
46 static void print_python_unsupported_msg(
void)
48 fprintf(stderr,
"Python scripting not supported."
49 " Install libpython and rebuild perf to enable it.\n"
50 "For example:\n # apt-get install python-dev (ubuntu)"
51 "\n # yum install python-devel (Fedora)"
56 int argc __maybe_unused,
57 const char **argv __maybe_unused)
59 print_python_unsupported_msg();
64 static int python_generate_script_unsupported(
struct pevent *
pevent
69 print_python_unsupported_msg();
76 .start_script = python_start_script_unsupported,
77 .stop_script = stop_script_unsupported,
78 .process_event = process_event_unsupported,
79 .generate_script = python_generate_script_unsupported,
87 die(
"error registering Python script extension");
91 die(
"error registering py script extension");
93 scripting_context =
malloc(
sizeof(
struct scripting_context));
99 register_python_scripting(&python_scripting_unsupported_ops);
110 static void print_perl_unsupported_msg(
void)
112 fprintf(stderr,
"Perl scripting not supported."
113 " Install libperl and rebuild perf to enable it.\n"
114 "For example:\n # apt-get install libperl-dev (ubuntu)"
115 "\n # yum install 'perl(ExtUtils::Embed)' (Fedora)"
120 int argc __maybe_unused,
121 const char **argv __maybe_unused)
123 print_perl_unsupported_msg();
128 static int perl_generate_script_unsupported(
struct pevent *
pevent
130 const char *outfile __maybe_unused)
132 print_perl_unsupported_msg();
139 .start_script = perl_start_script_unsupported,
140 .stop_script = stop_script_unsupported,
141 .process_event = process_event_unsupported,
142 .generate_script = perl_generate_script_unsupported,
145 static void register_perl_scripting(
struct scripting_ops *scripting_ops)
150 die(
"error registering Perl script extension");
154 die(
"error registering pl script extension");
156 scripting_context =
malloc(
sizeof(
struct scripting_context));
162 register_perl_scripting(&perl_scripting_unsupported_ops);