lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181023181218.GB6114@kernel.org>
Date:   Tue, 23 Oct 2018 15:12:18 -0300
From:   Arnaldo Carvalho de Melo <acme@...nel.org>
To:     Adrian Hunter <adrian.hunter@...el.com>
Cc:     Jiri Olsa <jolsa@...hat.com>, Andi Kleen <ak@...ux.intel.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH V2 17/19] perf scripts python: exported-sql-viewer.py:
 Add All branches report

Em Tue, Oct 23, 2018 at 10:59:49AM +0300, Adrian Hunter escreveu:
> Add a report to display branches in a similar fashion to perf script. The
> main purpose of this report is to display disassembly, however, presently,
> the only supported disassembler is Intel XED, and additionally the object
> code must be present in perf build ID cache.
> 
> To use Intel XED, libxed.so must be present. To build and install
> libxed.so:
> 	git clone https://github.com/intelxed/mbuild.git mbuild
> 	git clone https://github.com/intelxed/xed
> 	cd xed
> 	./mfile.py --share
> 	sudo ./mfile.py --prefix=/usr/local install
> 	sudo ldconfig
> 
> Signed-off-by: Adrian Hunter <adrian.hunter@...el.com>
> ---
> 
> 
> Changes in V2:
> 
> 	Fix branch report not appearing for kernel-only or user-only tracing:
> 	Find branch events named like "branches:k" or "branches:u" as well as
> 	just plain "branches", by splitting the name at the colon. i.e.
> 	event = event.split(":")[0]

So, I followed the instructions then ended up with:

[acme@...enth perf]$ find /usr/local -name "*xed*" | head
/usr/local/lib/libxed.so
/usr/local/lib/libxed.a
/usr/local/lib/libxed-ild.so
/usr/local/lib/libxed-ild.a
/usr/local/include/xed
/usr/local/include/xed/xed-syntax-enum.h
/usr/local/include/xed/xed-attributes.h
/usr/local/include/xed/xed-build-defines.h
/usr/local/include/xed/xed-cpuid-rec.h
/usr/local/include/xed/xed-flags.h
[acme@...enth perf]$

Ran ldconfig as root, etc:

[acme@...enth perf]$ ldconfig -v -N | grep xed
ldconfig: Can't stat /libx32: No such file or directory
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/usr/lib64' given more than once
ldconfig: Can't stat /usr/libx32: No such file or directory
[acme@...enth perf]$ 

[acme@...enth perf]$ file /usr/local/lib/libxed.so
/usr/local/lib/libxed.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=09cf45310a731f727b4575582a638052b8f3e3bb, not stripped
[acme@...enth perf]$ file /usr/local/lib/libxed-ild.so
/usr/local/lib/libxed-ild.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=a5601603e305bb7b7f8edc7da0e78acbc9b63eba, not stripped
[acme@...enth perf]$ 

Tried with:

export LD_LIBRARY_PATH=/usr/local/lib/

But so far couldn't get it to show the disassembly.

The "All Branches" is there, wasn't in v1 of this patch.

Ideas?

- Arnaldo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ