--- zzzz-none-000/linux-4.9.276/include/linux/slab.h 2021-07-20 14:21:16.000000000 +0000 +++ falcon-5530-750/linux-4.9.276/include/linux/slab.h 2023-04-05 08:19:02.000000000 +0000 @@ -26,7 +26,9 @@ #define SLAB_HWCACHE_ALIGN 0x00002000UL /* Align objs on cache lines */ #define SLAB_CACHE_DMA 0x00004000UL /* Use GFP_DMA memory */ #define SLAB_STORE_USER 0x00010000UL /* DEBUG: Store the last owner for bug hunting */ +#define SLAB_STORE_USER_LITE 0x00020000UL /* AVM: need for slab_allocator usage */ #define SLAB_PANIC 0x00040000UL /* Panic if kmem_cache_create() fails */ +#define SLAB_PANIC_CORRUPTION 0x00080000UL /* Panic if alloc/free consistency check fails */ /* * SLAB_DESTROY_BY_RCU - **WARNING** READ THIS! * @@ -658,4 +660,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 */