From: Namhyung Kim <namhyung@kernel.org>
To: Bradley Morgan <bradley.morgan@linux.dev>
Cc: atrajeev@linux.ibm.com, acme@kernel.org, adrian.hunter@intel.com,
hbathini@linux.vnet.ibm.com, irogers@google.com,
jolsa@kernel.org, linux-perf-users@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com,
narnalli@in.ibm.com, tejas05@linux.ibm.com, tshah@linux.ibm.com,
venkat88@linux.ibm.com, vpuliyal@in.ibm.com
Subject: Re: [PATCH] perf disasm powerpc: handle Power10 prefixed instruction continuation lines
Date: Sun, 29 Nov 2026 15:21:09 -0800 [thread overview]
Message-ID: <awyzZTtnXuqGJut1@google.com> (raw)
In-Reply-To: <A6D85F06-F669-4788-A450-01B8DD686197@linux.dev>
On Sat, Nov 28, 2026 at 12:42:52PM +0000, Bradley Morgan wrote:
> On 7 September 2026 06:14:29 BST, Athira Rajeev <atrajeev@linux.ibm.com>
> wrote:
> >Power10 introduces prefixed instructions that are 8 bytes wide. objdump
> >emits these as two lines: the first carries both the raw bytes and the
> >mnemonic, while the second carries only the raw bytes of the second word
> >with no mnemonic:
> >
> > 1020900c: 0b 00 10 06 pla r31,757280 # 102c1e2c <cctki_vi_ML_CCZ4>
> > 10209010: 20 8e e0 3b
> >
> >disasm_line__parse_powerpc() calls disasm_line__parse() on the mnemonic
> >portion of the line. disasm_line__parse() returns -1 when the name
> >string is empty, which causes disasm_line__new() to return NULL, which
> >causes symbol__parse_objdump_line() to return -1, which immediately
> >breaks the objdump output parsing loop in symbol__disassemble_objdump().
> >
> >The result is that annotation of any function containing a prefixed
> >instruction stops at the continuation word and all subsequent
> >instructions in the function are lost.
> >
> >Fix this by treating an empty mnemonic as a valid case in
> >disasm_line__parse_powerpc(): skip the call to disasm_line__parse() and
> >set the instruction name to an empty heap-allocated string instead,
> >allowing parsing to continue to the next line.
> >
> >Reported-by: Narendra Nalli <narnalli@in.ibm.com>
> >Reported-by: Vijay Puliyala <vpuliyal@in.ibm.com>
>
> yes, thanks
>
> Reviewed-by: Bradley Morgan <bradley.morgan@linux.dev>
>
>
> Tested-by: Bradley Morgan <bradley.morgan@linux.dev> # Power10
Thanks!
Athira, I assume we would send v2 with the new tags as well as fixes for
issues found by Sashiko.
Thanks,
Namhyung
next prev parent reply other threads:[~2026-11-29 23:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 5:14 [PATCH] perf disasm powerpc: handle Power10 prefixed instruction continuation lines Athira Rajeev
2026-09-07 5:30 ` sashiko-bot
2026-11-28 12:42 ` Bradley Morgan
2026-11-29 23:21 ` Namhyung Kim [this message]
[not found] <f3bd50a1-1735-4e68-ba34-f8c8862c7e14@linux.ibm.com>
2026-11-28 12:47 ` Bradley Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awyzZTtnXuqGJut1@google.com \
--to=namhyung@kernel.org \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=atrajeev@linux.ibm.com \
--cc=bradley.morgan@linux.dev \
--cc=hbathini@linux.vnet.ibm.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=narnalli@in.ibm.com \
--cc=tejas05@linux.ibm.com \
--cc=tshah@linux.ibm.com \
--cc=venkat88@linux.ibm.com \
--cc=vpuliyal@in.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox