Re: [PATCH] exit: add trace_task_exit() tracepoint before current->mm is reset

Michal Hocko
2025-04-02T07:18:37Z

On Tue 01-04-25 17:34:16, Steven Rostedt wrote:
> On Tue, 1 Apr 2025 17:32:49 -0400
> Steven Rostedt <rostedt@goodmis.org> wrote:
>
> > static void exit_mm(void)
> > {
> > struct mm_struct *mm = current->mm;
> >
> > exit_mm_release(current, mm);
> > trace_exit_mm(mm);
> >
> > ??
>
> That should have been:
>
> static void exit_mm(void)
> {
> struct mm_struct *mm = current->mm;
>
> trace_exit_mm(mm);
> exit_mm_release(current, mm);

If the primary usecase is to get an overview of the mm before exiting
then this is more appropriate.

--
Michal Hocko
SUSE Labs