From 1df2059db73d2cbb52178c19b2d4ab834f4a5144 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sat, 10 Oct 1998 13:09:09 +0000 Subject: Fix typos and sync with 3.0-19980827-SNAP (without ppp.8). Reviewed by: Japanese Online Manual Project Submitted by: Kazuo Horikawa --- ja/man/man1/truss.1 | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 ja/man/man1/truss.1 (limited to 'ja/man/man1/truss.1') diff --git a/ja/man/man1/truss.1 b/ja/man/man1/truss.1 new file mode 100644 index 0000000000..beda921c09 --- /dev/null +++ b/ja/man/man1/truss.1 @@ -0,0 +1,71 @@ +.Dd Nov 23, 1997 +.\" jpman %Id: truss.1,v 1.2 1998/10/06 20:28:40 vanitas Stab % +.\" +.\" WORD: trace トレース(する)[ktrace.1, mtrace.8] +.\" +.Dt TRUSS 1 +.Os FreeBSD +.Sh 名称 +.Nm truss +.Nd システムコールをトレースする +.Sh 書式 +.Nm truss +.Op Fl S +.Op Fl o Ar file +.Fl p Ar pid +.Nm truss +.Op Fl S +.Op Fl o Ar file +command +.Op args +.Sh 解説 +.Nm truss +は指定したプロセスやプログラムが呼び出すシステムコールを +トレースします。出力は指定した出力ファイルか、デフォルトでは +標準エラー出力へ送られます。処理は +.Xr procfs 5 +でプロセスを監視し、それを停止させたり再開させて行なわれます。 +.Pp +オプションは以下のとおりです : +.Bl -tag -width indent +.It Fl S +プロセスが受信するシグナルについての情報は表示しない。 +(通常、 +.Nm +はシステムコールイベントと同様、シグナル情報も表示します。) +.It Fl o Ar file +出力を標準エラー出力ではなく、指定したファイル +.Ar file +へ送ります。 +.It Fl p Ar pid +新しくコマンドを起動するのではなく、指定したプロセス ID +.Ar pid +のプロセスを追います。 +.It Ar command Op args +コマンド +.Ar command +を実行し、そのシステムコールをトレースします。 +(オプション +.Fl p +と +.Ar command +は互いに排他的にしか使用できません。) +.Sh 実行例 +# "hello" を echo する際に使われるシステムコールを追います +.Dl $ truss /bin/echo hello +# 同じことをしますが、出力をファイルに書き込みます +.Dl $ truss -o /tmp/truss.out /bin/echo hello +# すでに動作しているプロセスを追います +.Dl $ truss -p 1 +.Sh 関連項目 +.Xr kdump 1 , +.Xr ktrace 1 , +.Xr procfs 5 +.Sh 歴史 +.Nm +コマンドは +.An Sean Eric Fagan +が +.Bx Free Ns 用に作成しました。 +System V Release 4 や SunOS で利用可能な +類似のコマンドをモデルにしました。 -- cgit v1.2.3