1. 19 3月, 2014 5 次提交
  2. 15 3月, 2014 10 次提交
  3. 14 3月, 2014 6 次提交
  4. 11 3月, 2014 2 次提交
  5. 10 3月, 2014 3 次提交
  6. 28 2月, 2014 2 次提交
  7. 27 2月, 2014 6 次提交
  8. 25 2月, 2014 2 次提交
  9. 24 2月, 2014 4 次提交
    • N
      perf symbols: Destroy unused symsrcs · 98e9f03b
      Namhyung Kim 提交于
      Stephane reported that perf report and annotate failed to process data
      using lots of (> 500) shared libraries.  It was because of the limit on
      number of open files (ulimit -n).
      
      Currently when perf loads a DSO, it'll look for normal and dynamic
      symbol tables.  And if it fails to find out both tables, it'll iterate
      all of possible symtab types.  But many of them are useless since they
      have no additional information and the problem is that it's not closing
      those files even though they're not used.  Fix it.
      Reported-by: NStephane Eranian <eranian@google.com>
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Cody P Schafer <cody@linux.vnet.ibm.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Namhyung Kim <namhyung.kim@lge.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1392859976-32760-2-git-send-email-namhyung@kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      98e9f03b
    • N
      perf annotate: Check availability of annotate when processing samples · 48c65bda
      Namhyung Kim 提交于
      The TUI of perf report and top support annotation, but stdio and GTK
      don't.  So it should be checked before calling hist_entry__inc_addr_
      samples() to avoid wasting resources that will never be used.
      
      perf annotate need it regardless of UI and sort keys, so the check
      of whether to allocate resources should be on the tools that have
      annotate as an option in the TUI, 'report' and 'top', not on the
      function called by all of them.
      
      It caused perf annotate on ppc64 to produce zero output, since the
      buckets were not being allocated.
      Reported-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
      Cc: Anton Blanchard <anton@samba.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Namhyung Kim <namhyung.kim@lge.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Link: http://lkml.kernel.org/r/1392859976-32760-1-git-send-email-namhyung@kernel.org
      [ Renamed (report,top)__needs_annotate() to ui__has_annotation() ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      48c65bda
    • J
      perf tests: Add NO_LIBDW_DWARF_UNWIND make test · 9e8c06ea
      Jiri Olsa 提交于
      Adding make test for NO_LIBDW_DWARF_UNWIND option, plus updating minimal
      build test with it.
      Signed-off-by: NJiri 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-7-git-send-email-jolsa@redhat.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      9e8c06ea
    • J
      perf tools: Setup default dwarf post unwinder · 0a4f2b6a
      Jiri Olsa 提交于
      Factor NO_LIBDW_DWARF_UNWIND makefile variable and code that selects
      default DWARf post unwinder based on detected features (libdw and
      libunwind support)
      
      If both are detected the libunwind is selected as default.  Simple
      'make' will try to add:
      
        - libunwind unwinder if present
        - libdw unwinder if present
        - disable dwarf unwind if non of libunwind and libdw
          libraries are present
      
      If one of the DWARF unwind libraries is detected, message is displayed
      which one (libunwind/libdw) is compiled in.
      
      Examples:
        - compile in libdw unwinder if present:
      
          $ make NO_LIBUNWIND=1
      
        - compile in libdw (with libdw installation directory) unwinder if present:
      
          $ make LIBDW_DIR=/opt/elfutils/ NO_LIBUNWIND=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  ]
          ...            libdw-dwarf-unwind: [ on  ]
          ...     DWARF post unwind library: libdw
      
        - disable post dwarf unwind completely:
      
          $ make NO_LIBUNWIND=1 NO_LIBDW_DWARF_UNWIND=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  ]
          ...            libdw-dwarf-unwind: [ on  ]
          ...     DWARF post unwind library: libunwind
      Signed-off-by: NJiri 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-6-git-send-email-jolsa@redhat.com
      [ Add suggestion about setting LIBDW_DIR when not finding libdw ]
      Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
      0a4f2b6a