Function report |
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 activity | Download SCCT | Chinese |
Name:Convert the statically allocated objects to dynamic ones:
Proto:static int __init debug_objects_replace_static_objects(void)
Type:int
Parameter:Nothing
| 1301 | cnt = 0 |
| 1303 | When i < ODEBUG_POOL_SIZE cycle |
| 1323 | When i < ODEBUG_HASH_SIZE cycle |
| 1336 | pr_debug("%d of %d active objects replaced\n", cnt, obj_pool_used) |
| 1338 | Return 0 |
| 1339 | free : |
| 1342 | kmem_cache_free(obj_cache, obj) |
| 1344 | Return -ENOMEM |
| Name | Describe |
|---|---|
| debug_objects_mem_init | 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. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |