Skip to content
Snippets Groups Projects
  1. Dec 02, 2013
  2. Nov 14, 2013
    • Ingo Molnar's avatar
      tools/perf/build: Fix feature-libunwind-debug-frame handling · e310718d
      Ingo Molnar authored
      
      Set feature-libunwind-debug-frame. We don't want it in
      CORE_FEATURE_TESTS because it's not the generic case, but we
      need to set it in the !feature-libunwind case.
      
      Also, because x86 distributions typically don't have
      dwarf_find_debug_frame() unwinding method:
      
        test-libunwind-debug-frame.c:(.text+0x31): undefined reference to `_Ux86_64_dwarf_find_debug_frame'
      
      Restrict this new API to ARM for the time being.
      
      With this patch test-all.c works again, so repeat perf builds
      are  fast again:
      
        comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/
        [...]
      
             0,452899660 seconds time elapsed                                          ( +-  0,11% )
      
      While with before it was:
      
        comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/
        [...]
      
             1,674001829 seconds time elapsed                                          ( +-  0,16% )
      
      [ Includes fix to config/feature-checks/Makefile from Will Deacon. ]
      
      Tested-by: default avatarWill Deacon <will.deacon@arm.com>
      Tested-by: default avatarJean Pihet <jean.pihet@linaro.org>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Link: http://lkml.kernel.org/n/tip-scsoctqzmou3rpkixCHezy9e@git.kernel.org
      
      
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      e310718d
    • Ingo Molnar's avatar
      tools/perf/build: Fix timerfd feature check · bb4c5500
      Ingo Molnar authored
      'feature_timerfd' is checked all the time and calculated explicitly,
      in a serial fashion. Add it to CORE_FEATURE_TESTS which causes it to
      be built in parallel, using the newfangled parallel build autodetection
      code.
      
      This shaves 137 msecs off the perf build time on my system, which
      speeds up the common case cached build by 43%:
      
      Before:
      
        comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/
        [...]
               0,453771441 seconds time elapsed                                          ( +-  0,09% )
      
      After:
      
        comet:~/tip> perf stat --null --repeat 5 make -C tools/perf/
        [...]
               0,316290185 seconds time elapsed                                          ( +-  0,24% )
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Link: http://lkml.kernel.org/n/tip-bb92CmexihopoSyqnkqepvsy@git.kernel.org
      
      
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      bb4c5500
  3. Nov 05, 2013
  4. Nov 04, 2013
  5. Oct 23, 2013
  6. Oct 14, 2013
    • Ingo Molnar's avatar
      tools/perf/build: Remove the volatile-register-var feature check · 01287e2c
      Ingo Molnar authored
      
      Namhyung Kim noticed that the volatile-register-var feature check
      is superfluous:
      
       > The gcc manpage says this warning is enabled by -Wall, and we add -Wall
       > to CFLAGS before doing feature checks.  So all gcc versions that support
       > -Wvolatile-register-var enables it by default without this check and
       > older gcc versions will always fail the feature check.
      
      Remove it - this will further speed up feature checks.
      
      Reported-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      01287e2c
    • Ingo Molnar's avatar
      tools/perf/build: Simplify the libelf logic · 5f36978c
      Ingo Molnar authored
      
      Ulrich Drepper and Namhyung Kim reported that the libelf logic in
      config/Makefile is duplicated in part.
      
      Remove the duplication, and also remove the now unused FLAGS_LIBELF
      variable.
      
      Reported-by: default avatarUlrich Drepper <drepper@gmail.com>
      Reported-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      5f36978c
    • Ingo Molnar's avatar
      tools/perf/build: Pass through DEBUG parameter · fcf92585
      Ingo Molnar authored
      
      Arnaldo reported that 'make DEBUG=1' does not work anymore.
      
      The reason is that 'Makefile' only passes it through to
      'Makefile.perf' via the environment, but 'Makefile.perf'
      checks that it's a command line option:
      
          ifeq ("$(origin DEBUG)", "command line")
            PERF_DEBUG = $(DEBUG)
          endif
      
      So pass it through properly, and also clean up DEBUG parameter
      handling while at it and fix a couple of annoyances:
      
       - DEBUG=0 used to be interpreted as 'debugging on'. Turn it
         into 'debugging off' instead.
      
       - Same was the case for 'DEBUG=' - turn that into debug-off
         as well.
      
       - Pass in just a clean, sanitized 'DEBUG' value and get rid of
         the intermediate, unnecessary PERF_DEBUG variable.
      
      Reported-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      fcf92585
    • Jiri Olsa's avatar
      perf tools: Separate lbfd check out of NO_DEMANGLE condition · 3e6a147d
      Jiri Olsa authored
      
      We fail build with NO_DEMANGLE with missing -lbfd externals error.
      The reason is that we now use bfd code in srcline object:
        perf tools: Implement addr2line directly using libbfd
      
      So we need to check/add -lbfd always now.
      
      Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
      Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      3e6a147d
  7. Oct 11, 2013
  8. Oct 09, 2013
Loading