aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2014-02-19 10:52:55 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-02-24 07:29:36 -0500
commit8d79076a3c5dbe45109fd15d2489168fbbb28a3d (patch)
tree627d8b095aa294b4eb54fa05c962e9f15709742b /tools
parent0695e57b9a6a5eb856a58cf488f715b3bb7366a0 (diff)
perf tools: Add variable display for VF make output
Adding dump of interesting build directories to the make VF=1 output. $ make VF=1 BUILD: Doing 'make -j4' parallel build Auto-detecting system features: ... dwarf: [ on ] ... glibc: [ on ] ... gtk2: [ on ] ... libaudit: [ on ] ... libbfd: [ on ] ... libelf: [ on ] ... libnuma: [ on ] ... libperl: [ on ] ... libpython: [ on ] ... libslang: [ on ] ... libunwind: [ on ] ... backtrace: [ on ] ... fortify-source: [ on ] ... gtk2-infobar: [ on ] ... libelf-getphdrnum: [ on ] ... libelf-mmap: [ on ] ... libpython-version: [ on ] ... on-exit: [ on ] ... stackprotector-all: [ on ] ... timerfd: [ on ] ... libunwind-debug-frame: [ OFF ] ... bionic: [ OFF ] ... prefix: /home/jolsa ... bindir: /home/jolsa/bin ... libdir: /home/jolsa/lib64 ... sysconfdir: /home/jolsa/etc Adding functions to print variable/text in features display - feature_print_var/feature_print_text (feature_print_text is used in next patches). Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jean Pihet <jean.pihet@linaro.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1392825179-5228-3-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/config/Makefile23
1 files changed, 19 insertions, 4 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 39e6e6cca8ed..97a64c4631d3 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -591,9 +591,9 @@ endif
591# 591#
592# Print the result of the feature test: 592# Print the result of the feature test:
593# 593#
594feature_print = $(eval $(feature_print_code)) $(info $(MSG)) 594feature_print_status = $(eval $(feature_print_status_code)) $(info $(MSG))
595 595
596define feature_print_code 596define feature_print_status_code
597 ifeq ($(feature-$(1)), 1) 597 ifeq ($(feature-$(1)), 1)
598 MSG = $(shell printf '...%30s: [ \033[32mon\033[m ]' $(1)) 598 MSG = $(shell printf '...%30s: [ \033[32mon\033[m ]' $(1))
599 else 599 else
@@ -601,6 +601,16 @@ define feature_print_code
601 endif 601 endif
602endef 602endef
603 603
604feature_print_var = $(eval $(feature_print_var_code)) $(info $(MSG))
605define feature_print_var_code
606 MSG = $(shell printf '...%30s: %s' $(1) $($(1)))
607endef
608
609feature_print_text = $(eval $(feature_print_text_code)) $(info $(MSG))
610define feature_print_text_code
611 MSG = $(shell printf '...%30s: %s' $(1) $(2))
612endef
613
604PERF_FEATURES := $(foreach feat,$(LIB_FEATURE_TESTS),feature-$(feat)($(feature-$(feat)))) 614PERF_FEATURES := $(foreach feat,$(LIB_FEATURE_TESTS),feature-$(feat)($(feature-$(feat))))
605PERF_FEATURES_FILE := $(shell touch $(OUTPUT)PERF-FEATURES; cat $(OUTPUT)PERF-FEATURES) 615PERF_FEATURES_FILE := $(shell touch $(OUTPUT)PERF-FEATURES; cat $(OUTPUT)PERF-FEATURES)
606 616
@@ -633,11 +643,16 @@ endif
633ifeq ($(display_lib),1) 643ifeq ($(display_lib),1)
634 $(info ) 644 $(info )
635 $(info Auto-detecting system features:) 645 $(info Auto-detecting system features:)
636 $(foreach feat,$(LIB_FEATURE_TESTS),$(call feature_print,$(feat),)) 646 $(foreach feat,$(LIB_FEATURE_TESTS),$(call feature_print_status,$(feat),))
637endif 647endif
638 648
639ifeq ($(display_vf),1) 649ifeq ($(display_vf),1)
640 $(foreach feat,$(VF_FEATURE_TESTS),$(call feature_print,$(feat),)) 650 $(foreach feat,$(VF_FEATURE_TESTS),$(call feature_print_status,$(feat),))
651 $(info )
652 $(call feature_print_var,prefix)
653 $(call feature_print_var,bindir)
654 $(call feature_print_var,libdir)
655 $(call feature_print_var,sysconfdir)
641endif 656endif
642 657
643ifeq ($(display_lib),1) 658ifeq ($(display_lib),1)