Re: core_pattern pipe documentation

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Kerrisk <mtk.manpages@...>
Cc: Andi Kleen <andi@...>, <linux-man@...>, Linux Kernel Mailing List <linux-kernel@...>, Petr Gajdos <pgajdos@...>, <michael.kerrisk@...>
Date: Wednesday, April 23, 2008 - 10:59 am

On Wed, Apr 23, 2008 at 02:09:14PM +0200, Michael Kerrisk wrote:
Thanks for CC'ing me.  The above all looks good.  I would add documentation
however, about the available macros that can be used when core_pattern is
specified as a pipe.  Adding something like the following would be good:

	* Arguments can be statically declared or implied via the use of macros,
	  denoted by the use of the %sign.  The following macros are supported:
		* %% - output a literal % sign on the command line
		* %p - the pid of the crashing process
		* %u - the uid of the crashing process
		* %g - the gid of the crashing process
		* %s - the signal that caused the crashing process to crash
		* %t - the time the crashing process dumped
		* %h - the hostname of the system
		* %e - the executable name of the crashing process
		* %c - the core limit size of the crashing process

	  Note that the core limit size macro may be a different value than what
	  is returned by getrlimit(RLIMIT_CORE,...).  This is due to the fact
	  that the core_pattern specified executible will be run as the same uid
	  as the crashing process, and to facilitate reception of the entire
	  core, the kernel will temporarily set RLIMIT_CORE to unlimited while
	  the dump is in progress.  Note also %u and %g may be different values
	  than getuid/getgid in the event that the core_pattern executable is
	  set[u|g]id root


Thanks & Regards
Neil


-- 
/***************************************************
 *Neil Horman
 *nhorman@tuxdriver.com
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
core_pattern pipe documentation, Michael Kerrisk, (Fri Apr 18, 12:53 pm)
Re: core_pattern pipe documentation, Michael Kerrisk, (Wed Apr 23, 8:09 am)
Re: core_pattern pipe documentation, Neil Horman, (Wed Apr 23, 10:59 am)
Re: core_pattern pipe documentation, Michael Kerrisk, (Fri Apr 25, 9:18 am)
Re: core_pattern pipe documentation, Neil Horman, (Fri Apr 25, 12:22 pm)
Re: core_pattern pipe documentation, Michael Kerrisk, (Fri Apr 25, 2:13 pm)
Re: core_pattern pipe documentation, Neil Horman, (Fri Apr 25, 2:54 pm)
Re: core_pattern pipe documentation, Michael Kerrisk, (Fri Apr 25, 4:05 pm)
Re: core_pattern pipe documentation, Neil Horman, (Fri Apr 25, 4:18 pm)
Re: core_pattern pipe documentation, Michael Kerrisk, (Fri Apr 25, 4:39 pm)
core_pattern pipe documentation - draft 2, Michael Kerrisk, (Mon May 5, 3:19 am)
Re: core_pattern pipe documentation - draft 2, Neil Horman, (Mon May 5, 7:29 am)
Re: core_pattern pipe documentation, Michael Kerrisk, (Fri Apr 25, 3:50 pm)