diff options
Diffstat (limited to 'tools/perf/builtin-probe.c')
| -rw-r--r-- | tools/perf/builtin-probe.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/perf/builtin-probe.c b/tools/perf/builtin-probe.c index e215ae61b2ae..118aa8946573 100644 --- a/tools/perf/builtin-probe.c +++ b/tools/perf/builtin-probe.c | |||
| @@ -143,8 +143,8 @@ static int parse_probe_event_argv(int argc, const char **argv) | |||
| 143 | return ret; | 143 | return ret; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | static int opt_add_probe_event(const struct option *opt __used, | 146 | static int opt_add_probe_event(const struct option *opt __maybe_unused, |
| 147 | const char *str, int unset __used) | 147 | const char *str, int unset __maybe_unused) |
| 148 | { | 148 | { |
| 149 | if (str) { | 149 | if (str) { |
| 150 | params.mod_events = true; | 150 | params.mod_events = true; |
| @@ -153,8 +153,8 @@ static int opt_add_probe_event(const struct option *opt __used, | |||
| 153 | return 0; | 153 | return 0; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | static int opt_del_probe_event(const struct option *opt __used, | 156 | static int opt_del_probe_event(const struct option *opt __maybe_unused, |
| 157 | const char *str, int unset __used) | 157 | const char *str, int unset __maybe_unused) |
| 158 | { | 158 | { |
| 159 | if (str) { | 159 | if (str) { |
| 160 | params.mod_events = true; | 160 | params.mod_events = true; |
| @@ -166,7 +166,7 @@ static int opt_del_probe_event(const struct option *opt __used, | |||
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | static int opt_set_target(const struct option *opt, const char *str, | 168 | static int opt_set_target(const struct option *opt, const char *str, |
| 169 | int unset __used) | 169 | int unset __maybe_unused) |
| 170 | { | 170 | { |
| 171 | int ret = -ENOENT; | 171 | int ret = -ENOENT; |
| 172 | 172 | ||
| @@ -188,8 +188,8 @@ static int opt_set_target(const struct option *opt, const char *str, | |||
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | #ifdef DWARF_SUPPORT | 190 | #ifdef DWARF_SUPPORT |
| 191 | static int opt_show_lines(const struct option *opt __used, | 191 | static int opt_show_lines(const struct option *opt __maybe_unused, |
| 192 | const char *str, int unset __used) | 192 | const char *str, int unset __maybe_unused) |
| 193 | { | 193 | { |
| 194 | int ret = 0; | 194 | int ret = 0; |
| 195 | 195 | ||
| @@ -209,8 +209,8 @@ static int opt_show_lines(const struct option *opt __used, | |||
| 209 | return ret; | 209 | return ret; |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | static int opt_show_vars(const struct option *opt __used, | 212 | static int opt_show_vars(const struct option *opt __maybe_unused, |
| 213 | const char *str, int unset __used) | 213 | const char *str, int unset __maybe_unused) |
| 214 | { | 214 | { |
| 215 | struct perf_probe_event *pev = ¶ms.events[params.nevents]; | 215 | struct perf_probe_event *pev = ¶ms.events[params.nevents]; |
| 216 | int ret; | 216 | int ret; |
| @@ -229,8 +229,8 @@ static int opt_show_vars(const struct option *opt __used, | |||
| 229 | } | 229 | } |
| 230 | #endif | 230 | #endif |
| 231 | 231 | ||
| 232 | static int opt_set_filter(const struct option *opt __used, | 232 | static int opt_set_filter(const struct option *opt __maybe_unused, |
| 233 | const char *str, int unset __used) | 233 | const char *str, int unset __maybe_unused) |
| 234 | { | 234 | { |
| 235 | const char *err; | 235 | const char *err; |
| 236 | 236 | ||
| @@ -327,7 +327,7 @@ static const struct option options[] = { | |||
| 327 | OPT_END() | 327 | OPT_END() |
| 328 | }; | 328 | }; |
| 329 | 329 | ||
| 330 | int cmd_probe(int argc, const char **argv, const char *prefix __used) | 330 | int cmd_probe(int argc, const char **argv, const char *prefix __maybe_unused) |
| 331 | { | 331 | { |
| 332 | int ret; | 332 | int ret; |
| 333 | 333 | ||
