Skip to content

Commit

Permalink
killsnoop: add missing -s and -T options to the synopsis
Browse files Browse the repository at this point in the history
The -s option is missing from the synopsis of the killsnoop manpage,
example file and the comment on top of the tool itself.
Also, -T option is missing from the example file.

Signed-off-by: Jerome Marchand <[email protected]>
  • Loading branch information
jeromemarchand committed Jan 11, 2023
1 parent 2b203ea commit 5cdbc39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion man/man8/killsnoop.8
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.SH NAME
killsnoop \- Trace signals issued by the kill() syscall. Uses Linux eBPF/bcc.
.SH SYNOPSIS
.B killsnoop [\-h] [\-x] [-p PID] [-T PID]
.B killsnoop [\-h] [\-x] [-p PID] [-T PID] [-s SIGNAL]
.SH DESCRIPTION
killsnoop traces the kill() syscall, to show signals sent via this method. This
may be useful to troubleshoot failing applications, where an unknown mechanism
Expand Down
2 changes: 1 addition & 1 deletion tools/killsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# killsnoop Trace signals issued by the kill() syscall.
# For Linux, uses BCC, eBPF. Embedded C.
#
# USAGE: killsnoop [-h] [-x] [-p PID] [-T PID]
# USAGE: killsnoop [-h] [-x] [-p PID] [-T PID] [-s SIGNAL]
#
# Copyright (c) 2015 Brendan Gregg.
# Licensed under the Apache License, Version 2.0 (the "License")
Expand Down
2 changes: 1 addition & 1 deletion tools/killsnoop_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The second line showed the same signal sent, this time resulting in a -3
USAGE message:

# ./killsnoop -h
usage: killsnoop [-h] [-x] [-p PID]
usage: killsnoop [-h] [-x] [-p PID] [-T PID] [-s SIGNAL]

Trace signals issued by the kill() syscall

Expand Down

0 comments on commit 5cdbc39

Please sign in to comment.