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

Steven Rostedt
2025-04-01T21:33:17Z

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);

-- Steve