Lines Matching refs:sysnum

123 	int sysnum = SYSTRACE_SYSNUM((uintptr_t)parg);  in systrace_destroy()  local
130 ASSERT(systrace_sysent[sysnum].stsy_entry == DTRACE_IDNONE); in systrace_destroy()
132 ASSERT(systrace_sysent32[sysnum].stsy_entry == DTRACE_IDNONE); in systrace_destroy()
135 ASSERT(systrace_sysent[sysnum].stsy_return == DTRACE_IDNONE); in systrace_destroy()
137 ASSERT(systrace_sysent32[sysnum].stsy_return == DTRACE_IDNONE); in systrace_destroy()
146 int sysnum = SYSTRACE_SYSNUM((uintptr_t)parg); in systrace_enable() local
147 int enabled = (systrace_sysent[sysnum].stsy_entry != DTRACE_IDNONE || in systrace_enable()
148 systrace_sysent[sysnum].stsy_return != DTRACE_IDNONE); in systrace_enable()
151 systrace_sysent[sysnum].stsy_entry = id; in systrace_enable()
153 systrace_sysent32[sysnum].stsy_entry = id; in systrace_enable()
156 systrace_sysent[sysnum].stsy_return = id; in systrace_enable()
158 systrace_sysent32[sysnum].stsy_return = id; in systrace_enable()
163 ASSERT(sysent[sysnum].sy_callc == dtrace_systrace_syscall); in systrace_enable()
167 (void) atomic_cas_ptr(&sysent[sysnum].sy_callc, in systrace_enable()
168 (void *)systrace_sysent[sysnum].stsy_underlying, in systrace_enable()
171 (void) atomic_cas_ptr(&sysent32[sysnum].sy_callc, in systrace_enable()
172 (void *)systrace_sysent32[sysnum].stsy_underlying, in systrace_enable()
182 int sysnum = SYSTRACE_SYSNUM((uintptr_t)parg); in systrace_disable() local
183 int disable = (systrace_sysent[sysnum].stsy_entry == DTRACE_IDNONE || in systrace_disable()
184 systrace_sysent[sysnum].stsy_return == DTRACE_IDNONE); in systrace_disable()
187 (void) atomic_cas_ptr(&sysent[sysnum].sy_callc, in systrace_disable()
189 (void *)systrace_sysent[sysnum].stsy_underlying); in systrace_disable()
192 (void) atomic_cas_ptr(&sysent32[sysnum].sy_callc, in systrace_disable()
194 (void *)systrace_sysent32[sysnum].stsy_underlying); in systrace_disable()
199 systrace_sysent[sysnum].stsy_entry = DTRACE_IDNONE; in systrace_disable()
201 systrace_sysent32[sysnum].stsy_entry = DTRACE_IDNONE; in systrace_disable()
204 systrace_sysent[sysnum].stsy_return = DTRACE_IDNONE; in systrace_disable()
206 systrace_sysent32[sysnum].stsy_return = DTRACE_IDNONE; in systrace_disable()