aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-11-14 02:33:24 -0500
committerIngo Molnar <mingo@kernel.org>2013-11-14 07:36:00 -0500
commitbb4c5500c9c5b809696eee212843e731721a6e15 (patch)
tree4e5bac485a974ffd521bddd34e102b93bd0636fd /tools
parent555a098af6086256bc64d3806519f37ccae936e0 (diff)
tools/perf/build: Fix timerfd feature check
'feature_timerfd' is checked all the time and calculated explicitly, in a serial fashion. Add it to CORE_FEATURE_TESTS which causes it to be built in parallel, using the newfangled parallel build autodetection code. This shaves 137 msecs off the perf build time on my system, which speeds up the common case cached build by 43%: Before: comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/ [...] 0,453771441 seconds time elapsed ( +- 0,09% ) After: comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/ [...] 0,316290185 seconds time elapsed ( +- 0,24% ) Cc: David Ahern <dsahern@gmail.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Link: http://lkml.kernel.org/n/tip-bb92CmexihopoSyqnkqepvsy@git.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/config/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index f5905f2b197d..861379ec7632 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -142,7 +142,8 @@ CORE_FEATURE_TESTS = \
142 libunwind \ 142 libunwind \
143 on-exit \ 143 on-exit \
144 stackprotector \ 144 stackprotector \
145 stackprotector-all 145 stackprotector-all \
146 timerfd
146 147
147# 148#
148# So here we detect whether test-all was rebuilt, to be able 149# So here we detect whether test-all was rebuilt, to be able
@@ -405,7 +406,6 @@ else
405 endif 406 endif
406endif 407endif
407 408
408$(call feature_check,timerfd)
409ifeq ($(feature-timerfd), 1) 409ifeq ($(feature-timerfd), 1)
410 CFLAGS += -DHAVE_TIMERFD_SUPPORT 410 CFLAGS += -DHAVE_TIMERFD_SUPPORT
411else 411else