Re: [PATCH v10 04/14] unwind_user/deferred: Add unwind_deferred_trace()
From: Peter Zijlstra
Date: Thu Jun 19 2025 - 03:54:39 EST
On Wed, Jun 18, 2025 at 11:29:39AM -0400, Steven Rostedt wrote:
> Note, a request from the gcc folks is to add a system call that gives the
> user space application a backtrace from its current location. This can be
> handy for debugging as it would be similar to how we use dump_stack().
That makes very little sense to me; apps can typically unwind themselves
just fine, no? In fact, they can use DWARFs and all that.
Also, how about we don't make thing complicated and not confuse comments
with things like this? Focus on the deferred stuff (that's what these
patches are about) -- and then return-to-user is the one and only place
that makes sense.