--- zzzz-none-000/linux-5.15.111/mm/slab.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/mm/slab.h 2024-02-07 10:23:29.000000000 +0000 @@ -560,6 +560,24 @@ }; +#if defined(CONFIG_DEBUG_SLAB_AVM_LITE) +struct _slab_avm_top_entry { + unsigned long caller; + unsigned int count; + unsigned long long sum_time; +}; +struct _slab_avm_enh_toplist { + struct _slab_avm_top_entry entry[96]; + unsigned int entries; + unsigned int ignored; /*--- not enough entries ---*/ + unsigned long sum_count; /*--- all caller-count + ignored ---*/ +}; +void debug_slab_avm_lite_toplist(struct _slab_avm_enh_toplist *ptoplist, const struct kmem_cache *cachep, + unsigned long tresh_jiffiesdiff); + +void slab_debug_avm_lite_on(unsigned int on); +#endif/*--- #if defined(CONFIG_DEBUG_SLAB_AVM_LITE) ---*/ + static inline struct kmem_cache_node *get_node(struct kmem_cache *s, int node) { return s->node[node];