Re: [PATCH v7 01/17] unwind_user: Add user space unwinding API

2025-05-04 Thread Josh Poimboeuf
On Sun, May 04, 2025 at 12:43:30PM -0400, Steven Rostedt wrote: > On Sun, 4 May 2025 11:30:32 +0200 > Ingo Molnar wrote: > > > > +struct unwind_user_state { > > > + unsigned long ip; > > > + unsigned long sp; > > > + unsigned long fp; > > > + enum unwind_user_type type; > > > + bool done; > > > +

Re: [PATCH v7 01/17] unwind_user: Add user space unwinding API

2025-05-04 Thread Steven Rostedt
On Sun, 4 May 2025 11:30:32 +0200 Ingo Molnar wrote: > > +struct unwind_user_state { > > + unsigned long ip; > > + unsigned long sp; > > + unsigned long fp; > > + enum unwind_user_type type; > > + bool done; > > +}; > > Will any of these types be visible to tooling via ABIs? Not tha

Re: [PATCH v7 01/17] unwind_user: Add user space unwinding API

2025-05-04 Thread Ingo Molnar
* Steven Rostedt wrote: > +++ b/include/linux/unwind_user_types.h > @@ -0,0 +1,31 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef _LINUX_UNWIND_USER_TYPES_H > +#define _LINUX_UNWIND_USER_TYPES_H > + > +#include > + > +enum unwind_user_type { > + UNWIND_USER_TYPE_NONE, > +}; > + > +

[PATCH v7 01/17] unwind_user: Add user space unwinding API

2025-05-02 Thread Steven Rostedt
From: Josh Poimboeuf Introduce a generic API for unwinding user stacks. In order to expand user space unwinding to be able to handle more complex scenarios, such as deferred unwinding and reading user space information, create a generic interface that all architectures can use that support the v