* [PATCH] core.5: document the %f and %C core_pattern specifiers
@ 2026-03-13 19:15 Emanuele Rocca
2026-03-13 20:29 ` Oleksandr Natalenko
0 siblings, 1 reply; 4+ messages in thread
From: Emanuele Rocca @ 2026-03-13 19:15 UTC (permalink / raw)
To: Alejandro Colomar; +Cc: linux-man, Lepton Wu, Oleksandr Natalenko
Whilst going through the relevant kernel code in fs/coredump.c, I noticed that
two core pattern specifiers supported by Linux are missing from man5/core.5.
Document them now.
Signed-off-by: Emanuele Rocca <emanuele.rocca@arm.com>
---
man/man5/core.5 | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/man/man5/core.5 b/man/man5/core.5
index 8c26aa07e..4da5819b6 100644
--- a/man/man5/core.5
+++ b/man/man5/core.5
@@ -154,6 +154,11 @@ A single % character.
%c
Core file size soft resource limit of crashing process (since Linux 2.6.24).
.TP
+%C
+CPU the task ran on
+.\" commit 8603b6f58637ce196d68f7749633ea81af196d66
+(since Linux 6.2).
+.TP
%d
.\" Added in git commit 12a2b4b2241e318b4f6df31228e4272d2c2968a1
Dump mode\[em]same as value returned by
@@ -179,6 +184,11 @@ Pathname of executable,
with slashes (\[aq]/\[aq]) replaced by exclamation marks (\[aq]!\[aq])
(since Linux 3.0).
.TP
+%f
+Actual filename of executable, which may differ from %e
+.\" commit f38c85f1ba6902e4e2e2bf1b84edf065a904cdeb
+(since Linux 5.9).
+.TP
%F
PIDFD of dumped process
.\" commit b5325b2a270fcaf7b2a9a0f23d422ca8a5a8bdea
--
2.47.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] core.5: document the %f and %C core_pattern specifiers
2026-03-13 19:15 [PATCH] core.5: document the %f and %C core_pattern specifiers Emanuele Rocca
@ 2026-03-13 20:29 ` Oleksandr Natalenko
2026-03-13 20:51 ` lepton
0 siblings, 1 reply; 4+ messages in thread
From: Oleksandr Natalenko @ 2026-03-13 20:29 UTC (permalink / raw)
To: Alejandro Colomar, Emanuele Rocca; +Cc: linux-man, Lepton Wu
[-- Attachment #1: Type: text/plain, Size: 1471 bytes --]
On pátek 13. března 2026 20:15:54, středoevropský standardní čas Emanuele Rocca wrote:
> Whilst going through the relevant kernel code in fs/coredump.c, I noticed that
> two core pattern specifiers supported by Linux are missing from man5/core.5.
> Document them now.
>
> Signed-off-by: Emanuele Rocca <emanuele.rocca@arm.com>
> ---
> man/man5/core.5 | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/man/man5/core.5 b/man/man5/core.5
> index 8c26aa07e..4da5819b6 100644
> --- a/man/man5/core.5
> +++ b/man/man5/core.5
> @@ -154,6 +154,11 @@ A single % character.
> %c
> Core file size soft resource limit of crashing process (since Linux 2.6.24).
> .TP
> +%C
> +CPU the task ran on
> +.\" commit 8603b6f58637ce196d68f7749633ea81af196d66
> +(since Linux 6.2).
> +.TP
For this part:
Acked-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Thank you.
> %d
> .\" Added in git commit 12a2b4b2241e318b4f6df31228e4272d2c2968a1
> Dump mode\[em]same as value returned by
> @@ -179,6 +184,11 @@ Pathname of executable,
> with slashes (\[aq]/\[aq]) replaced by exclamation marks (\[aq]!\[aq])
> (since Linux 3.0).
> .TP
> +%f
> +Actual filename of executable, which may differ from %e
> +.\" commit f38c85f1ba6902e4e2e2bf1b84edf065a904cdeb
> +(since Linux 5.9).
> +.TP
> %F
> PIDFD of dumped process
> .\" commit b5325b2a270fcaf7b2a9a0f23d422ca8a5a8bdea
>
--
Oleksandr Natalenko, MSE
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] core.5: document the %f and %C core_pattern specifiers
2026-03-13 20:29 ` Oleksandr Natalenko
@ 2026-03-13 20:51 ` lepton
2026-03-16 0:05 ` Alejandro Colomar
0 siblings, 1 reply; 4+ messages in thread
From: lepton @ 2026-03-13 20:51 UTC (permalink / raw)
To: Oleksandr Natalenko; +Cc: Alejandro Colomar, Emanuele Rocca, linux-man
On Fri, Mar 13, 2026 at 1:29 PM Oleksandr Natalenko
<oleksandr@natalenko.name> wrote:
>
> On pátek 13. března 2026 20:15:54, středoevropský standardní čas Emanuele Rocca wrote:
> > Whilst going through the relevant kernel code in fs/coredump.c, I noticed that
> > two core pattern specifiers supported by Linux are missing from man5/core.5.
> > Document them now.
> >
> > Signed-off-by: Emanuele Rocca <emanuele.rocca@arm.com>
> > ---
> > man/man5/core.5 | 10 ++++++++++
> > 1 file changed, 10 insertions(+)
> >
> > diff --git a/man/man5/core.5 b/man/man5/core.5
> > index 8c26aa07e..4da5819b6 100644
> > --- a/man/man5/core.5
> > +++ b/man/man5/core.5
> > @@ -154,6 +154,11 @@ A single % character.
> > %c
> > Core file size soft resource limit of crashing process (since Linux 2.6.24).
> > .TP
> > +%C
> > +CPU the task ran on
> > +.\" commit 8603b6f58637ce196d68f7749633ea81af196d66
> > +(since Linux 6.2).
> > +.TP
>
> For this part:
>
> Acked-by: Oleksandr Natalenko <oleksandr@natalenko.name>
>
> Thank you.
>
> > %d
> > .\" Added in git commit 12a2b4b2241e318b4f6df31228e4272d2c2968a1
> > Dump mode\[em]same as value returned by
> > @@ -179,6 +184,11 @@ Pathname of executable,
> > with slashes (\[aq]/\[aq]) replaced by exclamation marks (\[aq]!\[aq])
> > (since Linux 3.0).
> > .TP
> > +%f
> > +Actual filename of executable, which may differ from %e
> > +.\" commit f38c85f1ba6902e4e2e2bf1b84edf065a904cdeb
> > +(since Linux 5.9).
> > +.TP
For this part:
Acked-by: Lepton Wu <ytht.net@gmail.com>
Thanks!
> > %F
> > PIDFD of dumped process
> > .\" commit b5325b2a270fcaf7b2a9a0f23d422ca8a5a8bdea
> >
>
>
> --
> Oleksandr Natalenko, MSE
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] core.5: document the %f and %C core_pattern specifiers
2026-03-13 20:51 ` lepton
@ 2026-03-16 0:05 ` Alejandro Colomar
0 siblings, 0 replies; 4+ messages in thread
From: Alejandro Colomar @ 2026-03-16 0:05 UTC (permalink / raw)
To: lepton; +Cc: Oleksandr Natalenko, Emanuele Rocca, linux-man
[-- Attachment #1: Type: text/plain, Size: 1344 bytes --]
Hi all,
On 2026-03-13T13:51:56-0700, lepton wrote:
> On Fri, Mar 13, 2026 at 1:29 PM Oleksandr Natalenko
> <oleksandr@natalenko.name> wrote:
> >
> > On pátek 13. března 2026 20:15:54, středoevropský standardní čas Emanuele Rocca wrote:
> > > Whilst going through the relevant kernel code in fs/coredump.c, I noticed that
> > > two core pattern specifiers supported by Linux are missing from man5/core.5.
> > > Document them now.
> > >
> > > Signed-off-by: Emanuele Rocca <emanuele.rocca@arm.com>
Thanks! I've applied the patch,
> > > ---
[...]
> > > +%C
> > > +CPU the task ran on
> > > +.\" commit 8603b6f58637ce196d68f7749633ea81af196d66
> > > +(since Linux 6.2).
> > > +.TP
> >
> > For this part:
> >
> > Acked-by: Oleksandr Natalenko <oleksandr@natalenko.name>
> >
> > Thank you.
> >
[...]
> > > +%f
> > > +Actual filename of executable, which may differ from %e
> > > +.\" commit f38c85f1ba6902e4e2e2bf1b84edf065a904cdeb
> > > +(since Linux 5.9).
> > > +.TP
> For this part:
>
> Acked-by: Lepton Wu <ytht.net@gmail.com>
And both ACKs.
Have a lovely night!
Alex
>
> Thanks!
> > > %F
> > > PIDFD of dumped process
> > > .\" commit b5325b2a270fcaf7b2a9a0f23d422ca8a5a8bdea
> > >
> >
> >
> > --
> > Oleksandr Natalenko, MSE
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-16 0:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 19:15 [PATCH] core.5: document the %f and %C core_pattern specifiers Emanuele Rocca
2026-03-13 20:29 ` Oleksandr Natalenko
2026-03-13 20:51 ` lepton
2026-03-16 0:05 ` Alejandro Colomar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox