--- src/sys/kern/kern_objcache.c 2005/06/08 22:22:59 1.2 +++ src/sys/kern/kern_objcache.c 2005/06/09 16:53:10 1.3 @@ -322,7 +322,12 @@ retry: } if (obj == NULL) { crit_enter(); + /* + * makes debugging easier when gets_cumulative does + * not include gets_null. + */ ++cpucache->gets_null; + --cpucache->gets_cumulative; crit_exit(); } return(obj); @@ -340,8 +345,14 @@ retry: lwkt_reltoken(&ilock); goto retry; } + + /* + * Otherwise fail + */ ++cpucache->gets_null; + --cpucache->gets_cumulative; crit_exit(); + lwkt_reltoken(&ilock); return (NULL); } @@ -398,6 +409,7 @@ objcache_put(struct objcache *oc, void * #ifdef notyet /* use lazy IPI to send object to owning cluster XXX todo */ ++cpucache->puts_othercluster; + crit_exit(); return; #endif }