3947840b05
Interpretation of a chunk in cut.1 was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
102 lines
3.3 KiB
Groff
102 lines
3.3 KiB
Groff
.\" Copyright (c) 1983, 1990, 1992, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)gcore.1 8.2 (Berkeley) 4/18/94
|
|
.\" %FreeBSD: src/usr.bin/gcore/gcore.1,v 1.15 2004/07/03 00:24:40 ru Exp %
|
|
.\" $FreeBSD$
|
|
.\"
|
|
.Dd April 18, 1994
|
|
.Dt GCORE 1
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm gcore
|
|
.Nd ¼Â¹ÔÃæ¤Î¥×¥í¥»¥¹¤Î¥³¥¢¥¤¥á¡¼¥¸¤ò¼èÆÀ¤¹¤ë
|
|
.Sh ½ñ¼°
|
|
.Nm gcore
|
|
.Op Fl s
|
|
.Op Fl c Ar core
|
|
.Op Ar executable
|
|
.Ar pid
|
|
.Sh ²òÀâ
|
|
.Nm gcore
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï»ØÄꤷ¤¿¥×¥í¥»¥¹¤Î¥³¥¢¥¤¥á¡¼¥¸¤òÀ¸À®¤·¤Þ¤¹¡£
|
|
¤³¤Î¥³¥¢¥¤¥á¡¼¥¸¤Ï
|
|
.Xr gdb 1
|
|
¤ÇÍѤ¤¤ë¤Î¤ËŬ¤·¤¿¤â¤Î¤Ç¤¹¡£
|
|
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¥³¥¢¤Ï¥Õ¥¡¥¤¥ë
|
|
.Dq Pa core.<pid>
|
|
¤Ë½ñ¤½Ð¤µ¤ì¤Þ¤¹¡£
|
|
¥×¥í¥»¥¹ ID
|
|
.Ar pid
|
|
¤ò¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
|
|
¼Â¹Ô²Äǽ¥¤¥á¡¼¥¸¤Ï»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
|
|
.Nm
|
|
¤Ï
|
|
.Dq Pa /proc/<pid>/file
|
|
¤ò»ÈÍѤ·¤Þ¤¹¡£
|
|
.Pp
|
|
¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
|
|
.Bl -tag -width indent
|
|
.It Fl c
|
|
¥³¥¢¥Õ¥¡¥¤¥ë¤ò
|
|
.Dq Pa core.<pid>
|
|
¤Ç¤Ï¤Ê¤¯¡¢»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤Ë½ñ¤½Ð¤·¤Þ¤¹¡£
|
|
.It Fl s
|
|
¥³¥¢¥¤¥á¡¼¥¸¤ò½¸¤á¤ë´Ö¥×¥í¥»¥¹¤òÄä»ß¤·¡¢
|
|
½¸¤á½ª¤ï¤Ã¤¿¤é¥×¥í¥»¥¹¤òºÆ³«¤µ¤»¤Þ¤¹¡£
|
|
¤³¤ì¤Ë¤è¤ê¡¢À¸À®¤µ¤ì¤¿¥³¥¢¥À¥ó¥×¤¬°ì´ÓÀ¤Î¤È¤ì¤¿¾õÂ֤ˤʤäƤ¤¤ë¤³¤È¤ò
|
|
ÊݾڤǤ¤Þ¤¹¡£
|
|
¥×¥í¥»¥¹¤Ï¤¿¤È¤¨´û¤ËÄä»ß¤·¤Æ¤¤¤Æ¤â¡¢ºÆ³«¤µ¤ì¤Þ¤¹¡£
|
|
Ʊ¤¸¸ú²Ì¤Ï
|
|
.Xr kill 1
|
|
¤òÍѤ¤¤Æ¼êÆ°¤Ç¹Ô¤¦¤³¤È¤â²Äǽ¤Ç¤¹¡£
|
|
.El
|
|
.Sh ´ØÏ¢¥Õ¥¡¥¤¥ë
|
|
.Bl -tag -width /var/log/messages -compact
|
|
.It Pa core.<pid>
|
|
¥³¥¢¥¤¥á¡¼¥¸
|
|
.It Pa /proc/<pid>/file
|
|
¼Â¹Ô²Äǽ¥¤¥á¡¼¥¸
|
|
.El
|
|
.Sh Îò»Ë
|
|
.Nm gcore
|
|
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
|
|
.Bx 4.2
|
|
¤«¤éÅо줷¤Þ¤·¤¿¡£
|
|
.Sh ¥Ð¥°
|
|
.Nm gcore
|
|
Æ°ºîÃæ¤Ë¥³¥ó¥Æ¥¥¹¥ÈÀÚ¤êÂؤ¨¤ä¥Ú¡¼¥¸¥ó¥°Æ°ºî¤¬È¯À¸¤¹¤ë¤Èº®Í𤷤ޤ¹¡£
|
|
ºÇÁ±¤Î·ë²Ì¤òÆÀ¤ë¤Ë¤Ï¡¢-s ¤òÍѤ¤¤ÆÌÜŪ¥×¥í¥»¥¹¤ò°ì»þÄä»ß¤µ¤»¤Æ²¼¤µ¤¤¡£
|
|
.Pp
|
|
.Nm gcore
|
|
¤Ï¥ª¥ê¥¸¥Ê¥ë¤Î
|
|
.Bx 4.2
|
|
¥Ð¡¼¥¸¥ç¥ó¤È¸ß´¹¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£
|