Currently the AUXTRACE infrastructure is only used by Intel PT and Intel BTS but is compiled into all architectures to support the ability to process a perf.data file (including one containing Intel PT or Intel BTS data) from any architecture on any other architecture.
Generally people don't want that ability with respect to AUXTRACE by default. Make the build option NO_AUXTRACE the default for non-x86 architectures. To build with AUXTRACE on those architectures use NO_AUXTRACE=0. The build-test is updated accordingly. Signed-off-by: Adrian Hunter <adrian.hun...@intel.com> --- tools/perf/config/Makefile | 8 ++++++++ tools/perf/tests/make | 2 ++ 2 files changed, 10 insertions(+) diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 827557fc7511..ddc3b64fdad2 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -621,6 +621,14 @@ ifdef LIBBABELTRACE endif ifndef NO_AUXTRACE + ifneq ($(ARCH),x86) + NO_AUXTRACE := 1 + else + NO_AUXTRACE := 0 + endif +endif + +ifeq ($(NO_AUXTRACE), 0) $(call detected,CONFIG_AUXTRACE) CFLAGS += -DHAVE_AUXTRACE_SUPPORT endif diff --git a/tools/perf/tests/make b/tools/perf/tests/make index ba31c4bd441d..977ded210de2 100644 --- a/tools/perf/tests/make +++ b/tools/perf/tests/make @@ -44,6 +44,7 @@ make_no_libnuma := NO_LIBNUMA=1 make_no_libaudit := NO_LIBAUDIT=1 make_no_libbionic := NO_LIBBIONIC=1 make_no_auxtrace := NO_AUXTRACE=1 +make_auxtrace := NO_AUXTRACE=0 make_tags := tags make_cscope := cscope make_help := help @@ -94,6 +95,7 @@ run += make_no_libnuma run += make_no_libaudit run += make_no_libbionic run += make_no_auxtrace +run += make_auxtrace run += make_help run += make_doc run += make_perf_o -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/