函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\debugobjects.c Create Date:2022-07-27 07:52:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Called after the kmem_caches are functional to setup a dedicated* cache pool, which has the SLAB_DEBUG_OBJECTS flag set. This flag* prevents that the debug code is called on kmem_cache_free() for the* debug tracker objects to avoid recursive calls.

函数原型:void __init debug_objects_mem_init(void)

返回类型:void

参数:

1357  如果非debug_objects_enabled则返回
1366  遍历可用CPU(cpu)
1367  INIT_HLIST_HEAD( & per_cpu(free_objs, cpu))
1369  obj_cache等于创建高速缓存区
1374  如果非obj_cacheConvert the statically allocated objects to dynamic ones:
1375  debug_objects_enabled等于0
1376  删除高速缓存区
1377  打印警告信息("out of memory.\n")
1378  否则debug_objects_selftest()
1385  extras等于num_possible_cpus()乘ODEBUG_BATCH_SIZE
1386  debug_objects_pool_size加等于extras
1387  debug_objects_pool_min_level加等于extras