lkml.org 
[lkml]   [2015]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] perf tools: Make NO_AUXTRACE default for non-x86 architectures
    Date
    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.hunter@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


    \
     
     \ /
      Last update: 2015-08-25 13:01    [W:4.467 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site