Skip to content

Commit

Permalink
Update man page and example file
Browse files Browse the repository at this point in the history
  • Loading branch information
synical authored and yonghong-song committed May 26, 2020
1 parent 076a354 commit 33c8b1a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions man/man8/killsnoop.8
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ Only print failed kill() syscalls.
.TP
\-p PID
Trace this process ID only (filtered in-kernel).
.TP
\-s SIGNAL
Trace this signal only (filtered in-kernel).
.SH EXAMPLES
.TP
Trace all kill() syscalls:
Expand All @@ -41,6 +44,10 @@ Trace only kill() syscalls that failed:
Trace PID 181 only:
#
.B killsnoop \-p 181
.TP
Trace signal 9 only:
#
.B killsnoop \-s 9
.SH FIELDS
.TP
TIME
Expand Down
7 changes: 4 additions & 3 deletions tools/killsnoop_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ optional arguments:
-p PID, --pid PID trace this PID only

examples:
./killsnoop # trace all kill() signals
./killsnoop -x # only show failed kills
./killsnoop -p 181 # only trace PID 181
./killsnoop # trace all kill() signals
./killsnoop -x # only show failed kills
./killsnoop -p 181 # only trace PID 181
./killsnoop -s 9 # only trace signal 9

0 comments on commit 33c8b1a

Please sign in to comment.