Lines Matching refs:probe
172 * Hot patch switches back and forth the probe points between NOP and RET.
173 * The active argument indicates whether the probe point will turn on or off.
174 * on == plant a NOP and thus fall through to the probe call
175 * off == plant a RET and thus avoid the probe call completely
176 * The lsap_probe identifies which probe we will patch.
187 * multiple patch points per probe.
210 lockstat_probe_wrapper(int probe, uintptr_t lp, int rwflag)
213 id = lockstat_probemap[probe];
231 lockstat_probe_t *probe = parg;
233 ASSERT(!lockstat_probemap[probe->lsp_probe]);
235 lockstat_probemap[probe->lsp_probe] = id;
238 lockstat_hot_patch(TRUE, probe->lsp_probe);
250 lockstat_probe_t *probe = parg;
253 ASSERT(lockstat_probemap[probe->lsp_probe]);
255 lockstat_probemap[probe->lsp_probe] = 0;
256 lockstat_hot_patch(FALSE, probe->lsp_probe);
265 * This probe is still enabled. We don't need to deal
284 lockstat_probe_t *probe = &lockstat_probes[i];
287 probe->lsp_func, probe->lsp_name) != 0)
290 ASSERT(!probe->lsp_id);
291 probe->lsp_id = dtrace_probe_create(lockstat_id,
292 "mach_kernel", probe->lsp_func, probe->lsp_name,
293 LOCKSTAT_AFRAMES, probe);
304 lockstat_probe_t *probe = parg;
306 ASSERT(!lockstat_probemap[probe->lsp_probe]);
307 probe->lsp_id = 0;