Re: [PATCH v2] perf unwind-libdw: Fix unwinding of multi-threaded processes

Namhyung Kim <[email protected]> Sat, 01 Aug 2026 22:46:31 -0700
Newsgroups org.kernel.vger.linux-perf-users,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Fri, 24 Jul 2026 17:40:57 +0200, Alessio Podda wrote:
> The libdw callback API has two levels: dwfl_getthread_frames() first finds
> the requested thread using the next_thread() or get_thread() callback and
> then walks its stack.
> 
> Since perf only has a snapshot of the stack of a single thread, it
> provides a stubbed-out API that always returns the pid the Dwfl was
> attached with (i.e. whatever was passed to dwfl_attach_state()), rather
> than the actual sampled thread's TID.
> 
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung