Lines Matching refs:prof
198 profile_probe_t *prof = pcpu->profc_probe;
205 dtrace_probe(prof->prof_id, CPU->cpu_profile_pc,
214 dtrace_probe(prof->prof_id, 0x0, sv->save_srr0, late, 0, 0);
216 dtrace_probe(prof->prof_id, sv->save_srr0, 0x0, late, 0, 0);
219 dtrace_probe(prof->prof_id, 0xcafebabe,
229 dtrace_probe(prof->prof_id, kern_regs->eip, 0x0, 0, 0, 0);
236 dtrace_probe(prof->prof_id, 0xcafebabe,
241 dtrace_probe(prof->prof_id, 0x0, regs->isf.rip, 0, 0, 0);
245 dtrace_probe(prof->prof_id, 0x0, regs->eip, 0, 0, 0);
258 profile_probe_t *prof = arg;
261 dtrace_probe(prof->prof_id, CPU->cpu_profile_pc,
270 dtrace_probe(prof->prof_id, 0x0, sv->save_srr0, 0, 0, 0);
272 dtrace_probe(prof->prof_id, sv->save_srr0, 0x0, 0, 0, 0);
275 dtrace_probe(prof->prof_id, 0xcafebabe,
285 dtrace_probe(prof->prof_id, kern_regs->eip, 0x0, 0, 0, 0);
292 dtrace_probe(prof->prof_id, 0xcafebabe,
297 dtrace_probe(prof->prof_id, 0x0, regs->isf.rip, 0, 0, 0);
301 dtrace_probe(prof->prof_id, 0x0, regs->eip, 0, 0, 0);
314 profile_probe_t *prof;
329 prof = kmem_zalloc(sizeof (profile_probe_t), KM_SLEEP);
332 prof = kmem_zalloc(sizeof (profile_probe_t), KM_SLEEP);
334 prof = kmem_zalloc(sizeof (profile_probe_t) + NCPU*sizeof(profile_probe_percpu_t), KM_SLEEP);
336 (void) strlcpy(prof->prof_name, name, sizeof(prof->prof_name));
337 prof->prof_interval = interval;
338 prof->prof_cyclic = CYCLIC_NONE;
339 prof->prof_kind = kind;
340 prof->prof_id = dtrace_probe_create(profile_id,
342 profile_aframes ? profile_aframes : PROF_ARTIFICIAL_FRAMES, prof);
485 profile_probe_t *prof = parg;
487 ASSERT(prof->prof_cyclic == CYCLIC_NONE);
489 kmem_free(prof, sizeof (profile_probe_t));
491 if (prof->prof_kind == PROF_TICK)
492 kmem_free(prof, sizeof (profile_probe_t));
494 kmem_free(prof, sizeof (profile_probe_t) + NCPU*sizeof(profile_probe_percpu_t));
505 profile_probe_t *prof = arg;
511 pcpu = ((profile_probe_percpu_t *)(&(prof[1]))) + cpu_number();
513 pcpu->profc_probe = prof;
519 when->cyt_interval = prof->prof_interval;
546 profile_probe_t *prof = parg;
551 ASSERT(prof->prof_interval != 0);
554 if (prof->prof_kind == PROF_TICK) {
556 hdlr.cyh_arg = prof;
559 when.cyt_interval = prof->prof_interval;
566 ASSERT(prof->prof_kind == PROF_PROFILE);
569 omni.cyo_arg = prof;
573 if (prof->prof_kind == PROF_TICK) {
574 prof->prof_cyclic = cyclic_add(&hdlr, &when);
576 prof->prof_cyclic = cyclic_add_omni(&omni);
579 if (prof->prof_kind == PROF_TICK) {
580 prof->prof_cyclic = cyclic_timer_add(&hdlr, &when);
582 prof->prof_cyclic = (cyclic_id_t)cyclic_add_omni(&omni); /* cast puns cyclic_id_list_t with cyclic_id_t */
591 profile_probe_t *prof = parg;
593 ASSERT(prof->prof_cyclic != CYCLIC_NONE);
597 cyclic_remove(prof->prof_cyclic);
599 if (prof->prof_kind == PROF_TICK) {
600 cyclic_timer_remove(prof->prof_cyclic);
602 cyclic_remove_omni((cyclic_id_list_t)prof->prof_cyclic); /* cast puns cyclic_id_list_t with cyclic_id_t */
605 prof->prof_cyclic = CYCLIC_NONE;