Re: [PATCH v5 08/17] unwind_user/deferred: Add unwind cache
Steven Rostedt <[email protected]> Thu, 24 Apr 2025 15:00:39 -0400
| Newsgroups | org.kernel.vger.linux-toolchains,org.kernel.vger.linux-kernel,org.kernel.vger.linux-perf-users,org.kernel.vger.linux-trace-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 24 Apr 2025 12:25:37 -0400 Steven Rostedt <[email protected]> wrote: > --- a/include/linux/unwind_deferred.h > +++ b/include/linux/unwind_deferred.h > @@ -12,6 +12,11 @@ void unwind_task_free(struct task_struct *task); > > int unwind_deferred_trace(struct unwind_stacktrace *trace); > > +static __always_inline void unwind_enter_from_user_mode(void) > +{ > + current->unwind_info.cache.nr_entries = 0; > +} > + Hmm, the first patches just had unwind_enter_from_user_mode(), but the later patches (that I'm currently working on) have unwind_exit_to_user_mode(). I think the exit is better than the entry, and I will change this to just use the exit_to_user_mode and removed the enter_from_user_mode. -- Steve