lkml.org 
[lkml]   [2024]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/4] perf annotate: Use libcapstone as a disasssembler
On Thu, Mar 28, 2024 at 04:20:05PM -0700, Namhyung Kim wrote:
> Hello,
>
> As we've added libcapstone support, it's natural to use it for perf annotate
> as well. This change added the capstone support on x86 first. Other archs
> can be added later (by someone who can verify it doesn't break things).
>
> For now it tries to use capstone (if available) before objdump. But it
> doesn't support source file and line number info. So users should use the
> objdump (by passing --objdump=PATH option) if they need them. For example,
> this command line will keep the existing behavior (i.e. using objdump).
>
> # not to use capstone for disassembly
> $ perf annotate --objdump=objdump
>
> The capstone uses LLVM objdump style output which is slightly different than
> the GNU objdump. But it should not have differences besides that. I've
> verified the result of data type profiling and it produced the same output
> but gave me ~3x speedups.

Excellent news, I'll try and test all this soon!

- Arnaldo

\
 
 \ /
  Last update: 2024-05-27 16:15    [W:0.116 / U:24.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site