1. 23 Nov, 2016 4 commits
  2. 17 Nov, 2016 3 commits
    • Arnaldo Carvalho de Melo's avatar
      perf annotate: Add per arch instructions annotate handlers · 763d8960
      Arnaldo Carvalho de Melo authored
      Another step in supporting cross annotation.
      
      The arch specific tables are put in:
      
         tools/perf/arch/$ARCH/annotation/instructions.c
      
      which, so far, just plug instructions to a bunch of parsers/formatters,
      but may have more as the need arises.
      
      This is an alternative implementation to a previous attempt made by Ravi
      Bangoria.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Chris Riyder <chris.ryder@arm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kim Phillips <kim.phillips@arm.com>
      Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Taeung Song <treeze.taeung@gmail.com>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-g3wt282lfa51j4qd0813e3az@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      763d8960
    • Arnaldo Carvalho de Melo's avatar
      perf annotate: Allow arches to specify functions to skip · 9c2fb451
      Arnaldo Carvalho de Melo authored
      This is to cope with an ARM specific kludge introduced in the original
      patch supporting ARM annotation, cfef25b8 ("perf annotate: ARM
      support") that made functions with a '+' in its name to be skipped when
      processing call instructions.
      
      With this patchkit it should be possible to collect a perf.data file on
      a ARM machine and then annotate it on a x86 workstation and have those
      ARM kludges used.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Chris Riyder <chris.ryder@arm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kim Phillips <kim.phillips@arm.com>
      Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
      Cc: Russell King <rmk+kernel@arm.linux.org.uk>
      Cc: Taeung Song <treeze.taeung@gmail.com>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-2fi3sy7q3sssdi7m7cbe07gy@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      9c2fb451
    • Arnaldo Carvalho de Melo's avatar
      perf annotate: Start supporting cross arch annotation · 786c1b51
      Arnaldo Carvalho de Melo authored
      Introduce a 'struct arch', where arch specific stuff will live, starting
      with objdump's choice of comment delimitation character, that is '#' in
      x86 while a ';' in arm.
      
      This has some bits and pieces from a patch submitted by Ravi.
      
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Chris Riyder <chris.ryder@arm.com>
      Cc: David Ahern <dsahern@gmail.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kim Phillips <kim.phillips@arm.com>
      Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
      Cc: Masami Hiramatsu <mhiramat@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com>
      Cc: Taeung Song <treeze.taeung@gmail.com>
      Cc: Wang Nan <wangnan0@huawei.com>
      Link: http://lkml.kernel.org/n/tip-f337tzjjcl8vtapgvjxmhrbx@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      786c1b51
  3. 15 Nov, 2016 1 commit
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo-20161114' of... · 6a6b12e2
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo-20161114' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      New features:
      
       - Allow querying and setting .perfconfig variables (Taeung Song)
      
       - Show branch information in callchains (predicted, TSX aborts, loop
         iteractions, etc) (Jin Yao)
      
      Infrastructure changes:
      
       - Support kbuild's CFLAGS_REMOVE_ in tools/build (Jiri Olsa)
      
       - Plug building jvmti to the main perf Makefile (Jiri Olsa)
      
      Documentation changes:
      
       - Update Intel PT documentation about context switch events (Arnaldo Carvalho de Melo)
      
       - Fix 'perf record --call-graph dwarf' help/config in builds not linking
         with a unwind library, mentioning that is a possible record option (Rabin Vincent)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      6a6b12e2
  4. 14 Nov, 2016 13 commits
  5. 11 Nov, 2016 1 commit
  6. 08 Nov, 2016 1 commit
  7. 28 Oct, 2016 9 commits
  8. 25 Oct, 2016 7 commits
  9. 24 Oct, 2016 1 commit
    • Ingo Molnar's avatar
      Merge tag 'perf-core-for-mingo-20161024' of... · 76e2d261
      Ingo Molnar authored
      Merge tag 'perf-core-for-mingo-20161024' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
      
      Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
      
      New features:
      
      - Dynamicly change verbosity level by pressing 'V' in the 'perf top/report'
        hists TUI browser (Alexis Berlemont)
      
      - Implement 'perf trace --delay' in the same fashion as in 'perf record --delay',
        to skip sampling workload initialization events (Alexis Berlemont)
      
      - Make vendor named events case insensitive in 'perf list', i.e.
        'perf list LONGEST_LAT' works just the same as  'perf list longest_lat' (Andi Kleen)
      
      - Show instruction bytes and lenght in 'perf script' for Intel PT and BTS (Andi Kleen, Adrian Hunter)
      
         E.g:
      
          % perf record -e intel_pt// foo
          % perf script --itrace=i0ns -F ip,insn,insnlen
           ffffffff8101232f ilen: 5 insn: 0f 1f 44 00 00
           ffffffff81012334 ilen: 1 insn: 5b
           ffffffff81012335 ilen: 1 insn: 5d
           ffffffff81012336 ilen: 1 insn: c3
           ffffffff810123e3 ilen: 1 insn: 5b
           ffffffff810123e4 ilen: 2 insn: 41 5c
           ffffffff810123e6 ilen: 1 insn: 5d
           ffffffff810123e7 ilen: 1 insn: c3
           ffffffff810124a6 ilen: 2 insn: 31 c0
           ffffffff810124a8 ilen: 9 insn: 41 83 bc 24 a8 01 00 00 01
           ffffffff810124b1 ilen: 2 insn: 75 87
      
      - Allow enabling the perf_event_attr.branch_type attribute member: (Andi Kleen)
      
        perf record -e sched:sched_switch,cpu/cpu-cycles,branch_type=any/ ...
      
      - Add unwinding support for jitdump (Stefano Sanfilippo)
      
      Fixes:
      
      - Use raw_syscall:sys_enter timestamp in 'perf trace' (Arnaldo Carvalho de Melo)
      
      Infrastructure:
      
      - Allow jitdump to be built without libdwarf (Maciej Debski)
      
      - Sync x86's syscall table tools/ copy (Arnaldo Carvalho de Melo)
      
      - Fixes to avoid calling die() in library fuctions already propagating other
        errors (Arnaldo Carvalho de Melo)
      
      - Improvements to allow libtraceevent to be properly installed in distro
        packages (Jiri Olsa)
      
      - Removing coresight miscellaneous debug output (Mathieu Poirier)
      
      - Cache align the 'perf bench futex' worker struct (Sebastian Andrzej Siewior)
      
      Documentation:
      
      - Minor improvements on the documentation of event parameters (Andi Kleen)
      
      - Add jitdump format specification document (Stephane Eranian)
      
      Spelling fixes:
      
      - Fix typo "No enough" to "Not enough" (Alexander Alemayhu)
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      76e2d261