slab: Add an interface for slab tracing