Lines Matching +full:signal +full:- +full:id

1 # -*- tab-width: 4 -*- ;; Emacs
6 # $Copyright: 2014-2018 Devin Teske. All rights reserved. $
19 proc:::exec-failure, \
20 proc:::exec-success, \
22 proc:::signal-clear, \
23 proc:::signal-discard, \
24 proc:::signal-send )}
26 proc-signal)
28 proc:::signal-clear, \
29 proc:::signal-discard, \
30 proc:::signal-send )}
32 proc-status)
36 proc:::exec-failure, \
37 proc:::exec-success, \
41 : ${PROBE:=proc:::${PROFILE#proc-}}
55 name == "exec-failure" ? "FAIL" :
56 name == "exec-success" ? "INIT" :
58 name == "signal-clear" ? "CLEAR" :
59 name == "signal-discard" ? "DISCARD" :
60 name == "signal-send" ? "SEND" :
63 $PROBE /* probe ID $ID */
65 printf("<$ID>");}
66 this->details = "";
69 proc:::create /* probe ID $(( $ID + 1 )) */
71 printf("<$(( $ID + 1 ))>");
73 $( pproc -P _create "(struct proc *)args[0]" )
75 /* details = "pid <pid of args[0]> -- <proc args of args[0]>" */
76 this->details = strjoin(
77 strjoin("pid ", lltostr(this->pid_create)),
78 strjoin(" -- ", this->args_create));
81 proc:::exec /* probe ID $(( $ID + 2 )) */
83 printf("<$(( $ID + 2 ))");}
84 this->details = this->exec_arg0 = stringof(arg0);
87 proc:::exec-failure /* probe ID $(( $ID + 3 )) */
89 printf("<$(( $ID + 3 ))>");
92 this->details = strjoin(
93 strjoin(this->exec_arg0, ": "),
98 proc:::exec-success /* probe ID $(( $ID + 4 )) */
100 printf("<$(( $ID + 4 ))>");}
101 this->details = this->args0;
104 proc:::exit /* probe ID $(( $ID + 5 )) */
106 printf("<$(( $ID + 5 ))>");}
107 this->details = child_signal_string[(int)arg0];
110 proc:::signal-clear /* probe ID $(( $ID + 6 )) */
112 printf("<$(( $ID + 6 ))>");}
113 this->pid = (pid_t)((ksiginfo_t *)args[1])->ksi_info.si_pid;
114 this->sig = (int)arg0;
117 proc:::signal-discard, proc:::signal-send /* probe ID $(( $ID + 7 )) */
119 printf("<$(( $ID + 7 ))>");}
120 this->pid = (pid_t)((struct proc *)args[1])->p_pid;
121 this->sig = (int)arg2;
124 proc:::signal-clear,
125 proc:::signal-discard,
126 proc:::signal-send /* probe ID $(( $ID + 8 )) */
128 printf("<$(( $ID + 8 ))>");
130 /* details = "<signal>[<num>] pid <pid>" */
131 this->details = strjoin(strjoin(signal_string[this->sig], "["),
132 strjoin(strjoin(lltostr(this->sig), "] pid "),
133 lltostr(this->pid)));
136 proc:::signal-send, proc:::signal-discard /* probe ID $(( $ID + 9 )) */
138 printf("<$(( $ID + 9 ))>");
140 $( pproc -P _signal "(struct proc *)args[1]" )
142 this->details = strjoin(this->details,
143 strjoin(" -- ", this->args_signal));
147 ID=$(( $ID + 10 ))
156 printf("%s %s", probealias[probename], this->details);