Function report |
Source Code:mm\kmemleak-test.c |
Create Date:2022-07-28 16:22:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Some very simple testing. This function needs to be extended for* proper testing.
Proto:static int __init kmemleak_test_init(void)
Type:int
Parameter:Nothing
40 | pr_info("Kmemleak testing\n") |
43 | pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)) |
44 | pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)) |
45 | pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)) |
46 | pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)) |
47 | pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)) |
48 | pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)) |
49 | pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)) |
50 | pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)) |
77 | per_cpu(kmemleak_test_pointer, i) = kmalloc(129, GFP_KERNEL) |
78 | pr_info("kmalloc(129) = %p\n", per_cpu(kmemleak_test_pointer, i)) |
82 | Return 0 |
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 |