Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\debugobjects.c Create Date:2022-07-28 06:55:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void __init debug_objects_mem_init(void)

Type:void

Parameter:Nothing

1357  If Not debug_objects_enabled Then Return
1366  for_each_possible_cpu(cpu)
1367  INIT_HLIST_HEAD( & per_cpu(free_objs, cpu))
1369  obj_cache = kmem_cache_create("debug_objects_cache", sizeof(structdebug_obj), 0, SLAB_DEBUG_OBJECTS | Avoid kmemleak tracing , NULL)
1374  If Not obj_cache || Convert the statically allocated objects to dynamic ones: Then
1375  debug_objects_enabled = 0
1376  kmem_cache_destroy(obj_cache)
1377  pr_warn("out of memory.\n")
1378  Else debug_objects_selftest()
1385  extras = num_possible_cpus() * ODEBUG_BATCH_SIZE
1386  debug_objects_pool_size += extras
1387  debug_objects_pool_min_level += extras