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