[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240218175204.GB24311@redhat.com>
Date: Sun, 18 Feb 2024 18:52:04 +0100
From: Oleg Nesterov <oleg@...hat.com>
To: Wen Yang <wenyang.linux@...mail.com>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
Ingo Molnar <mingo@...nel.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Mel Gorman <mgorman@...hsingularity.net>,
Peter Zijlstra <peterz@...radead.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] coredump debugging: add a tracepoint to report the
coredumping
On 02/18, Wen Yang wrote:
>
> On 2024/2/17 18:49, Oleg Nesterov wrote:
> >On 02/17, wenyang.linux@...mail.com wrote:
> >>From: Wen Yang <wenyang.linux@...mail.com>
> >>
> >>Currently coredump_task_exit() takes some time to wait for the generation
> >>of the dump file. But if the user-space wants to receive a notification
> >>as soon as possible it maybe inconvenient.
> >>
> >>Add the new trace_sched_process_coredump() into coredump_task_exit(),
> >>this way a user-space monitor could easily wait for the exits and
> >>potentially make some preparations in advance.
> >Can't comment, I never know when the new tracepoint will make sense.
> >
> >Stupid question.
> >Oleg.
>
> Thanks for your help.
Well thanks, but no, I can't help. As I said I can't really comment this
patch.
> trace_sched_process_exit() is located after the PF_EXITING flag is set
Yes,
> so it could not be moved to there.
Why? DECLARE_EVENT_CLASS(sched_process_template) doesn't report task->flags.
Again, again, I am not arguing. But I think that the changelog should
explain why we can't move trace_sched_process_exit() in more details.
> Could we make the following modifications?
..
>
> @@ -2866,6 +2866,7 @@ bool get_signal(struct ksignal *ksig)
> * Anything else is fatal, maybe with a core dump.
> */
> current->flags |= PF_SIGNALED;
> + trace_sched_process_kill(current);
Another case when I can't comment the intent.
We already have trace_signal_deliver() in get_signal(). I'm afraid you
need to explain why do you think userspace needs yet another tracepoint.
Oleg.
Powered by blists - more mailing lists