[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240117024546.2npqrprazaobyogn@M910t>
Date: Wed, 17 Jan 2024 10:45:46 +0800
From: Changbin Du <changbin.du@...wei.com>
To: Andi Kleen <ak@...ux.intel.com>
CC: Changbin Du <changbin.du@...wei.com>, Peter Zijlstra
<peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>, Arnaldo Carvalho de
Melo <acme@...nel.org>, Mark Rutland <mark.rutland@....com>, Alexander
Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa <jolsa@...nel.org>,
Namhyung Kim <namhyung@...nel.org>, Ian Rogers <irogers@...gle.com>, Adrian
Hunter <adrian.hunter@...el.com>, <linux-kernel@...r.kernel.org>,
<linux-perf-users@...r.kernel.org>
Subject: Re: [PATCH 0/3] perf: script: Intro capstone disasm engine to show
instruction trace
On Tue, Jan 16, 2024 at 05:53:40AM -0800, Andi Kleen wrote:
> Changbin Du <changbin.du@...wei.com> writes:
>
> > This series introduces capstone disassembler engine to print instructions of
> > Intel PT trace, which was printed via the XED tool.
>
> FWIW at least on x86 in my experience capstone isn't that great an
> disassembler. I used it in another project and ran into many decoding bugs.
> They're mostly in obscure corners, but can be fairly annoying.
>
If so, I will preserve the old --xed option as an alternate.
> My other concern with your patchkit is that you change the default
> output formats. Since perf script is often used with scripts
> (as the name implies) there is a certain expectation that the output
> remains stable and parse-able. There are actually use cases where
> the raw bytes "insn" output is needed.
>
> I would rather define new perf script output types for the new decoded output,
> but keep the old alone.
Agreed. What about these?
- Add a new field 'insn_disam' to display decoded output.
- Add params to '--insn-trace' option, that is '--insn-trace=[raw|disam]'.
'raw' is the default value.
>
> -Andi
--
Cheers,
Changbin Du
Powered by blists - more mailing lists