Searched refs:test_alloc (Results 1 - 3 of 3) sorted by relevance
/kernel/linux/linux-6.6/mm/kfence/ |
H A D | kfence_test.c | 244 static void *test_alloc(struct kunit *test, size_t size, gfp_t gfp, enum allocation_policy policy) in test_alloc() function 339 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_out_of_bounds_read() 345 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT); in test_out_of_bounds_read() 363 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_out_of_bounds_write() 380 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_use_after_free_read() 395 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_double_free() 411 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_invalid_addr_free() 431 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_corruption() 437 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT); in test_corruption() 465 buf = test_alloc(tes in test_kmalloc_aligned_oob_read() [all...] |
/kernel/linux/linux-5.10/tools/testing/nvdimm/test/ |
H A D | nfit.c | 1651 static void *test_alloc(struct nfit_test *t, size_t size, dma_addr_t *dma) in test_alloc() function 1888 t->nfit_buf = test_alloc(t, nfit_size, &t->nfit_dma); in nfit_test0_alloc() 1893 t->spa_set[0] = test_alloc(t, SPA0_SIZE, &t->spa_set_dma[0]); in nfit_test0_alloc() 1897 t->spa_set[1] = test_alloc(t, SPA1_SIZE, &t->spa_set_dma[1]); in nfit_test0_alloc() 1901 t->spa_set[2] = test_alloc(t, SPA0_SIZE, &t->spa_set_dma[2]); in nfit_test0_alloc() 1906 t->dimm[i] = test_alloc(t, DIMM_SIZE, &t->dimm_dma[i]); in nfit_test0_alloc() 1910 t->label[i] = test_alloc(t, LABEL_SIZE, &t->label_dma[i]); in nfit_test0_alloc() 1915 t->flush[i] = test_alloc(t, max(PAGE_SIZE, in nfit_test0_alloc() 1923 t->dcr[i] = test_alloc(t, LABEL_SIZE, &t->dcr_dma[i]); in nfit_test0_alloc() 1928 t->_fit = test_alloc( in nfit_test0_alloc() [all...] |
/kernel/linux/linux-6.6/tools/testing/nvdimm/test/ |
H A D | nfit.c | 1648 static void *test_alloc(struct nfit_test *t, size_t size, dma_addr_t *dma) in test_alloc() function 1892 t->nfit_buf = test_alloc(t, nfit_size, &t->nfit_dma); in nfit_test0_alloc() 1897 t->spa_set[0] = test_alloc(t, SPA0_SIZE, &t->spa_set_dma[0]); in nfit_test0_alloc() 1901 t->spa_set[1] = test_alloc(t, SPA1_SIZE, &t->spa_set_dma[1]); in nfit_test0_alloc() 1905 t->spa_set[2] = test_alloc(t, SPA0_SIZE, &t->spa_set_dma[2]); in nfit_test0_alloc() 1910 t->dimm[i] = test_alloc(t, DIMM_SIZE, &t->dimm_dma[i]); in nfit_test0_alloc() 1914 t->label[i] = test_alloc(t, LABEL_SIZE, &t->label_dma[i]); in nfit_test0_alloc() 1919 t->flush[i] = test_alloc(t, max(PAGE_SIZE, in nfit_test0_alloc() 1927 t->dcr[i] = test_alloc(t, LABEL_SIZE, &t->dcr_dma[i]); in nfit_test0_alloc() 1932 t->_fit = test_alloc( in nfit_test0_alloc() [all...] |
Completed in 7 milliseconds