diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-02 19:15:23 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-02 19:15:23 -0400 |
| commit | f0bb4c0ab064a8aeeffbda1cee380151a594eaab (patch) | |
| tree | 14d55a89c5db455aa10ff9a96ca14c474a9c4d55 /tools/perf/tests/make | |
| parent | a4883ef6af5e513a1e8c2ab9aab721604aa3a4f5 (diff) | |
| parent | 983433b5812c5cf33a9008fa38c6f9b407fedb76 (diff) | |
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf updates from Ingo Molnar:
"Kernel improvements:
- watchdog driver improvements by Li Zefan
- Power7 CPI stack events related improvements by Sukadev Bhattiprolu
- event multiplexing via hrtimers and other improvements by Stephane
Eranian
- kernel stack use optimization by Andrew Hunter
- AMD IOMMU uncore PMU support by Suravee Suthikulpanit
- NMI handling rate-limits by Dave Hansen
- various hw_breakpoint fixes by Oleg Nesterov
- hw_breakpoint overflow period sampling and related signal handling
fixes by Jiri Olsa
- Intel Haswell PMU support by Andi Kleen
Tooling improvements:
- Reset SIGTERM handler in workload child process, fix from David
Ahern.
- Makefile reorganization, prep work for Kconfig patches, from Jiri
Olsa.
- Add automated make test suite, from Jiri Olsa.
- Add --percent-limit option to 'top' and 'report', from Namhyung
Kim.
- Sorting improvements, from Namhyung Kim.
- Expand definition of sysfs format attribute, from Michael Ellerman.
Tooling fixes:
- 'perf tests' fixes from Jiri Olsa.
- Make Power7 CPI stack events available in sysfs, from Sukadev
Bhattiprolu.
- Handle death by SIGTERM in 'perf record', fix from David Ahern.
- Fix printing of perf_event_paranoid message, from David Ahern.
- Handle realloc failures in 'perf kvm', from David Ahern.
- Fix divide by 0 in variance, from David Ahern.
- Save parent pid in thread struct, from David Ahern.
- Handle JITed code in shared memory, from Andi Kleen.
- Fixes for 'perf diff', from Jiri Olsa.
- Remove some unused struct members, from Jiri Olsa.
- Add missing liblk.a dependency for python/perf.so, fix from Jiri
Olsa.
- Respect CROSS_COMPILE in liblk.a, from Rabin Vincent.
- No need to do locking when adding hists in perf report, only 'top'
needs that, from Namhyung Kim.
- Fix alignment of symbol column in in the hists browser (top,
report) when -v is given, from NAmhyung Kim.
- Fix 'perf top' -E option behavior, from Namhyung Kim.
- Fix bug in isupper() and islower(), from Sukadev Bhattiprolu.
- Fix compile errors in bp_signal 'perf test', from Sukadev
Bhattiprolu.
... and more things"
* 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (102 commits)
perf/x86: Disable PEBS-LL in intel_pmu_pebs_disable()
perf/x86: Fix shared register mutual exclusion enforcement
perf/x86/intel: Support full width counting
x86: Add NMI duration tracepoints
perf: Drop sample rate when sampling is too slow
x86: Warn when NMI handlers take large amounts of time
hw_breakpoint: Introduce "struct bp_cpuinfo"
hw_breakpoint: Simplify *register_wide_hw_breakpoint()
hw_breakpoint: Introduce cpumask_of_bp()
hw_breakpoint: Simplify the "weight" usage in toggle_bp_slot() paths
hw_breakpoint: Simplify list/idx mess in toggle_bp_slot() paths
perf/x86/intel: Add mem-loads/stores support for Haswell
perf/x86/intel: Support Haswell/v4 LBR format
perf/x86/intel: Move NMI clearing to end of PMI handler
perf/x86/intel: Add Haswell PEBS support
perf/x86/intel: Add simple Haswell PMU support
perf/x86/intel: Add Haswell PEBS record support
perf/x86/intel: Fix sparse warning
perf/x86/amd: AMD IOMMU Performance Counter PERF uncore PMU implementation
perf/x86/amd: Add IOMMU Performance Counter resource management
...
Diffstat (limited to 'tools/perf/tests/make')
| -rw-r--r-- | tools/perf/tests/make | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/tools/perf/tests/make b/tools/perf/tests/make new file mode 100644 index 000000000000..c441a2875128 --- /dev/null +++ b/tools/perf/tests/make | |||
| @@ -0,0 +1,138 @@ | |||
| 1 | PERF := . | ||
| 2 | MK := Makefile | ||
| 3 | |||
| 4 | # standard single make variable specified | ||
| 5 | make_clean_all := clean all | ||
| 6 | make_python_perf_so := python/perf.so | ||
| 7 | make_debug := DEBUG=1 | ||
| 8 | make_no_libperl := NO_LIBPERL=1 | ||
| 9 | make_no_libpython := NO_LIBPYTHON=1 | ||
| 10 | make_no_scripts := NO_LIBPYTHON=1 NO_LIBPERL=1 | ||
| 11 | make_no_newt := NO_NEWT=1 | ||
| 12 | make_no_slang := NO_SLANG=1 | ||
| 13 | make_no_gtk2 := NO_GTK2=1 | ||
| 14 | make_no_ui := NO_NEWT=1 NO_SLANG=1 NO_GTK2=1 | ||
| 15 | make_no_demangle := NO_DEMANGLE=1 | ||
| 16 | make_no_libelf := NO_LIBELF=1 | ||
| 17 | make_no_libunwind := NO_LIBUNWIND=1 | ||
| 18 | make_no_backtrace := NO_BACKTRACE=1 | ||
| 19 | make_no_libnuma := NO_LIBNUMA=1 | ||
| 20 | make_no_libaudit := NO_LIBAUDIT=1 | ||
| 21 | make_no_libbionic := NO_LIBBIONIC=1 | ||
| 22 | make_tags := tags | ||
| 23 | make_cscope := cscope | ||
| 24 | make_help := help | ||
| 25 | make_doc := doc | ||
| 26 | make_perf_o := perf.o | ||
| 27 | make_util_map_o := util/map.o | ||
| 28 | |||
| 29 | # all the NO_* variable combined | ||
| 30 | make_minimal := NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 NO_GTK2=1 | ||
| 31 | make_minimal += NO_DEMANGLE=1 NO_LIBELF=1 NO_LIBUNWIND=1 NO_BACKTRACE=1 | ||
| 32 | make_minimal += NO_LIBNUMA=1 NO_LIBAUDIT=1 NO_LIBBIONIC=1 | ||
| 33 | |||
| 34 | # $(run) contains all available tests | ||
| 35 | run := make_pure | ||
| 36 | run += make_clean_all | ||
| 37 | run += make_python_perf_so | ||
| 38 | run += make_debug | ||
| 39 | run += make_no_libperl | ||
| 40 | run += make_no_libpython | ||
| 41 | run += make_no_scripts | ||
| 42 | run += make_no_newt | ||
| 43 | run += make_no_slang | ||
| 44 | run += make_no_gtk2 | ||
| 45 | run += make_no_ui | ||
| 46 | run += make_no_demangle | ||
| 47 | run += make_no_libelf | ||
| 48 | run += make_no_libunwind | ||
| 49 | run += make_no_backtrace | ||
| 50 | run += make_no_libnuma | ||
| 51 | run += make_no_libaudit | ||
| 52 | run += make_no_libbionic | ||
| 53 | run += make_tags | ||
| 54 | run += make_cscope | ||
| 55 | run += make_help | ||
| 56 | run += make_doc | ||
| 57 | run += make_perf_o | ||
| 58 | run += make_util_map_o | ||
| 59 | run += make_minimal | ||
| 60 | |||
| 61 | # $(run_O) contains same portion of $(run) tests with '_O' attached | ||
| 62 | # to distinguish O=... tests | ||
| 63 | run_O := $(addsuffix _O,$(run)) | ||
| 64 | |||
| 65 | # disable some tests for O=... | ||
| 66 | run_O := $(filter-out make_python_perf_so_O,$(run_O)) | ||
| 67 | |||
| 68 | # define test for each compile as 'test_NAME' variable | ||
| 69 | # with the test itself as a value | ||
| 70 | test_make_tags = test -f tags | ||
| 71 | test_make_cscope = test -f cscope.out | ||
| 72 | |||
| 73 | test_make_tags_O := $(test_make_tags) | ||
| 74 | test_make_cscope_O := $(test_make_cscope) | ||
| 75 | |||
| 76 | test_ok := true | ||
| 77 | test_make_help := $(test_ok) | ||
| 78 | test_make_doc := $(test_ok) | ||
| 79 | test_make_help_O := $(test_ok) | ||
| 80 | test_make_doc_O := $(test_ok) | ||
| 81 | |||
| 82 | test_make_python_perf_so := test -f $(PERF)/python/perf.so | ||
| 83 | |||
| 84 | test_make_perf_o := test -f $(PERF)/perf.o | ||
| 85 | test_make_util_map_o := test -f $(PERF)/util/map.o | ||
| 86 | |||
| 87 | # Kbuild tests only | ||
| 88 | #test_make_python_perf_so_O := test -f $$TMP/tools/perf/python/perf.so | ||
| 89 | #test_make_perf_o_O := test -f $$TMP/tools/perf/perf.o | ||
| 90 | #test_make_util_map_o_O := test -f $$TMP/tools/perf/util/map.o | ||
| 91 | |||
| 92 | test_make_perf_o_O := true | ||
| 93 | test_make_util_map_o_O := true | ||
| 94 | |||
| 95 | test_default = test -x $(PERF)/perf | ||
| 96 | test = $(if $(test_$1),$(test_$1),$(test_default)) | ||
| 97 | |||
| 98 | test_default_O = test -x $$TMP/perf | ||
| 99 | test_O = $(if $(test_$1),$(test_$1),$(test_default_O)) | ||
| 100 | |||
| 101 | all: | ||
| 102 | |||
| 103 | ifdef DEBUG | ||
| 104 | d := $(info run $(run)) | ||
| 105 | d := $(info run_O $(run_O)) | ||
| 106 | endif | ||
| 107 | |||
| 108 | MAKEFLAGS := --no-print-directory | ||
| 109 | |||
| 110 | clean := @(cd $(PERF); make -s -f $(MK) clean >/dev/null) | ||
| 111 | |||
| 112 | $(run): | ||
| 113 | $(call clean) | ||
| 114 | @cmd="cd $(PERF) && make -f $(MK) $($@)"; \ | ||
| 115 | echo "- $@: $$cmd" && echo $$cmd > $@ && \ | ||
| 116 | ( eval $$cmd ) >> $@ 2>&1; \ | ||
| 117 | echo " test: $(call test,$@)"; \ | ||
| 118 | $(call test,$@) && \ | ||
| 119 | rm -f $@ | ||
| 120 | |||
| 121 | $(run_O): | ||
| 122 | $(call clean) | ||
| 123 | @TMP=$$(mktemp -d); \ | ||
| 124 | cmd="cd $(PERF) && make -f $(MK) $($(patsubst %_O,%,$@)) O=$$TMP"; \ | ||
| 125 | echo "- $@: $$cmd" && echo $$cmd > $@ && \ | ||
| 126 | ( eval $$cmd ) >> $@ 2>&1 && \ | ||
| 127 | echo " test: $(call test_O,$@)"; \ | ||
| 128 | $(call test_O,$@) && \ | ||
| 129 | rm -f $@ && \ | ||
| 130 | rm -rf $$TMP | ||
| 131 | |||
| 132 | all: $(run) $(run_O) | ||
| 133 | @echo OK | ||
| 134 | |||
| 135 | out: $(run_O) | ||
| 136 | @echo OK | ||
| 137 | |||
| 138 | .PHONY: all $(run) $(run_O) clean | ||
