Home | History | Annotate | Download | only in tprof

Lines Matching defs:tb_softc

99 	tprof_backend_softc_t tb_softc;
225 shouldstop = (tb == NULL || tb->tb_softc.sc_ctr_running_mask == 0);
348 runmask &= ~tb->tb_softc.sc_ctr_running_mask;
349 runmask &= tb->tb_softc.sc_ctr_configured_mask;
359 firstrun = (tb->tb_softc.sc_ctr_running_mask == 0);
362 error = tb->tb_ops->tbo_establish(&tb->tb_softc);
373 tb->tb_ops->tbo_disestablish(&tb->tb_softc);
392 runmask &= tb->tb_softc.sc_ctr_configured_mask;
396 tb->tb_softc.sc_ctr_running_mask |= runmask;
426 stopmask &= tb->tb_softc.sc_ctr_running_mask;
435 tb->tb_softc.sc_ctr_running_mask &= ~stopmask;
439 if (tb->tb_softc.sc_ctr_running_mask == 0) {
449 tb->tb_ops->tbo_disestablish(&tb->tb_softc);
462 tprof_param_t *param = &tb->tb_softc.sc_count[counter].ctr_param;
471 tprof_param_t *param = &tb->tb_softc.sc_count[counter].ctr_param;
495 sc = &tb->tb_softc;
498 if (c >= tb->tb_softc.sc_ncounters) {
510 if (ISSET(c, tb->tb_softc.sc_ctr_running_mask))
572 percpu_foreach(tb->tb_softc.sc_ctr_offset_percpu,
575 sc_param->p_value = tb->tb_softc.sc_count[c].ctr_counter_reset_val;
583 SET(tb->tb_softc.sc_ctr_configured_mask, __BIT(c));
584 CLR(tb->tb_softc.sc_ctr_prof_mask, __BIT(c));
585 CLR(tb->tb_softc.sc_ctr_ovf_mask, __BIT(c));
588 SET(tb->tb_softc.sc_ctr_prof_mask, __BIT(c));
589 SET(tb->tb_softc.sc_ctr_ovf_mask, __BIT(c));
593 SET(tb->tb_softc.sc_ctr_ovf_mask, __BIT(c));
606 tprof_backend_softc_t *sc = &tb->tb_softc;
645 counts->c_ncounters = tb->tb_softc.sc_ncounters;
646 counts->c_runningmask = tb->tb_softc.sc_ctr_running_mask;
768 tb->tb_softc.sc_ncounters = tb->tb_ops->tbo_ncounters();
769 tb->tb_softc.sc_ctr_offset_percpu_size =
770 sizeof(uint64_t) * tb->tb_softc.sc_ncounters;
771 tb->tb_softc.sc_ctr_offset_percpu =
772 percpu_alloc(tb->tb_softc.sc_ctr_offset_percpu_size);
794 if (tb->tb_softc.sc_ctr_running_mask != 0) {
806 percpu_free(tb->tb_softc.sc_ctr_offset_percpu,
807 tb->tb_softc.sc_ctr_offset_percpu_size);
850 KASSERT(tb->tb_softc.sc_ctr_running_mask == 0);
851 tb->tb_softc.sc_ctr_configured_mask = 0;
852 tb->tb_softc.sc_ctr_prof_mask = 0;
853 tb->tb_softc.sc_ctr_ovf_mask = 0;