Lines Matching refs:stat
271 lck_grp_stat_t *stat; in lockprof_enable() local
277 if ((stat = lockprof_stat(grp, probe->lockprof_kind)) == NULL) { in lockprof_enable()
285 if (stat->lgs_limit != 0) { in lockprof_enable()
289 stat->lgs_limit = probe->lockprof_limit; in lockprof_enable()
290 stat->lgs_probeid = probe->lockprof_id; in lockprof_enable()
291 lck_grp_stat_enable(stat); in lockprof_enable()
303 lck_grp_stat_t *stat; in lockprof_disable() local
309 if ((stat = lockprof_stat(grp, probe->lockprof_kind)) == NULL) { in lockprof_disable()
313 if (stat->lgs_limit == 0 || !lck_grp_stat_enabled(stat)) { in lockprof_disable()
317 stat->lgs_limit = 0; in lockprof_disable()
318 stat->lgs_probeid = 0; in lockprof_disable()
319 lck_grp_stat_disable(stat); in lockprof_disable()