1、通过struct kmemleak_object(简称为object)描述kmalloc、vmalloc、kmem_cache_alloc等函数申请的内存块,记录申请内存的起始地址,大小、call trace等信息。同时把object加入到红黑树object_tree_root和双向链表object_list中,红黑树中的key值为内存块的起始地址。 2、遍历双向链表object_list,把所有的object的count计数...
*/int/* error */xfs_dir2_sf_to_block(xfs_da_args_t*args)/* operation arguments */{xfs_dir2_db_tblkno;/* dir-relative block # (0) */xfs_dir2_block_t*block;/* block structure */xfs_dir2_leaf_entry_t*blp;/* block leaf entries */xfs_dabuf_t*bp;/* block buffer */xfs_...
slab_kmem_cache_release(s); #endif goto out_put_cpus; out_unlock: Expand Down 30 changes: 8 additions & 22 deletions30mm/slub.c Original file line numberDiff line numberDiff line change Expand Up@@ -210,14 +210,11 @@ enum track_item { TRACK_ALLOC, TRACK_FREE }; ...
allocsz;boolean_tis_dir;smb_streaminfo_t*sinfo, *sinfo_next;intrc =0;boolean_tdone = B_FALSE;boolean_teos = B_FALSE;uint16_todid;smb_odir_t*od =NULL;smb_node_t*fnode = qinfo->qi_node;smb_attr_t*attr = &qinfo->qi_attr; ...
PANIC general protection fault RIP:kmem_cache_alloc+117frommempool_alloc_slab Resolution Performance will be impacted by the sanity checks and there will be a continual stream of error messages to the syslog but no additional memory will be used (unlike full debugging). For more information please...
1、通过struct kmemleak_object(简称为object)描述kmalloc、vmalloc、kmem_cache_alloc等函数申请的内存块,记录申请内存的起始地址,大小、call trace等信息。同时把object加入到红黑树object_tree_root和双向链表object_list中,红黑树中的key值为内存块的起始地址。 2、遍历双向链表object_list,把所有的object的count计数...