Function report |
Source Code:lib\test_overflow.c |
Create Date:2022-07-28 06:31:09 |
Last Modify:2022-05-18 10:03:51 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Allocator uses a trailing node argument --------+ (e.g. kmalloc_node())* Allocator uses the gfp_t argument -----------+ | (e.g. kmalloc())* Allocator uses a special leading argument + | | (e.g. devm_kmalloc())* | | |
Proto:static int __attribute__((__section__(".init.text"))) __attribute__((__cold__))test_vzalloc(void *arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | arg |
553 | a = 5 * 4096 |
553 | b = ~0 / 5 * 4096 + 1 |
553 | If Not ptr Then |
553 | printk("\0014"KBUILD_MODNAME": vzalloc failed regular allocation?!\n", ) |
553 | Return 1 |
553 | Do |
553 | When 0 cycle |
553 | If Not ptr Then |
553 | printk("\0014"KBUILD_MODNAME": vzalloc unexpectedly failed bad wrapping?!\n", ) |
553 | Return 1 |
553 | Do |
553 | When 0 cycle |
553 | If ptr Then |
553 | printk("\0014"KBUILD_MODNAME": vzalloc missed saturation!\n", ) |
553 | Do |
553 | When 0 cycle |
553 | Return 1 |
553 | printk("\0016"KBUILD_MODNAME": vzalloc detected saturation\n", ) |
553 | Return 0 |
Name | Describe |
---|---|
test_overflow_allocation | Allocator uses a trailing node argument --------+ (e.g. kmalloc_node())* Allocator uses the gfp_t argument -----------+ | (e.g. kmalloc())* Allocator uses a special leading argument + | | (e.g. devm_kmalloc())* | | | |
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 |