Lines Matching refs:stat
948 struct objcache_stats stat; in sysctl_ocstats() local
969 memset(&stat, 0, sizeof(stat)); in sysctl_ocstats()
970 strlcpy(stat.oc_name, desc->name, sizeof(stat.oc_name)); in sysctl_ocstats()
971 stat.oc_limit = desc->total_objects; in sysctl_ocstats()
982 stat.oc_requested += cache->gets_cumulative; in sysctl_ocstats()
983 stat.oc_exhausted += cache->gets_exhausted; in sysctl_ocstats()
984 stat.oc_failed += cache->gets_null; in sysctl_ocstats()
985 stat.oc_allocated += cache->allocs_cumulative; in sysctl_ocstats()
992 if (stat.oc_requested > puts) in sysctl_ocstats()
993 stat.oc_used = stat.oc_requested - puts; in sysctl_ocstats()
994 if (stat.oc_limit > unalloc + stat.oc_used) { in sysctl_ocstats()
995 stat.oc_cached = stat.oc_limit - in sysctl_ocstats()
996 (unalloc + stat.oc_used); in sysctl_ocstats()
998 stat.oc_requested += stat.oc_failed; in sysctl_ocstats()
1001 error = SYSCTL_OUT(req, &stat, sizeof(stat)); in sysctl_ocstats()