--- zzzz-none-000/linux-4.19.183/include/linux/slab.h 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/include/linux/slab.h 2023-06-28 08:54:20.000000000 +0000 @@ -36,6 +36,8 @@ #define SLAB_CACHE_DMA32 ((slab_flags_t __force)0x00008000U) /* DEBUG: Store the last owner for bug hunting */ #define SLAB_STORE_USER ((slab_flags_t __force)0x00010000U) +/* AVM: need for slab_allocator usage */ +#define SLAB_STORE_USER_LITE ((slab_flags_t __force)0x00020000UL) /* Panic if kmem_cache_create() fails */ #define SLAB_PANIC ((slab_flags_t __force)0x00040000U) /* @@ -731,4 +733,11 @@ #define slab_dead_cpu NULL #endif +#if defined(CONFIG_SLUB_AVM_ALLOC_LIST) +void kmem_cache_list_all_objects(struct kmem_cache *s, void *ref, + int (*object_pointer)(void *ref, void *p)); + +unsigned int kmem_cache_active_objects(struct kmem_cache *s); +#endif + #endif /* _LINUX_SLAB_H */