Lines Matching refs:prof

149 	profile_probe_t *prof = pcpu->profc_probe;  in profile_fire()  local
160 dtrace_probe(prof->prof_id, saved_state64(kern_regs)->isf.rip, 0x0, late, 0, 0); in profile_fire()
168 dtrace_probe(prof->prof_id, 0xcafebabe, in profile_fire()
173 dtrace_probe(prof->prof_id, 0x0, regs->isf.rip, late, 0, 0); in profile_fire()
177 dtrace_probe(prof->prof_id, 0x0, regs->eip, late, 0, 0); in profile_fire()
191 dtrace_probe(prof->prof_id, pc, 0x0, late, 0, 0); in profile_fire()
198 …dtrace_probe(prof->prof_id, 0xcafebabe, 0x0, late, 0, 0); /* XXX_BOGUS also see profile_usermode()… in profile_fire()
200 dtrace_probe(prof->prof_id, 0x0, get_saved_state_pc(arm_user_regs), late, 0, 0); in profile_fire()
212 profile_probe_t *prof = arg; in profile_tick() local
219 dtrace_probe(prof->prof_id, saved_state64(kern_regs)->isf.rip, 0x0, 0, 0, 0); in profile_tick()
227 dtrace_probe(prof->prof_id, 0xcafebabe, in profile_tick()
232 dtrace_probe(prof->prof_id, 0x0, regs->isf.rip, 0, 0, 0); in profile_tick()
236 dtrace_probe(prof->prof_id, 0x0, regs->eip, 0, 0, 0); in profile_tick()
247 dtrace_probe(prof->prof_id, pc, 0x0, 0, 0, 0); in profile_tick()
254 …dtrace_probe(prof->prof_id, 0xcafebabe, 0x0, 0, 0, 0); /* XXX_BOGUS also see profile_usermode() be… in profile_tick()
256 dtrace_probe(prof->prof_id, 0x0, get_saved_state_pc(arm_user_regs), 0, 0, 0); in profile_tick()
269 profile_probe_t *prof; in profile_create() local
286 prof = kmem_zalloc(sizeof(profile_probe_t), KM_SLEEP); in profile_create()
288 prof = kmem_zalloc(sizeof(profile_probe_t) + NCPU * sizeof(profile_probe_percpu_t), KM_SLEEP); in profile_create()
291 (void) strlcpy(prof->prof_name, name, sizeof(prof->prof_name)); in profile_create()
292 prof->prof_interval = interval; in profile_create()
293 prof->prof_cyclic = CYCLIC_NONE; in profile_create()
294 prof->prof_kind = kind; in profile_create()
295 prof->prof_id = dtrace_probe_create(profile_id, in profile_create()
297 profile_aframes ? profile_aframes : PROF_ARTIFICIAL_FRAMES, prof); in profile_create()
449 profile_probe_t *prof = parg; in profile_destroy() local
451 ASSERT(prof->prof_cyclic == CYCLIC_NONE); in profile_destroy()
453 if (prof->prof_kind == PROF_TICK) { in profile_destroy()
454 kmem_free(prof, sizeof(profile_probe_t)); in profile_destroy()
456 kmem_free(prof, sizeof(profile_probe_t) + NCPU * sizeof(profile_probe_percpu_t)); in profile_destroy()
468 profile_probe_t *prof = arg; in profile_online() local
471 pcpu = ((profile_probe_percpu_t *)(&(prof[1]))) + cpu_number(); in profile_online()
472 pcpu->profc_probe = prof; in profile_online()
478 when->cyt_interval = prof->prof_interval; in profile_online()
500 profile_probe_t *prof = parg; in profile_enable() local
505 ASSERT(prof->prof_interval != 0); in profile_enable()
508 if (prof->prof_kind == PROF_TICK) { in profile_enable()
510 hdlr.cyh_arg = prof; in profile_enable()
513 when.cyt_interval = prof->prof_interval; in profile_enable()
520 ASSERT(prof->prof_kind == PROF_PROFILE); in profile_enable()
523 omni.cyo_arg = prof; in profile_enable()
526 if (prof->prof_kind == PROF_TICK) { in profile_enable()
527 prof->prof_cyclic = cyclic_timer_add(&hdlr, &when); in profile_enable()
529 …prof->prof_cyclic = (cyclic_id_t)cyclic_add_omni(&omni); /* cast puns cyclic_id_list_t with cyclic… in profile_enable()
539 profile_probe_t *prof = parg; in profile_disable() local
541 ASSERT(prof->prof_cyclic != CYCLIC_NONE); in profile_disable()
545 if (prof->prof_kind == PROF_TICK) { in profile_disable()
546 cyclic_timer_remove(prof->prof_cyclic); in profile_disable()
548 …cyclic_remove_omni((cyclic_id_list_t)prof->prof_cyclic); /* cast puns cyclic_id_list_t with cyclic… in profile_disable()
550 prof->prof_cyclic = CYCLIC_NONE; in profile_disable()
570 profile_probe_t *prof = parg; in profile_getargdesc() local
580 if (prof->prof_kind == PROF_PROFILE) { in profile_getargdesc()