/third_party/libbpf/src/ |
D | ringbuf.c | 32 int map_fd; member 50 int map_fd; member 73 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add() argument 86 err = bpf_obj_get_info_by_fd(map_fd, &info, &len); in ring_buffer__add() 90 map_fd, err); in ring_buffer__add() 96 map_fd); in ring_buffer__add() 113 r->map_fd = map_fd; in ring_buffer__add() 119 tmp = mmap(NULL, rb->page_size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0); in ring_buffer__add() 123 map_fd, err); in ring_buffer__add() 137 tmp = mmap(NULL, (size_t)mmap_sz, PROT_READ, MAP_SHARED, map_fd, rb->page_size); in ring_buffer__add() [all …]
|
D | skel_internal.h | 39 int map_fd; member 246 attr.map_fd = fd; in skel_map_update_elem() 260 attr.map_fd = fd; in skel_map_delete_elem() 313 int map_fd = -1, prog_fd = -1, key = 0, err; in bpf_load_and_run() local 316 err = map_fd = skel_map_create(BPF_MAP_TYPE_ARRAY, "__loader.map", 4, opts->data_sz, 1); in bpf_load_and_run() 317 if (map_fd < 0) { in bpf_load_and_run() 323 err = skel_map_update_elem(map_fd, &key, opts->data, 0); in bpf_load_and_run() 336 attr.fd_array = (long) &map_fd; in bpf_load_and_run() 367 if (map_fd >= 0) in bpf_load_and_run() 368 close(map_fd); in bpf_load_and_run()
|
D | bpf.c | 389 attr.map_fd = fd; in bpf_map_update_elem() 405 attr.map_fd = fd; in bpf_map_lookup_elem() 420 attr.map_fd = fd; in bpf_map_lookup_elem_flags() 436 attr.map_fd = fd; in bpf_map_lookup_and_delete_elem() 451 attr.map_fd = fd; in bpf_map_lookup_and_delete_elem_flags() 467 attr.map_fd = fd; in bpf_map_delete_elem() 481 attr.map_fd = fd; in bpf_map_delete_elem_flags() 496 attr.map_fd = fd; in bpf_map_get_next_key() 506 const size_t attr_sz = offsetofend(union bpf_attr, map_fd); in bpf_map_freeze() 511 attr.map_fd = fd; in bpf_map_freeze() [all …]
|
D | libbpf.h | 1027 ring_buffer__new(int map_fd, ring_buffer_sample_fn sample_cb, void *ctx, 1030 LIBBPF_API int ring_buffer__add(struct ring_buffer *rb, int map_fd, 1051 user_ring_buffer__new(int map_fd, const struct user_ring_buffer_opts *opts); 1168 perf_buffer__new(int map_fd, size_t page_cnt, 1202 perf_buffer__new_raw(int map_fd, size_t page_cnt, struct perf_event_attr *attr,
|
D | gen_loader.c | 392 offsetof(struct bpf_map_desc, map_fd), 4, in bpf_gen__finish() 1069 move_blob2blob(gen, attr_field(map_update_attr, map_fd), 4, in bpf_gen__map_update_elem() 1093 move_blob2blob(gen, attr_field(map_update_attr, map_fd), 4, in bpf_gen__populate_outer_map() 1108 int attr_size = offsetofend(union bpf_attr, map_fd); in bpf_gen__map_freeze() 1115 move_blob2blob(gen, attr_field(map_freeze_attr, map_fd), 4, in bpf_gen__map_freeze()
|
D | bpf.h | 428 LIBBPF_API int bpf_prog_bind_map(int prog_fd, int map_fd,
|
D | libbpf.c | 5264 static bool map_is_reuse_compat(const struct bpf_map *map, int map_fd) argument 5272 err = bpf_obj_get_info_by_fd(map_fd, &map_info, &map_info_len); 5274 err = bpf_get_map_info_from_fdinfo(map_fd, &map_info); 5276 pr_warn("failed to get map info for map FD %d: %s\n", map_fd, 12065 int map_fd; /* BPF_MAP_TYPE_PERF_EVENT_ARRAY BPF map FD */ member 12097 bpf_map_delete_elem(pb->map_fd, &cpu_buf->map_key); 12158 static struct perf_buffer *__perf_buffer__new(int map_fd, size_t page_cnt, 12161 struct perf_buffer *perf_buffer__new(int map_fd, size_t page_cnt, argument 12187 return libbpf_ptr(__perf_buffer__new(map_fd, page_cnt, &p)); 12190 struct perf_buffer *perf_buffer__new_raw(int map_fd, size_t page_cnt, argument [all …]
|
/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_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_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_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.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_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_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/libbpf/include/uapi/linux/ |
D | bpf.h | 100 __u32 map_fd; member 1340 __u32 map_fd; member 1361 __u32 map_fd; member 1569 __u32 map_fd; member
|
/third_party/ltp/include/lapi/ |
D | bpf.h | 196 uint32_t map_fd; member
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 25372 __u32 map_fd; member 25386 __u32 map_fd; member 25531 __u32 map_fd; member 35790 __u32 map_fd; member
|
/third_party/libabigail/tests/data/test-diff-filter/ |
D | test-PR27569-v1.abi | 55492 …<var-decl name="map_fd" type-id="3f1a6b60" visibility="default" filepath="include/uapi/linux/bpf.h…
|
D | test-PR27569-v0.abi | 55463 …<var-decl name="map_fd" type-id="3f1a6b60" visibility="default" filepath="include/uapi/linux/bpf.h…
|