Re: [PATCH v1 03/10] tools, perf, script: Add --insn-trace for instruction decoding

From: Andi Kleen
Date: Wed Sep 19 2018 - 16:02:08 EST


On Wed, Sep 19, 2018 at 03:12:47PM -0300, Arnaldo Carvalho de Melo wrote:
> Em Wed, Aug 29, 2018 at 10:18:27AM -0700, Andi Kleen escreveu:
> > From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
> >
> > Add a --insn-trace short hand option for decoding and disassembling
> > instruction streams for intel_pt. This automatically pipes the
> > output into the xed disassembler to generate disassembled instructions.
> > This just makes this use model much nicer to use
>
> Would be nice to provide at least an URL to where to find xed, I tried
> this:
>
> [root@seventh ~]# dnf search xed
> Last metadata expiration check: 0:25:39 ago on Wed 19 Sep 2018 02:42:36 PM -03.
> =================================================================================== Name Exactly Matched: xed ====================================================================================
> xed.i686 : X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
> xed.x86_64 : X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
>
> https://github.com/intelxed
>
> So I have to install a build system and then install it to then build
> intelxed?

Yes that's right.

I think some distros have it already packaged.


git clone https://github.com/intelxed/mbuild.git mbuild
git clone https://github.com/intelxed/xed
cd xed
mkdir obj
cd obj
../mfile.py
sudo ../mfile.py --prefix=/usr/local install

-Andi