Re: [PATCH] core_pattern: add CPU specifier

Oleg Nesterov
2022-09-07T17:35:05Z

On 09/07, Oleksandr Natalenko wrote:
>
> The advantage of having CPU recorded in the file name is that
> in case of multiple cores one can summarise them with a simple
> ls+grep without invoking a fully-featured debugger to find out
> whether the segfaults happened on the same CPU.

Besides, if you only need to gather the statistics about the faulting
CPU(s), you do not even need to actually dump the the core. For example,
something like

#!/usr/bin/sh

echo $* >> path/to/coredump-stat.txt

and
echo '| path-to-script-above %C' >/proc/sys/kernel/core_pattern

can help.

Oleg.