1. 11 Apr, 2012 13 commits
  2. 07 Apr, 2012 8 commits
  3. 05 Apr, 2012 5 commits
  4. 04 Apr, 2012 1 commit
  5. 03 Apr, 2012 1 commit
  6. 31 Mar, 2012 2 commits
  7. 30 Mar, 2012 1 commit
  8. 29 Mar, 2012 2 commits
  9. 28 Mar, 2012 2 commits
  10. 27 Mar, 2012 3 commits
  11. 26 Mar, 2012 2 commits
    • Stephane Eranian's avatar
      perf tools: Fix bug in raw sample parsing · fa30c964
      Stephane Eranian authored
      In perf_event__parse_sample(), the array variable was not incremented
      by the amount of data used by the raw_data.
      
      That was okay until we added PERF_SAMPLE_BRANCH_STACK which depends on
      the array variable pointing to the beginning of the branch stack data.
      
      But that was not the case if branch stack was combined with raw mode
      sampling. That led to bogus branch stack addresses and count.
      
      The bug would show up with:
      $ perf record -R -b foo
      
      This patch fixes the problem by correctly moving the array pointer
      forward for RAW samples.
      Signed-off-by: default avatarStephane Eranian <eranian@google.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: http://lkml.kernel.org/r/20120317222317.GA8803@quad
      [ committer note: Fix also later submitted by Jiri Olsa ]
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      fa30c964
    • Frederic Weisbecker's avatar
      perf tools: Fix display of first level of callchains · 6d4818c5
      Frederic Weisbecker authored
      The callchain stdio mode display was written using a sorted by symbol
      report. In this mode we have only one callchain root per hist so we
      forgot to handle cases where we have multiple callchain root, as in per
      dso sorting for example.
      
      Fix this by handling these roots like any other branch, with the hist as
      the parent.
      
      Before:
      
           1.97%  libpthread-2.12.1.so
                  |
                  --- __libc_write
                      create_worker
                      bench_sched_messaging
                      cmd_bench
                      run_builtin
                      main
                      __libc_start_main
      
                  |
                  --- __libc_read
                      create_worker
                      bench_sched_messaging
                      cmd_bench
                      run_builtin
                      main
                      __libc_start_main
      
      After:
      
           1.97%  libpthread-2.12.1.so
                  |
                  |--36.97%-- __libc_write
                  |          create_worker
                  |          bench_sched_messaging
                  |          cmd_bench
                  |          run_builtin
                  |          main
                  |          __libc_start_main
                  |
                  |--31.47%-- __libc_read
                  |          create_worker
                  |          bench_sched_messaging
                  |          cmd_bench
                  |          run_builtin
                  |          main
                  |          __libc_start_main
                 ...
      
      Single roots keep their entry without percentage because they have
      the same overhead than the hist they refer to. ie: 100% in fractal
      mode and the percentage of the hist in graph mode:
      
           0.00%  [k] reschedule_interrupt
                  |
                  --- default_idle
                      amd_e400_idle
                      cpu_idle
                      start_secondary
      Reported-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Jiri Olsa <jolsa@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/r/1332526010-15400-1-git-send-email-fweisbec@gmail.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      6d4818c5