Lines Matching refs:sysnum

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