From: Oleg Nesterov <oleg@redhat.com>
To: Wen Yang <wenyang.linux@foxmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Masami Hiramatsu <mhiramat@kernel.org>,
Ingo Molnar <mingo@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Mel Gorman <mgorman@techsingularity.net>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] coredump debugging: add a tracepoint to report the coredumping
Date: Sun, 18 Feb 2024 18:52:04 +0100 [thread overview]
Message-ID: <20240218175204.GB24311@redhat.com> (raw)
In-Reply-To: <tencent_6EFB821C2775D38F99EBFC6C9F7FAB82A809@qq.com>
On 02/18, Wen Yang wrote:
>
> On 2024/2/17 18:49, Oleg Nesterov wrote:
> >On 02/17, wenyang.linux@foxmail.com wrote:
> >>From: Wen Yang <wenyang.linux@foxmail.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.
next prev parent reply other threads:[~2024-02-18 17:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-16 18:59 [PATCH] coredump debugging: add a tracepoint to report the coredumping wenyang.linux
2024-02-17 10:49 ` Oleg Nesterov
2024-02-18 15:16 ` Wen Yang
2024-02-18 17:52 ` Oleg Nesterov [this message]
2024-02-19 16:29 ` Steven Rostedt
2024-02-19 17:00 ` Oleg Nesterov
2024-02-19 17:28 ` Steven Rostedt
2024-02-19 18:01 ` Mathieu Desnoyers
2024-02-20 15:08 ` Steven Rostedt
2024-02-23 14:26 ` Steven Rostedt
2024-02-23 16:54 ` Mathieu Desnoyers
2024-02-23 17:03 ` Steven Rostedt
2024-02-23 17:12 ` Karim Yaghmour
2024-02-21 16:00 ` Wen Yang
2024-02-21 17:54 ` Steven Rostedt
2024-02-21 15:45 ` Wen Yang
2024-02-21 17:48 ` Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240218175204.GB24311@redhat.com \
--to=oleg@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mgorman@techsingularity.net \
--cc=mhiramat@kernel.org \
--cc=mingo@kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=wenyang.linux@foxmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox