path: root/tools/perf/Documentation/Makefile
diff options
authorIngo Molnar <>2013-10-01 17:17:22 +0200
committerIngo Molnar <>2013-10-09 08:48:51 +0200
commitc9404c6650d8f58ce8cf98d4c5581fc5c9e37faf (patch)
tree0021feef6ccedb28e875340ed364b5b87f0fa839 /tools/perf/Documentation/Makefile
parentc72e3f04b45fb2e50cdd81a50c3778c6a57251d8 (diff)
tools/perf/build: Speed up the final link
libtraceevent.a and liblk.a rules have always-missed dependencies, which causes to be relinked at every build attempt - even if none of the affected code changes. This slows down re-builds unnecessarily, by adding more than a second to the build time: comet:~/tip/tools/perf> time make ... SUBDIR /fast/mingo/tip/tools/lib/lk/ make[1]: `liblk.a' is up to date. SUBDIR /fast/mingo/tip/tools/lib/traceevent/ LINK perf GEN python/ real 0m1.701s user 0m1.338s sys 0m0.301s Add the (trivial) dependencies to not force a re-link. This speeds up an empty re-build enormously: comet:~/tip/tools/perf> time make ... real 0m0.207s user 0m0.134s sys 0m0.028s [ This adds some coupling between the build dependencies of libtraceevent and liblk - but until those stay relatively simple this should not be an issue. ] Cc: Arnaldo Carvalho de Melo <> Cc: Peter Zijlstra <> Cc: Namhyung Kim <> Cc: David Ahern <> Cc: Jiri Olsa <> Link: Signed-off-by: Ingo Molnar <>
Diffstat (limited to 'tools/perf/Documentation/Makefile')
0 files changed, 0 insertions, 0 deletions