Function report |
Source Code:lib\test_stackinit.c |
Create Date:2022-07-28 06:35:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:These should be fully initialized all the time!
Proto:static __attribute__((__noinline__)) __attribute__((__section__(".init.text"))) __attribute__((__cold__)) int test_u8_zero(void)
Type:int
Parameter:Nothing
262 | sum = 0 |
262 | Do |
262 | When 0 cycle |
262 | __builtin_memset( & zero, 0x00, size of zero ) |
262 | __builtin_memset(check_buf, 0x00, size of check_buf ) |
262 | If sum Then |
262 | printk("\0013"KBUILD_MODNAME": u8_zero: leaf fill was not 0xFF!?\n", ) |
262 | Return 1 |
262 | __builtin_memset(check_buf, 0x00, size of check_buf ) |
262 | printk("\0013"KBUILD_MODNAME": u8_zero: stack fill missed target!?\n", ) |
262 | printk("\0013"KBUILD_MODNAME": u8_zero: fill %zu wide\n", fill_size) |
262 | printk("\0013"KBUILD_MODNAME": u8_zero: target offset by %d\n", (int)((ssize_t)(uintptr_t)Location and size tracking to validate fill and test are colocated. - (ssize_t)(uintptr_t)Location and size tracking to validate fill and test are colocated. )) |
262 | Return 1 |
262 | If sum == 0 Then printk("\0016"KBUILD_MODNAME": u8_zero ok\n", ) |
262 | Else printk("\0014"KBUILD_MODNAME": u8_zero FAIL (uninit bytes: %d)\n", sum) |
262 | Return sum != 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 |