dwatch(1): Expose process for ip/tcp/udp

Knowing the value of execname during these probes is of some value even
if it is commonly the interrupt kernel thread (intr[12]) -- quite often
it is not, but that depends on the probe.

Sponsored by:	Smule, Inc.
This commit is contained in:
Devin Teske 2018-05-12 06:18:15 +00:00
parent a061d97027
commit f134539c02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333518
3 changed files with 0 additions and 63 deletions

View File

@ -17,20 +17,6 @@ ip) : ${PROBE:=ip:::send, ip:::receive} ;;
*) : ${PROBE:=ip:::${PROFILE#ip-}}
esac
############################################################ GLOBALS
#
# This profile does not support these dwatch features
# NB: They are disabled here so they have no effect when profile is loaded
#
unset EXECNAME # -k name
unset EXECREGEX # -z regex
unset GROUP # -g group
unset PID # -p pid
unset PSARGS # affects -d
unset PSTREE # -R
unset USER # -u user
############################################################ ACTIONS
exec 9<<EOF
@ -67,13 +53,6 @@ EOF
ACTIONS=$( cat <&9 )
ID=$(( $ID + 1 ))
############################################################ EVENT TAG
exec 9<<EOF
printf("%s: ", "$PROFILE");
EOF
EVENT_TAG=$( cat <&9 )
############################################################ EVENT DETAILS
if [ ! "$CUSTOM_DETAILS" ]; then

View File

@ -55,20 +55,6 @@ tcp-status)
: ${PROBE:=tcp:::${PROFILE#tcp-}}
esac
############################################################ GLOBALS
#
# This profile does not support these dwatch features
# NB: They are disabled here so they have no effect when profile is loaded
#
unset EXECNAME # -k name
unset EXECREGEX # -z regex
unset GROUP # -g group
unset PID # -p pid
unset PSARGS # affects -d
unset PSTREE # -R
unset USER # -u user
############################################################ ACTIONS
exec 9<<EOF
@ -203,13 +189,6 @@ EOF
ACTIONS=$( cat <&9 )
ID=$(( $ID + 4 ))
############################################################ EVENT TAG
exec 9<<EOF
printf("%s: ", "$PROFILE");
EOF
EVENT_TAG=$( cat <&9 )
############################################################ EVENT DETAILS
if [ ! "$CUSTOM_DETAILS" ]; then

View File

@ -17,20 +17,6 @@ udp) : ${PROBE:=udp:::send, udp:::receive} ;;
*) : ${PROBE:=udp:::${PROFILE#udp-}}
esac
############################################################ GLOBALS
#
# This profile does not support these dwatch features
# NB: They are disabled here so they have no effect when profile is loaded
#
unset EXECNAME # -k name
unset EXECREGEX # -z regex
unset GROUP # -g group
unset PID # -p pid
unset PSARGS # affects -d
unset PSTREE # -R
unset USER # -u user
############################################################ ACTIONS
exec 9<<EOF
@ -81,13 +67,6 @@ EOF
ACTIONS=$( cat <&9 )
ID=$(( $ID + 1 ))
############################################################ EVENT TAG
exec 9<<EOF
printf("%s: ", "$PROFILE");
EOF
EVENT_TAG=$( cat <&9 )
############################################################ EVENT DETAILS
if [ ! "$CUSTOM_DETAILS" ]; then