1. 12 Jun, 2014 4 commits
    • Jiri Olsa's avatar
      perf tools: Cache register accesses for unwind processing · 0c4e774f
      Jiri Olsa authored
      Caching registers value into an array. Got about 4% speed up
      of perf_reg_value function for report command processing
      dwarf unwind stacks.
      
      Output from report over 1.5 GB data with DWARF unwind stacks:
      (TODO fix perf diff)
      
        current code:
         5.84%     perf  perf                       [.] perf_reg_value
        change:
         1.94%     perf  perf                       [.] perf_reg_value
      
      And little bit of overall speed up:
      (perf stat -r 5 -e '{cycles,instructions}:u' ...)
      
        current code:
         310,298,611,754      cycles                     ( +-  0.33% )
         439,669,689,341      instructions               ( +-  0.03% )
      
           188.656753166 seconds time elapsed            ( +-  0.82% )
      
        change:
         291,315,329,878      cycles                     ( +-  0.22% )
         391,763,485,304      instructions               ( +-  0.03%  )
      
           180.742249687 seconds time elapsed            ( +-  0.64% )
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
      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/1401892622-30848-2-git-send-email-jolsa@kernel.orgSigned-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      0c4e774f
    • Namhyung Kim's avatar
      perf record: Fix to honor user freq/interval properly · 17314e23
      Namhyung Kim authored
      When configuring event perf checked a wrong condition that user
      specified both of freq (-F) and period (-c) or the event has no
      default value.  This worked because most of events don't have default
      value and only tracepoint events have default of 1 (and it's not
      desirable to change it for those events).
      
      However, Andi's downloadable event patch changes the situation so it
      cannot change the value for those events.  Fix it by allowing override
      the default value if user gives one of the options.
      
        $ perf record -a -e uops_retired.all -F 4000 sleep 1
        [ perf record: Woken up 1 times to write data ]
        [ perf record: Captured and wrote 0.325 MB perf.data (~14185 samples) ]
      
        $ perf evlist -F
        cpu/uops_retired.all/: sample_freq=4000
      Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Link: http://lkml.kernel.org/r/1402292617-26278-1-git-send-email-namhyung@kernel.orgSigned-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      17314e23
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · 7184062b
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements from Arnaldo Carvalho de Melo:
      
      User visible:
      
        * Improve 'perf probe' error messages, moving some diagnostic messages to
          only appear in --verbose mode and fixing up some error reporting related
          to variables and struct members. (Masami Hiramatsu)
      
        * Reflow 'perf timechart' man page. (Stanislav Fomichev)
      
      Developer stuff:
      
        * Be more precise when reporting missing libraries in a static tool build.
          (Arnaldo Carvalho de Melo)
      
        * Show error messages from the multiple make invoked from 'make build-test'.
          (Arnaldo Carvalho de Melo)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      7184062b
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · 94eb1531
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf into perf/core
      
      Pull perf/core improvements and fixes from Jiri Olsa:
      
        * Bitmask handling and plugin updates (Steven Rostedt)
      
        * Fix pipe check regression in attr event callback (Jiri Olsa)
      
        * Prettify the tags/TAGS/cscope targets output (Jiri Olsa)
      
        * Print array argument as string (Namhyung Kim)
      
        * Pass protection and flags bits through mmap2 interface (Peter Zijlstra)
      
        * Update perf tool mmap2 interface with protection and flag bits (Don Zickus)
      
        * Re-enable mmap interface (Don Zickus)
      
        * Add mem-mode documentation to report command (Don Zickus)
      
        * Add sort on dcacheline (Don Zickus)
      Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      94eb1531
  2. 10 Jun, 2014 2 commits
  3. 09 Jun, 2014 15 commits
  4. 07 Jun, 2014 4 commits
  5. 06 Jun, 2014 3 commits
  6. 05 Jun, 2014 12 commits