slab: Properly account for allocs from slabs
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 1 Aug 2017 20:03:20 +0000 (16:03 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 14 Aug 2017 21:02:19 +0000 (17:02 -0400)
commitd0db00caa73f8a014e7599fbb46fceb02d86859a
treebc67f98f6c09c9931fd99153f297d5eb7b2b0953
parent147cb3c0a299f5ab1a3be5bf6e5467b7d39cb07a
slab: Properly account for allocs from slabs

Previously, we only counted the magazine allocations.  However, all of the
magazines are built from direct slab allocations, which we weren't
counting.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/mem.c
kern/include/slab.h
kern/src/slab.c