aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
-rw-r--r--tools/perf/util/trace-event-scripting.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/tools/perf/util/trace-event-scripting.c b/tools/perf/util/trace-event-scripting.c
index 302ff262494c..8715a1006d00 100644
--- a/tools/perf/util/trace-event-scripting.c
+++ b/tools/perf/util/trace-event-scripting.c
@@ -35,11 +35,11 @@ static int stop_script_unsupported(void)
35 return 0; 35 return 0;
36} 36}
37 37
38static void process_event_unsupported(union perf_event *event __unused, 38static void process_event_unsupported(union perf_event *event __maybe_unused,
39 struct perf_sample *sample __unused, 39 struct perf_sample *sample __maybe_unused,
40 struct perf_evsel *evsel __unused, 40 struct perf_evsel *evsel __maybe_unused,
41 struct machine *machine __unused, 41 struct machine *machine __maybe_unused,
42 struct addr_location *al __unused) 42 struct addr_location *al __maybe_unused)
43{ 43{
44} 44}
45 45
@@ -52,17 +52,19 @@ static void print_python_unsupported_msg(void)
52 "\n etc.\n"); 52 "\n etc.\n");
53} 53}
54 54
55static int python_start_script_unsupported(const char *script __unused, 55static int python_start_script_unsupported(const char *script __maybe_unused,
56 int argc __unused, 56 int argc __maybe_unused,
57 const char **argv __unused) 57 const char **argv __maybe_unused)
58{ 58{
59 print_python_unsupported_msg(); 59 print_python_unsupported_msg();
60 60
61 return -1; 61 return -1;
62} 62}
63 63
64static int python_generate_script_unsupported(struct pevent *pevent __unused, 64static int python_generate_script_unsupported(struct pevent *pevent
65 const char *outfile __unused) 65 __maybe_unused,
66 const char *outfile
67 __maybe_unused)
66{ 68{
67 print_python_unsupported_msg(); 69 print_python_unsupported_msg();
68 70
@@ -114,17 +116,18 @@ static void print_perl_unsupported_msg(void)
114 "\n etc.\n"); 116 "\n etc.\n");
115} 117}
116 118
117static int perl_start_script_unsupported(const char *script __unused, 119static int perl_start_script_unsupported(const char *script __maybe_unused,
118 int argc __unused, 120 int argc __maybe_unused,
119 const char **argv __unused) 121 const char **argv __maybe_unused)
120{ 122{
121 print_perl_unsupported_msg(); 123 print_perl_unsupported_msg();
122 124
123 return -1; 125 return -1;
124} 126}
125 127
126static int perl_generate_script_unsupported(struct pevent *pevent __unused, 128static int perl_generate_script_unsupported(struct pevent *pevent
127 const char *outfile __unused) 129 __maybe_unused,
130 const char *outfile __maybe_unused)
128{ 131{
129 print_perl_unsupported_msg(); 132 print_perl_unsupported_msg();
130 133