Thread (73 messages) 73 messages, 5 authors, 2026-09-11

Re: [PATCH v5 05/26] perf annotate: Normalize arch__dwarf_regnum() error return values

flat view

From: Namhyung Kim <namhyung@kernel.org>
Date: 2026-09-09 15:00:33
Also in: lkml, llvm

On Tue, Sep 08, 2026 at 10:57:11AM -0700, Ian Rogers wrote:
On Tue, Sep 8, 2026 at 6:05 AM Tengda Wu [off-list ref] wrote:
quoted
arch__dwarf_regnum() returns inconsistent error values: early path
returns -1 while the main lookup returns -ENOENT/-EINVAL from
get_dwarf_regnum(). Callers only check for -1, so genuine failures
can slip through.

Normalize all failures to -1 to match the callers' expectation.
This sounds like a bug in the callers but this function is local to
annotate.c and is just a convenience so:
Agreed.

Reviewed-by: Namhyung Kim <namhyung@kernel.org>

Thanks,
Namhyung
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help