Searched refs:map_fd (Results 1 – 9 of 9) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/bpf/ |
D | bpf_prog05.c | 60 static int map_fd; variable 120 BPF_MAP_ARRAY_STX(map_fd, 0, BPF_REG_6), in load_prog() 121 BPF_MAP_ARRAY_STX(map_fd, 1, BPF_REG_7), in load_prog() 135 BPF_MAP_ARRAY_STX(map_fd, 2, BPF_REG_6), in load_prog() 136 BPF_MAP_ARRAY_STX(map_fd, 3, BPF_REG_7), in load_prog() 151 bpf_map_array_get(map_fd, key, val); in expect_reg_val() 174 map_fd = bpf_map_array_create(8); in run() 191 SAFE_CLOSE(map_fd); in run()
|
D | bpf_prog03.c | 117 int map_fd, prog_fd; in run() local 119 map_fd = bpf_map_array_create(32); in run() 122 attr->map_fd = map_fd; in run() 131 prog_fd = load_prog(map_fd); in run() 141 bpf_map_array_get(map_fd, key, val); in run() 144 SAFE_CLOSE(map_fd); in run()
|
D | bpf_prog01.c | 79 int map_fd, prog_fd; in run() local 83 map_fd = bpf_map_array_create(1); in run() 84 prog_fd = load_prog(map_fd); in run() 89 bpf_map_array_get(map_fd, &key, &val); in run() 98 SAFE_CLOSE(map_fd); in run()
|
D | bpf_prog02.c | 79 int map_fd, prog_fd; in run() local 81 map_fd = bpf_map_array_create(2); in run() 82 prog_fd = load_prog(map_fd); in run() 87 bpf_map_array_get(map_fd, key, val); in run() 97 bpf_map_array_get(map_fd, key, val); in run() 106 SAFE_CLOSE(map_fd); in run()
|
D | bpf_prog04.c | 92 int map_fd, prog_fd; in run() local 94 map_fd = bpf_map_array_create(1); in run() 95 prog_fd = load_prog(map_fd); in run() 106 SAFE_CLOSE(map_fd); in run()
|
D | bpf_common.h | 31 #define BPF_MAP_ARRAY_STX(map_fd, array_indx, reg_to_save)\ argument 32 BPF_LD_MAP_FD(BPF_REG_1, map_fd), \ 47 void bpf_map_array_get(const int map_fd,
|
D | bpf_common.c | 63 void bpf_map_array_get(const int map_fd, in bpf_map_array_get() argument 68 .map_fd = map_fd, in bpf_map_array_get() 78 map_fd, *array_indx); in bpf_map_array_get()
|
D | bpf_map01.c | 56 attr->map_fd = fd; in run() 91 attr->map_fd = fd; in run() 108 attr->map_fd = fd; in run()
|
/third_party/ltp/include/lapi/ |
D | bpf.h | 196 uint32_t map_fd; member
|