Searched refs:TEST_SIZE (Results 1 - 4 of 4) sorted by relevance
/kernel/liteos_a/apps/lms/src/ |
H A D | sample_usr_lms.c | 53 #define TEST_SIZE 16
in LmsMallocTest() macro 55 char *buf = (char *)malloc(TEST_SIZE);
in LmsMallocTest() 59 printf("[LmsMallocTest] read overflow & underflow error should be triggered, read range[-1, TEST_SIZE]\n");
in LmsMallocTest() 60 BufReadTest(buf, -1, TEST_SIZE);
in LmsMallocTest() 61 printf("[LmsMallocTest] write overflow error should be triggered, write range[0, TEST_SIZE]\n");
in LmsMallocTest() 62 BufWriteTest(buf, 0, TEST_SIZE);
in LmsMallocTest() 70 #define TEST_SIZE 64
in LmsReallocTest() macro 73 char *buf = (char *)malloc(TEST_SIZE);
in LmsReallocTest() 74 printf("[LmsReallocTest] read overflow & underflow error should be triggered, read range[-1, TEST_SIZE]\n");
in LmsReallocTest() 75 BufReadTest(buf, -1, TEST_SIZE);
in LmsReallocTest() 90 #define TEST_SIZE LmsCallocTest() macro 104 #define TEST_SIZE LmsVallocTest() macro 119 #define TEST_SIZE LmsAlignedAllocTest() macro 133 #define TEST_SIZE LmsMemsetTest() macro 147 #define TEST_SIZE LmsMemcpyTest() macro 162 #define TEST_SIZE LmsMemmoveTest() macro 176 #define TEST_SIZE LmsStrcpyTest() macro 192 #define TEST_SIZE LmsStrcatTest() macro 212 #define TEST_SIZE LmsFreeTest() macro [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | test_overflow.c | 499 #define TEST_SIZE (5 * 4096) macro 504 volatile size_t a = TEST_SIZE; \ 505 volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \
|
H A D | random32.c | 569 * counters 32-log2(TEST_SIZE), and pure randoms, around 6 or lower. With the 570 * u32 total, TEST_SIZE may be as large as 4096 samples. 572 #define TEST_SIZE 1024 macro 580 data = kmalloc(sizeof(*data) * TEST_SIZE, GFP_KERNEL); in prandom32_state_selftest() 584 for (samples = 0; samples < TEST_SIZE; samples++) in prandom32_state_selftest()
|
/kernel/linux/linux-6.6/lib/ |
H A D | overflow_kunit.c | 560 #define TEST_SIZE (5 * 4096) macro 565 volatile size_t a = TEST_SIZE; \ 566 volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \
|
Completed in 4 milliseconds