From: Oleg Nesterov <oleg@tv-sign.ru>
To: Michael Kerrisk <mtk.manpages@googlemail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
Roland McGrath <roland@redhat.com>,
akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
andi@firstfloor.org
Subject: Re: [PATCH -mm] coredump: format_corename: don't append .%pid if multi-threaded
Date: Tue, 22 Jul 2008 16:43:14 +0400 [thread overview]
Message-ID: <20080722124314.GA3267@tv-sign.ru> (raw)
In-Reply-To: <cfd18e0f0807220521x5faea19bn1f545b23b84ead6a@mail.gmail.com>
On 07/22, Michael Kerrisk wrote:
>
> On Tue, Jul 22, 2008 at 2:18 PM, Oleg Nesterov <oleg@tv-sign.ru> wrote:
> > If the coredumping is multi-threaded, format_corename() appends .%pid
> > to the corename. This was needed before the proper multi-thread core
> > dump support, now all the threads in the mm go into a single unified
> > core file.
> >
> > Remove this special case, it is not even documented and we have "%p"
> > and core_uses_pid.
>
> Hi Oleg,
>
> I have not thought about this at any length, but one question that
> jumps to mind: could this feature still be useful for LinuxThreads,
> where each thread does indeed have a separate PID?
As far as I know, LinuxThreads use CLONE_VM, right?
The coredump will create the single core file for all processes because
they have the same ->mm, the "threads" won't dump all over each other.
And, just in case, this patch doesn't make any difference if core_uses_pid
is set or pid_in_pattern is true.
That said, this is the user-visible change...
Oleg.
next prev parent reply other threads:[~2008-07-22 12:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200807210137.m6L1bN0H011138@imap1.linux-foundation.org>
[not found] ` <20080721102940.666d733d@the-village.bc.nu>
[not found] ` <20080721210121.C5E741541A5@magilla.localdomain>
[not found] ` <20080721221416.6d4f9014@lxorguk.ukuu.org.uk>
[not found] ` <20080722113731.GA1383@tv-sign.ru>
2008-07-22 12:18 ` Oleg Nesterov
2008-07-22 12:21 ` Michael Kerrisk
2008-07-22 12:43 ` Oleg Nesterov [this message]
2008-07-22 12:47 ` Michael Kerrisk
2008-07-22 13:02 ` Oleg Nesterov
2008-07-22 14:46 ` Michael Kerrisk
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=20080722124314.GA3267@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mtk.manpages@googlemail.com \
--cc=roland@redhat.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
all inboxes | Powered by JetHome®