003 File Manager
Current Path:
/usr/libexec/dwatch
usr
/
libexec
/
dwatch
/
📁
..
📄
chmod
(1.65 KB)
📄
errno
(1.22 KB)
📄
fchmodat
(1.65 KB)
📄
io
(3.09 KB)
📄
io-done
(3.09 KB)
📄
io-start
(3.09 KB)
📄
ip
(1.76 KB)
📄
ip-receive
(1.76 KB)
📄
ip-send
(1.76 KB)
📄
kill
(1.19 KB)
📄
lchmod
(1.65 KB)
📄
nanosleep
(1.44 KB)
📄
open
(1.48 KB)
📄
openat
(1.48 KB)
📄
proc
(3.88 KB)
📄
proc-create
(3.88 KB)
📄
proc-exec
(3.88 KB)
📄
proc-exec-failure
(3.88 KB)
📄
proc-exec-success
(3.88 KB)
📄
proc-exit
(3.88 KB)
📄
proc-signal
(3.88 KB)
📄
proc-signal-clear
(3.88 KB)
📄
proc-signal-discard
(3.88 KB)
📄
proc-signal-send
(3.88 KB)
📄
proc-status
(3.88 KB)
📄
read
(1.8 KB)
📄
recv
(6.32 KB)
📄
recvfrom
(6.32 KB)
📄
recvmsg
(6.32 KB)
📄
rw
(1.8 KB)
📄
sched
(2.9 KB)
📄
sched-change-pri
(2.9 KB)
📄
sched-cpu
(2.9 KB)
📄
sched-dequeue
(2.9 KB)
📄
sched-enqueue
(2.9 KB)
📄
sched-exec
(2.9 KB)
📄
sched-lend-pri
(2.9 KB)
📄
sched-load-change
(2.9 KB)
📄
sched-off-cpu
(2.9 KB)
📄
sched-on-cpu
(2.9 KB)
📄
sched-preempt
(2.9 KB)
📄
sched-pri
(2.9 KB)
📄
sched-queue
(2.9 KB)
📄
sched-remain-cpu
(2.9 KB)
📄
sched-sleep
(2.9 KB)
📄
sched-surrender
(2.9 KB)
📄
sched-tick
(2.9 KB)
📄
sched-wakeup
(2.9 KB)
📄
send
(6.32 KB)
📄
sendmsg
(6.32 KB)
📄
sendrecv
(6.32 KB)
📄
sendto
(6.32 KB)
📄
systop
(2.22 KB)
📄
tcp
(5.37 KB)
📄
tcp-accept
(5.37 KB)
📄
tcp-accept-established
(5.37 KB)
📄
tcp-accept-refused
(5.37 KB)
📄
tcp-connect
(5.37 KB)
📄
tcp-connect-established
(5.37 KB)
📄
tcp-connect-refused
(5.37 KB)
📄
tcp-connect-request
(5.37 KB)
📄
tcp-established
(5.37 KB)
📄
tcp-init
(5.37 KB)
📄
tcp-io
(5.37 KB)
📄
tcp-receive
(5.37 KB)
📄
tcp-refused
(5.37 KB)
📄
tcp-send
(5.37 KB)
📄
tcp-state-change
(5.37 KB)
📄
tcp-status
(5.37 KB)
📄
udp
(2.29 KB)
📄
udp-receive
(2.29 KB)
📄
udp-send
(2.29 KB)
📄
udplite
(2.35 KB)
📄
udplite-receive
(2.35 KB)
📄
udplite-send
(2.35 KB)
📄
vop_create
(4.96 KB)
📄
vop_lookup
(4.96 KB)
📄
vop_mkdir
(4.96 KB)
📄
vop_mknod
(4.96 KB)
📄
vop_readdir
(4.71 KB)
📄
vop_remove
(4.96 KB)
📄
vop_rename
(8.11 KB)
📄
vop_rmdir
(4.96 KB)
📄
vop_symlink
(5.04 KB)
📄
write
(1.8 KB)
Editing: sched-queue
# -*- tab-width: 4 -*- ;; Emacs # vi: set filetype=sh tabstop=8 shiftwidth=8 noexpandtab :: Vi/ViM ############################################################ IDENT(1) # # $Title: dwatch(8) module for dtrace_sched(4) $ # $Copyright: 2014-2018 Devin Teske. All rights reserved. $ # $FreeBSD$ # ############################################################ DESCRIPTION # # Display CPU scheduling activity # ############################################################ PROBE case "$PROFILE" in sched) : ${PROBE:=sched:::} ;; sched-cpu) : ${PROBE:=sched:::off-cpu, sched:::on-cpu, sched:::remain-cpu} ;; sched-exec) : ${PROBE:=sched:::sleep, sched:::wakeup} ;; sched-pri) : ${PROBE:=sched:::change-pri, sched:::lend-pri} ;; sched-queue) : ${PROBE:=sched:::dequeue, sched:::enqueue, sched:::load-change} ;; *) : ${PROBE:=sched:::${PROFILE#sched-}} esac ############################################################ ACTIONS exec 9<<EOF this pid_t pid; this string args; this string details; this u_char curprio; $PROBE /* probe ID $ID */ {${TRACE:+ printf("<$ID>");} this->args = this->args0; this->details = ""; this->pid = this->pid0; } sched:::change-pri, sched:::dequeue, sched:::enqueue, sched:::lend-pri, sched:::off-cpu, sched:::surrender, sched:::tick, sched:::wakeup /* probe ID $(( $ID + 1 )) */ {${TRACE:+ printf("<$(( $ID + 1 ))>");} this->curprio = (u_char)((struct thread *)args[0])->td_priority; $( pproc -P _sched "(struct proc *)args[1]" ) this->args = this->args_sched; this->pid = this->pid_sched; } sched:::enqueue /* probe ID $(( $ID + 2 )) */ {${TRACE:+ printf("<$(( $ID + 2 ))>");} /* details = "head" or "tail" */ this->details = (int)arg3 == 0 ? "tail" : "head"; } sched:::change-pri, sched:::lend-pri /* probe ID $(( $ID + 3 )) */ {${TRACE:+ printf("<$(( $ID + 3 ))>");} /* details = "<curprio> -> <arg2>" */ this->details = strjoin(lltostr(this->curprio), strjoin("->", lltostr((uint8_t)arg2))); } sched:::load-change /* probe ID $(( $ID + 4 )) */ {${TRACE:+ printf("<$(( $ID + 4 ))>");} /* details = "CPU<arg0> queue <arg1>" */ this->details = strjoin(strjoin("CPU", lltostr((int)arg0)), strjoin(" queue ", lltostr((int)arg1))); } $PROBE /* probe ID $(( $ID + 5 )) */ {${TRACE:+ printf("<$(( $ID + 5 ))>");} /* details += " pid <pid> -- <proc args of pid>" */ this->details = strjoin(this->details, this->details == "" ? "" : " "); this->details = strjoin(this->details, strjoin( strjoin("pid ", lltostr(this->pid)), strjoin(" -- ", this->args))); } EOF ACTIONS=$( cat <&9 ) ID=$(( $ID + 6 )) ############################################################ EVENT DETAILS if [ ! "$CUSTOM_DETAILS" ]; then exec 9<<EOF /* * Print scheduling details */ printf("%s %s", probename, this->details); EOF EVENT_DETAILS=$( cat <&9 ) fi ################################################################################ # END ################################################################################
Upload File
Create Folder