aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-02-01 11:57:02 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-02-01 11:57:02 -0500
commit067187fc9f1d09738fc833392e117f125cb6bbad (patch)
tree791e077a9a6f473263e677169ccbae5790d56135 /tools/perf/Makefile
parentf6bbc1daac964da551130dbf01809d3fbd178b2d (diff)
perf tools: Remove verbose build messages for the python binding
Also now it builds it in a well known location: [acme@felicio linux]$ rm -rf ../build/perf/ [acme@felicio linux]$ mkdir ../build/perf [acme@felicio linux]$ make -j2 O=~acme/git/build/perf -C tools/perf/ <SNIP> [acme@felicio linux]$ ls -la ../build/perf/python/ total 152 -rwxrwxr-x 1 acme acme 147957 Feb 1 14:56 perf.so drwxrwxr-x 3 acme acme 17 Feb 1 14:56 temp [acme@felicio linux]$ [root@felicio ~]# strip ~acme/git/build/perf/python/perf.so [root@felicio ~]# ls -la ~acme/git/build/perf/python/perf.so -rwxrwxr-x 1 acme acme 46264 Feb 1 14:58 /home/acme/git/build/perf/python/perf.so [root@felicio ~]# export PYTHONPATH=~acme/git/build/perf/python/ [root@felicio ~]# ~acme/git/linux/tools/perf/python/twatch.py cpu: 0, pid: 7751, tid: 7751 { type: exit, pid: 7751, ppid: 7751, tid: 7751, ptid: 7751, time: 54562393512356} cpu: 0, pid: 13700, tid: 13700 { type: fork, pid: 7756, ppid: 13700, tid: 7756, ptid: 13700, time: 54562393746739} cpu: 1, pid: 7756, tid: 7756 { type: fork, pid: 7757, ppid: 7756, tid: 7757, ptid: 7756, time: 54562394246152} cpu: 1, pid: 7757, tid: 7757 { type: comm, pid: 7757, tid: 7757, comm: awk } cpu: 1, pid: 7757, tid: 7757 { type: exit, pid: 7757, ppid: 7757, tid: 7757, ptid: 7757, time: 54562395456813} Reported-by: Ingo Molnar <mingo@elte.hu> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 67a9f4d805de..d1984ee5df69 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -325,9 +325,9 @@ SCRIPT_SH += perf-archive.sh
325grep-libs = $(filter -l%,$(1)) 325grep-libs = $(filter -l%,$(1))
326strip-libs = $(filter-out -l%,$(1)) 326strip-libs = $(filter-out -l%,$(1))
327 327
328pyrf: $(PYRF_OBJS) 328$(OUTPUT)python/perf.so: $(PYRF_OBJS)
329 python util/setup.py build --build-base='$(OUTPUT)' 329 @python util/setup.py --quiet build_ext --build-lib='$(OUTPUT)python' \
330 330 --build-temp='$(OUTPUT)python/temp'
331# 331#
332# No Perl scripts right now: 332# No Perl scripts right now:
333# 333#
@@ -348,12 +348,14 @@ PROGRAMS += $(EXTRA_PROGRAMS)
348# 348#
349PROGRAMS += $(OUTPUT)perf 349PROGRAMS += $(OUTPUT)perf
350 350
351LANG_BINDINGS = $(OUTPUT)python/perf.so
352
351# List built-in command $C whose implementation cmd_$C() is not in 353# List built-in command $C whose implementation cmd_$C() is not in
352# builtin-$C.o but is linked in as part of some other command. 354# builtin-$C.o but is linked in as part of some other command.
353# 355#
354 356
355# what 'all' will build and 'install' will install, in perfexecdir 357# what 'all' will build and 'install' will install, in perfexecdir
356ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS) pyrf 358ALL_PROGRAMS = $(PROGRAMS) $(SCRIPTS) $(LANG_BINDINGS)
357 359
358# what 'all' will build but not install in perfexecdir 360# what 'all' will build but not install in perfexecdir
359OTHER_PROGRAMS = $(OUTPUT)perf$X 361OTHER_PROGRAMS = $(OUTPUT)perf$X
@@ -1298,6 +1300,8 @@ clean:
1298 $(RM) $(htmldocs).tar.gz $(manpages).tar.gz 1300 $(RM) $(htmldocs).tar.gz $(manpages).tar.gz
1299 $(MAKE) -C Documentation/ clean 1301 $(MAKE) -C Documentation/ clean
1300 $(RM) $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)PERF-CFLAGS $(OUTPUT)PERF-BUILD-OPTIONS 1302 $(RM) $(OUTPUT)PERF-VERSION-FILE $(OUTPUT)PERF-CFLAGS $(OUTPUT)PERF-BUILD-OPTIONS
1303 @python util/setup.py clean --build-lib='$(OUTPUT)python' \
1304 --build-temp='$(OUTPUT)python/temp'
1301 1305
1302.PHONY: all install clean strip 1306.PHONY: all install clean strip
1303.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell 1307.PHONY: shell_compatibility_test please_set_SHELL_PATH_to_a_more_modern_shell