Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1549626

New attempt at adding an disassembler to perf

From Andi Kleen <andi@firstfloor.org>
Newsgroups linux.kernel
Subject New attempt at adding an disassembler to perf
Date 2017-01-03 10:10 +0100
Message-ID <sVtgu-40T-15@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


A native disassembler in perf is very useful, in particular with perf script to trace 
instruction streams, but also for other analysis. Previously I attempted
to do this using the udis86 library, but that was rejected because:
- udis86 was not maintained anymore and lacking recent instructions
- udis86 is dynamically linked and gives a runtime dependency.
Doing this needs a full disassembler, not just a decoder, so the existing
instruction decoder cannot be used without major changes.

This patchkit addresses these issues.  Intel recently released an open source version
of the XED disassembler library, which is used in many other Intel software.
It is very well maintained, uptodate, and supports static linking, so there is no
runtime dependency. This version adds XED support to perf, and uses it to implement
assembler output in perf script. It also fixes a range of issues in the previous
version, see the individual change logs.

Available in 
git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git perf/xed-3

v1: First post of XED version

-Andi

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

New attempt at adding an disassembler to perf Andi Kleen <andi@firstfloor.org> - 2017-01-03 10:10 +0100
  [PATCH 4/4] perf, tools, script: Add brstackasm output for branch stacks Andi Kleen <andi@firstfloor.org> - 2017-01-03 10:10 +0100
    Re: [PATCH 4/4] perf, tools, script: Add brstackasm output for  branch stacks Jiri Olsa <jolsa@redhat.com> - 2017-01-08 15:30 +0100
      Re: [PATCH 4/4] perf, tools, script: Add brstackasm output for  branch stacks Andi Kleen <ak@linux.intel.com> - 2017-01-09 20:20 +0100
    Re: [PATCH 4/4] perf, tools, script: Add brstackasm output for  branch stacks Jiri Olsa <jolsa@redhat.com> - 2017-01-08 15:30 +0100
  [PATCH 3/4] perf, tools, script: Add support for printing assembler Andi Kleen <andi@firstfloor.org> - 2017-01-03 10:10 +0100
  Re: New attempt at adding an disassembler to perf Jiri Olsa <jolsa@redhat.com> - 2017-01-08 15:30 +0100

csiph-web