aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-test.c')
-rw-r--r--tools/perf/builtin-test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index 6ae102eba5fa..d33143efefce 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -18,7 +18,8 @@
18 18
19#include <sys/mman.h> 19#include <sys/mman.h>
20 20
21static int vmlinux_matches_kallsyms_filter(struct map *map __used, struct symbol *sym) 21static int vmlinux_matches_kallsyms_filter(struct map *map __maybe_unused,
22 struct symbol *sym)
22{ 23{
23 bool *visited = symbol__priv(sym); 24 bool *visited = symbol__priv(sym);
24 *visited = true; 25 *visited = true;
@@ -996,7 +997,9 @@ static u64 mmap_read_self(void *addr)
996/* 997/*
997 * If the RDPMC instruction faults then signal this back to the test parent task: 998 * If the RDPMC instruction faults then signal this back to the test parent task:
998 */ 999 */
999static void segfault_handler(int sig __used, siginfo_t *info __used, void *uc __used) 1000static void segfault_handler(int sig __maybe_unused,
1001 siginfo_t *info __maybe_unused,
1002 void *uc __maybe_unused)
1000{ 1003{
1001 exit(-1); 1004 exit(-1);
1002} 1005}
@@ -1315,7 +1318,7 @@ static int perf_test__list(int argc, const char **argv)
1315 return 0; 1318 return 0;
1316} 1319}
1317 1320
1318int cmd_test(int argc, const char **argv, const char *prefix __used) 1321int cmd_test(int argc, const char **argv, const char *prefix __maybe_unused)
1319{ 1322{
1320 const char * const test_usage[] = { 1323 const char * const test_usage[] = {
1321 "perf test [<options>] [{list <test-name-fragment>|[<test-name-fragments>|<test-numbers>]}]", 1324 "perf test [<options>] [{list <test-name-fragment>|[<test-name-fragments>|<test-numbers>]}]",