Function report |
Source Code:lib\test_kasan.c |
Create Date:2022-07-28 06:29:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:memcg_accounted_kmem_cache
Proto:static noinline void __init memcg_accounted_kmem_cache(void)
Type:void
Parameter:Nothing
| 409 | size = 200 |
| 412 | cache = kmem_cache_create("test_cache", size, 0, SLAB_ACCOUNT, NULL) |
| 413 | If Not cache Then |
| 414 | pr_err("Cache allocation failed\n") |
| 415 | Return |
| 418 | pr_info("allocate memcg accounted object\n") |
| 424 | p = kmem_cache_alloc(cache, GFP_KERNEL) |
| 425 | If Not p Then Go to free_cache |
| 428 | kmem_cache_free(cache, p) |
| 432 | free_cache : |
| 433 | kmem_cache_destroy(cache) |
| Name | Describe |
|---|---|
| kmalloc_tests_init |
| 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 |