Re: [PATCH] Provide control over core name even for multithreadedprocesses

From: La Monte Yarroll
Date: Wed Sep 03 2008 - 09:50:43 EST


On Tue, 2 Sep 2008 15:14:26 -0700
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, 29 Aug 2008 15:22:15 -0400
> "La Monte H.P. Yarroll" <piggy@xxxxxxxxxxxxxxxxxx> wrote:
>
> > Our system explicitly sets core_pattern to force a relatively small
> > limit on the number of different core dump names.
> >
> > Unfortunately, the kernel unconditionally appends .<tid> for
> > multithreaded processes.
> >
> > The attached patch introduces "%T" to the core_pattern language,
> > which expands to ".<tid>" for multithreaded processes. It then
> > changes the default core_pattern to "core%T" replicating the
> > current default behavior.
> >
> > Signed-off-by: La Monte H.P. Yarroll <piggy@xxxxxxxxxxxxxxxxxx>
> > 74-256740
...
>
> Please review Oleg's
> http://userweb.kernel.org/~akpm/mmotm/broken-out/coredump-format_corename-dont-append-%25pid-if-multi-threaded.patch,
> which I have queued for 2.6.28.

Thanks! This is even better and looks like it meets our needs.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/