--- zzzz-none-000/linux-4.9.279/mm/slab.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/mm/slab.h 2023-02-08 11:43:43.000000000 +0000 @@ -454,6 +454,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];