Lines Matching +full:512 +full:- +full:bytes

1 // SPDX-License-Identifier: GPL-2.0
20 const unsigned int data_sizes[] = {16, 32, 64, 96, 128, 192, 256, 512, 1024, 2048, 4096};
23 const unsigned int percpu_data_sizes[] = {8, 16, 32, 64, 96, 128, 192, 256, 512};
31 char data[_size - sizeof(void *)]; \
78 old = bpf_kptr_xchg(&value->data, new); in batch_alloc()
100 old = bpf_kptr_xchg(&value->data, NULL); in batch_free()
123 /* per-cpu allocator may not be able to refill in time */ in batch_percpu_alloc()
128 old = bpf_kptr_xchg(&value->data, new); in batch_percpu_alloc()
151 old = bpf_kptr_xchg(&value->data, NULL); in batch_percpu_free()
176 /* kptr doesn't support bin_data_8 which is a zero-sized array */
184 DEFINE_ARRAY_WITH_KPTR(512);
197 DEFINE_ARRAY_WITH_PERCPU_KPTR(512);
205 /* Alloc 128 16-bytes objects in batch to trigger refilling, in test_batch_alloc_free()
206 * then free 128 16-bytes objects in batch to trigger freeing. in test_batch_alloc_free()
215 CALL_BATCH_ALLOC_FREE(512, 64, 7); in test_batch_alloc_free()
229 /* Alloc 128 16-bytes objects in batch to trigger refilling, in test_free_through_map_free()
239 CALL_BATCH_ALLOC(512, 64, 7); in test_free_through_map_free()
253 /* Alloc 128 8-bytes per-cpu objects in batch to trigger refilling, in test_batch_percpu_alloc_free()
254 * then free 128 8-bytes per-cpu objects in batch to trigger freeing. in test_batch_percpu_alloc_free()
264 CALL_BATCH_PERCPU_ALLOC_FREE(512, 64, 8); in test_batch_percpu_alloc_free()
275 /* Alloc 128 8-bytes per-cpu objects in batch to trigger refilling, in test_percpu_free_through_map_free()
286 CALL_BATCH_PERCPU_ALLOC(512, 64, 8); in test_percpu_free_through_map_free()