1. 19 Apr, 2012 4 commits
    • Arnaldo Carvalho de Melo's avatar
      perf annotate browser: Hide non jump target addresses in offset mode · b793a401
      Arnaldo Carvalho de Melo authored
      This:
      
          0.00 :         ffffffff8116bd00:       lock btsl $0x0,(%r12)
        100.00 :         ffffffff8116bd07:       sbb    %eax,%eax
          0.00 :         ffffffff8116bd09:       test   %eax,%eax
          0.00 :         ffffffff8116bd0b:       jne    ffffffff8116bf5f <__mem_cgroup_commit_charge+0x28f>
          0.00 :         ffffffff8116bd11:       mov    (%r12),%rax
          0.00 :         ffffffff8116bd15:       test   $0x2,%al
          0.00 :         ffffffff8116bd17:       jne    ffffffff8116bf6e <__mem_cgroup_commit_charge+0x29e>
          0.00 :         ffffffff8116bd1d:       test   %r9b,%r9b
          0.00 :         ffffffff8116bd20:       jne    ffffffff8116be30 <__mem_cgroup_commit_charge+0x160>
          0.00 :         ffffffff8116bd26:       xor    %eax,%eax
          0.00 :         ffffffff8116bd28:       mov    %r13,0x8(%r12)
          0.00 :         ffffffff8116bd2d:       lock orb $0x2,(%r12)
          0.00 :         ffffffff8116bd33:       test   %r9b,%r9b
          0.00 :         ffffffff8116bd36:       je     ffffffff8116bdf3 <__mem_cgroup_commit_charge+0x123>
      
      Becomes:
      
          0.00 :         30:       lock btsl $0x0,(%r12)
        100.00 :                   sbb    %eax,%eax
          0.00 :                   test   %eax,%eax
          0.00 :                   jne    28f
          0.00 :                   mov    (%r12),%rax
          0.00 :                   test   $0x2,%al
          0.00 :                   jne    29e
          0.00 :                   test   %r9b,%r9b
          0.00 :                   jne    160
          0.00 :         56:       xor    %eax,%eax
          0.00 :         58:       mov    %r13,0x8(%r12)
          0.00 :                   lock orb $0x2,(%r12)
          0.00 :                   test   %r9b,%r9b
          0.00 :                   je     123
      
      I.e. We trow away all those useless addresses and keep just jump labels.
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-r2vmbtgz0l8coluj8flztgrn@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      b793a401
    • Arnaldo Carvalho de Melo's avatar
      perf symbols: Introduce symbol__size method · 1b2e2df4
      Arnaldo Carvalho de Melo authored
      Fixing some off by one cases in the process.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-fxumzufhk829z0q9anmvemea@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      1b2e2df4
    • Arnaldo Carvalho de Melo's avatar
      perf annotate browser: Rename disasm_line_rb_node · 887c0066
      Arnaldo Carvalho de Melo authored
      Its not just an rb_node, it carries extra state that is private to the
      browser. And will carry some more in the next patches.
      
      Better name it browser_disasm_line, i.e. something derived from
      disasm_line, that specializes it.
      
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-nev4b97vdvv35we1qmooym52@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      887c0066
    • Arnaldo Carvalho de Melo's avatar
      perf annotate: Introduce scnprintf ins_ops method · 28548d78
      Arnaldo Carvalho de Melo authored
      And implement the jump one, where if the operands string is not passed,
      a compact form that uses just the target address is used.
      
      Right now this is toggled via the 'o' option in the annotate browser,
      switching from:
      
          0.00 :         ffffffff811661e8:       je     ffffffff81166204 <mem_cgroup_count_vm_event+0x44>
          0.00 :         ffffffff811661ea:       cmp    $0xb,%esi
          0.00 :         ffffffff811661ed:       je     ffffffff811661f8 <mem_cgroup_count_vm_event+0x38>
      
      To:
      
          0.00 :         28:       je     44
          0.00 :         2a:       cmp    $0xb,%esi
          0.00 :         2d:       je     38
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Namhyung Kim <namhyung@gmail.com>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: http://lkml.kernel.org/n/tip-o88q46yh4kxgpd1chk5gvjl5@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      28548d78
  2. 18 Apr, 2012 2 commits
  3. 16 Apr, 2012 3 commits
  4. 13 Apr, 2012 2 commits
    • Ingo Molnar's avatar
      Merge tag 'v3.4-rc2' into perf/core · a385ec4f
      Ingo Molnar authored
      Merge Linux 3.4-rc2: we were on v3.3, update the base.
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      a385ec4f
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo' of... · 659c36fc
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Fixes and improvements for perf/core:
      
      . Overhaul the tools/ makefiles, gluing them to the top level Makefile, from
        Borislav Petkov.
      
      . Move the UI files from tools/perf/util/ui/ to tools/perf/ui/. Also move
        the GTK+ browser to tools/perf/ui/gtk/, from Namhyung Kim.
      
      . Only fallback to sw cycles counter on ENOENT for the hw cycles, from
        Robert Richter
      
      . Trivial fixes from Robert Richter
      
      . Handle the autogenerated bison/flex files better, from Namhyung and Jiri Olsa.
      
      . Navigate jump instructions in the annotate browser, just press enter or ->,
        still needs support for a jump navigation history, i.e. to go back.
      
      . Search string in the annotate browser: same keys as vim:
           / forward
           n next backward/forward
           ? backward
      
      . Clarify number of events/samples in the report header, from Ashay Rane
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      659c36fc
  5. 11 Apr, 2012 13 commits
  6. 08 Apr, 2012 1 commit
  7. 07 Apr, 2012 15 commits