Re: [PATCH] exit: add trace_task_exit() tracepoint before current->mm is reset
From: Michal Hocko
Date: Wed Apr 02 2025 - 03:19:02 EST
On Tue 01-04-25 17:34:16, Steven Rostedt wrote:
> On Tue, 1 Apr 2025 17:32:49 -0400
> Steven Rostedt <rostedt@xxxxxxxxxxx> 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