Re: [PATCH] core_pattern: add CPU specifier
From: Oleg Nesterov
Date: Wed Sep 07 2022 - 13:35:05 EST
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.