aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/perf/include/internal
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2021-07-06 17:16:58 +0200
committerArnaldo Carvalho de Melo <[email protected]>2021-07-07 11:41:58 -0300
commit3d970601dacaefc025a2d690dfd63f56b1bdde0b (patch)
treecb7456857e589999395552727483180f7a26bcd0 /tools/lib/perf/include/internal
parentb4b046ff9e3410593db7b35326cf696810af8f4f (diff)
libperf: Change tests to single static and shared binaries
Make tests to be two binaries 'tests_static' and 'tests_shared', so the maintenance is easier. Adding tests under libperf build system, so we define all the flags just once. Adding make-tests tule to just compile tests without running them. Signed-off-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Shunsuke Nakamura <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/lib/perf/include/internal')
-rw-r--r--tools/lib/perf/include/internal/tests.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/perf/include/internal/tests.h b/tools/lib/perf/include/internal/tests.h
index 29425c2dabe1..61052099225b 100644
--- a/tools/lib/perf/include/internal/tests.h
+++ b/tools/lib/perf/include/internal/tests.h
@@ -5,8 +5,8 @@
#include <stdio.h>
#include <unistd.h>
-int tests_failed;
-int tests_verbose;
+extern int tests_failed;
+extern int tests_verbose;
static inline int get_verbose(char **argv, int argc)
{