Searched refs:__arena (Results 1 – 10 of 10) sorted by relevance
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_arena_alloc.h | 16 static void __arena * __arena page_frag_cur_page[NR_CPUS]; 17 static int __arena page_frag_cur_offset[NR_CPUS]; 20 static inline void __arena* bpf_alloc(unsigned int size) in bpf_alloc() 22 __u64 __arena *obj_cnt; in bpf_alloc() 24 void __arena *page = page_frag_cur_page[cpu]; in bpf_alloc() 25 int __arena *cur_offset = &page_frag_cur_offset[cpu]; in bpf_alloc() 55 static inline void bpf_free(void __arena *addr) in bpf_free() 57 __u64 __arena *obj_cnt; in bpf_free() 59 addr = (void __arena *)(((long)addr) & ~(PAGE_SIZE - 1)); in bpf_free() 65 static inline void __arena* bpf_alloc(unsigned int size) { return NULL; } in bpf_alloc() [all …]
|
H A D | bpf_arena_common.h | 16 void __arena *__mptr = (void __arena *)(ptr); \ 36 #define __arena __attribute__((address_space(1))) macro 41 #define __arena macro 47 void __arena* bpf_arena_alloc_pages(void *map, void __arena *addr, __u32 page_cnt, 49 void bpf_arena_free_pages(void *map, void __arena *ptr, __u32 page_cnt) __ksym __weak; 53 #define __arena macro 63 static inline void __arena* bpf_arena_alloc_pages(void *map, void *addr, __u32 page_cnt, in bpf_arena_alloc_pages() 68 static inline void bpf_arena_free_pages(void *map, void __arena *ptr, __u32 page_cnt) in bpf_arena_free_pages()
|
H A D | bpf_arena_list.h | 8 typedef struct arena_list_node __arena arena_list_node_t; 12 arena_list_node_t * __arena *pprev; 16 struct arena_list_node __arena *first; 18 typedef struct arena_list_head __arena arena_list_head_t; 41 pos = list_entry_safe((void __arena *)___tmp, typeof(*(pos)), member)) 45 arena_list_node_t *first = h->first, * __arena *tmp; in list_add_head() 68 arena_list_node_t * __arena *pprev = n->pprev; in __list_del() 84 #define LIST_POISON1 ((void __arena *) 0x100 + POISON_POINTER_DELTA) 85 #define LIST_POISON2 ((void __arena *) 0x122 + POISON_POINTER_DELTA)
|
H A D | bpf_arena_htab.h | 11 typedef struct htab_bucket __arena htab_bucket_t; 17 typedef struct htab __arena htab_t; 38 typedef struct hashtab_elem __arena hashtab_elem_t; 95 void __arena *buckets = bpf_arena_alloc_pages(&arena, NULL, 2, NUMA_NO_NODE, 0); in htab_init()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | arena_list.c | 29 struct arena_list_head __arena *list_head; 35 long __arena arena_sum; 36 int __arena test_val = 1; 37 struct arena_list_head __arena global_head; 54 struct elem __arena *n = bpf_alloc(sizeof(*n)); in arena_list_add() 71 struct elem __arena *n; in arena_list_del()
|
H A D | arena_htab.c | 18 void __arena *htab_for_user; 22 char __arena arr1[100000]; 29 struct htab __arena *htab; in arena_htab_llvm() 30 char __arena *arr = arr1; in arena_htab_llvm()
|
H A D | verifier_arena.c | 28 volatile int __arena *page1, *page2, *no_page, *page3; in basic_alloc1() 45 bpf_arena_free_pages(&arena, (void __arena *)page2, 1); in basic_alloc1() 67 volatile char __arena *page1, *page2, *page3, *page4; in basic_alloc2() 87 bpf_arena_free_pages(&arena, (void __arena *)page1, 2); in basic_alloc2() 109 volatile char __arena *pages; in basic_alloc3()
|
H A D | verifier_arena_large.c | 25 volatile char __arena *page1, *page2, *no_page, *page3; in big_alloc1() 26 void __arena *base; in big_alloc1() 45 bpf_arena_free_pages(&arena, (void __arena *)page1, 1); in big_alloc1() 72 __u8 __arena * __arena page[PAGE_CNT]; /* occupies the first page */ 73 __u8 __arena *base; 82 __u8 __arena *pg; 111 __u8 __arena *pg; 117 bpf_arena_free_pages(&arena, (void __arena *)base, 1); 128 bpf_arena_free_pages(&arena, (void __arena *)p [all...] |
H A D | arena_atomics.c | 213 __u32 __arena *page32; in uaf() 214 __u64 __arena *page64; in uaf() 215 void __arena *page; in uaf() 221 page32 = (__u32 __arena *)page; in uaf() 247 page64 = (__u64 __arena *)page; in uaf()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | arena_list.c | 22 struct elem __arena *n; in list_sum()
|