|
From: Tom H. <to...@co...> - 2006-09-08 07:31:03
|
In message <loo...@po...>
Tim Stilwell <ti...@ka...> wrote:
> I noticed that valgrind core files have a unique prefix: vg.
>
> [root@g4 runtime]# ls -l
> total 23536
> -rw------- 1 root root 24059790 Sep 7 00:04 vgcore.4211
>
> I really like that trick because it is easy to extract those cores from all
> the other cores.
>
> I would like to use the same trick for a subset of my applications. How do I
> give them a unique core file name?
The valgrind cores are called that because they are generated by
valgrind not the kernel - if valgrind itself dies (rather than the
client it is running) then you may get a normal core file for it.
On recent versions of linus you can influence what name the kernel
uses for core files using the kernel.core_pattern sysctl value - see
sysctl/kernel.txt in the kernel documentation for details.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|