Lines Matching +full:0 +full:d

35  * # ./schedgraph.d > /tmp/sched.out
40 #pragma D option quiet
41 #pragma D option bufpolicy=ring
43 inline int TDF_IDLETD = 0x00000020;
49 inline int TDI_SUSPENDED = 0x0001; /* On suspension queue. */
50 inline int TDI_SLEEPING = 0x0002; /* Actually asleep! (tricky). */
51 inline int TDI_SWAPPED = 0x0004; /* Stack not in mem. Bad juju if run. */
52 inline int TDI_LOCK = 0x0008; /* Stopped on a lock. */
53 inline int TDI_IWAIT = 0x0010; /* Awaiting interrupt. */
56 (((td)->td_inhibitors & TDI_SLEEPING) != 0 ? "sleep" : \
57 ((td)->td_inhibitors & TDI_SUSPENDED) != 0 ? "suspended" : \
58 ((td)->td_inhibitors & TDI_SWAPPED) != 0 ? "swapped" : \
59 ((td)->td_inhibitors & TDI_LOCK) != 0 ? "blocked" : \
60 ((td)->td_inhibitors & TDI_IWAIT) != 0 ? "iwait" : "yielding");
66 inline int is_nocpu[int cpu] = cpu < 0 || cpu > `mp_maxid;
69 / is_nocpu[args[0]] /
71 …printf("%d %d KTRGRAPH group:\"load\", id:\"global load\", counter:\"%d\", attributes: \"none\"\n"…
75 / !is_nocpu[args[0]] /
77 …printf("%d %d KTRGRAPH group:\"load\", id:\"CPU %d load\", counter:\"%d\", attributes: \"none\"\n"…
83 …printf("%d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", state:\"proc exit\", attributes: pri…
88 …printf("%d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", state:\"exit\", attributes: prio:td\…
93d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", point:\"priority change\", attributes: prio:%
98d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", point:\"lend prio\", attributes: prio:%d, new…
103d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", state:\"runq add\", attributes: prio:%d, link…
104d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", point:\"wokeup\", attributes: linkedto:\"%s/%…
109d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", state:\"runq rem\", attributes: prio:%d, link…
114d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", point:\"statclock\", attributes: prio:%d, sta…
120 …printf("%d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", state:\"idle\", attributes: prio:%d\…
124 / (curthread->td_flags & TDF_IDLETD) == 0 /
126 …printf("%d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", state:\"%s\", attributes: prio:%d, w…
131 …printf("%d %d KTRGRAPH group:\"thread\", id:\"%s/%s tid %d\", state:\"running\", attributes: prio:…