path: root/tools/perf
diff options
authorArnaldo Carvalho de Melo <>2016-01-29 14:49:31 -0300
committerArnaldo Carvalho de Melo <>2016-01-29 16:57:38 -0300
commita639a623904cc526cebd7679debf86e5c8e5590b (patch)
treee29be4c03bb7a177fb80528569f07ac1b30fa18a /tools/perf
parent79191c89a049a9c525ce22a7d1e5674699c58818 (diff)
perf tools: Speed up build-tests by reducing the number of builds tested
The 'tools/perf/test/make' makefile has in its default, 'all' target builds that will pollute the source code directory, i.e. that will not use O= variable. The 'build-test' should be run as often as possible, preferrably after each non strictly non-code commit, so speed it up by selecting just the O= targets. Furthermore it tests both the Makefile.perf file, that is normally driven by the main Makefile, and the Makefile, reduce the time in half by having just MK=Makefile, the most usual, tested by 'build-test'. Please run: make -C tools/perf -f tests/make from time to time for testing also the in-place build tests. Cc: Adrian Hunter <> Cc: David Ahern <> Cc: Jiri Olsa <> Cc: Namhyung Kim <> Cc: Wang Nan <> Link: Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf')
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index e4ff0bd08870..4b68f465195c 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -75,10 +75,17 @@ clean:
-# The build-test target is not really parallel, don't print the jobs info:
+# The build-test target is not really parallel, don't print the jobs info,
+# it also uses only the tests/make targets that don't pollute the source
+# repository, i.e. that uses O= or builds the tarpkg outside the source
+# repo directories.
+# For a full test, use:
+# make -C tools/perf -f tests/make
- @$(MAKE) SHUF=1 -f tests/make REUSE_FEATURES_DUMP=1 --no-print-directory
+ @$(MAKE) SHUF=1 -f tests/make REUSE_FEATURES_DUMP=1 MK=Makefile --no-print-directory tarpkg out
# All other targets get passed through: