/linux-master/include/uapi/linux/ |
H A D | bpf.h | 123 __u32 map_fd; member in struct:bpf_iter_link_info::__anon2581 172 * by the file descriptor *map_fd*. 610 * map state of *map_fd*. Write operations from eBPF programs 650 * and value size of the map *map_fd*. The *keys* buffer must be 701 * and value size of the map *map_fd*. The *keys* buffer must be 752 * size of the map *map_fd*, that is, *key_size* * *count*. 865 * The map identified by *map_fd* is bound to the program 1498 __u32 map_fd; member in struct:bpf_attr::__anon2590 1519 __u32 map_fd; member in struct:bpf_attr::__anon2592 1706 __u32 map_fd; /* struct_op member in union:bpf_attr::__anon2609::__anon2610 1811 __u32 map_fd; member in struct:bpf_attr::__anon2629 [all...] |
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 123 __u32 map_fd; member in struct:bpf_iter_link_info::__anon3122 172 * by the file descriptor *map_fd*. 610 * map state of *map_fd*. Write operations from eBPF programs 650 * and value size of the map *map_fd*. The *keys* buffer must be 701 * and value size of the map *map_fd*. The *keys* buffer must be 752 * size of the map *map_fd*, that is, *key_size* * *count*. 865 * The map identified by *map_fd* is bound to the program 1498 __u32 map_fd; member in struct:bpf_attr::__anon3131 1519 __u32 map_fd; member in struct:bpf_attr::__anon3133 1706 __u32 map_fd; /* struct_op member in union:bpf_attr::__anon3150::__anon3151 1811 __u32 map_fd; member in struct:bpf_attr::__anon3170 [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_bonding.c | 348 int map_fd = bpf_map__fd(skeletons->xdp_redirect_multi_kern->maps.map_all); local 353 err = bpf_map_update_elem(map_fd, &ifindex, &ifindex, 0);
|
H A D | sockmap_listen.c | 1285 int map_fd; local 1290 map_fd = bpf_map__fd(map); 1302 t->fn(skel, family, sotype, map_fd);
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 4942 static bool map_is_reuse_compat(const struct bpf_map *map, int map_fd) argument 4950 err = bpf_map_get_info_by_fd(map_fd, &map_info, &map_info_len); 4952 err = bpf_get_map_info_from_fdinfo(map_fd, &map_info); 4954 pr_warn("failed to get map info for map FD %d: %s\n", map_fd, 5056 int err = 0, map_fd; local 5137 map_fd = map->fd; 5139 map_fd = bpf_map_create(def->type, map_name, 5143 if (map_fd < 0 && (create_attr.btf_key_type_id || create_attr.btf_value_type_id)) { 5155 map_fd = bpf_map_create(def->type, map_name, 5167 if (map_fd < 12682 int map_fd; member in struct:bpf_link_struct_ops 12868 int map_fd; /* BPF_MAP_TYPE_PERF_EVENT_ARRAY BPF map FD */ member in struct:perf_buffer 12964 perf_buffer__new(int map_fd, size_t page_cnt, perf_buffer_sample_fn sample_cb, perf_buffer_lost_fn lost_cb, void *ctx, const struct perf_buffer_opts *opts) argument 12998 perf_buffer__new_raw(int map_fd, size_t page_cnt, struct perf_event_attr *attr, perf_buffer_event_fn event_cb, void *ctx, const struct perf_buffer_raw_opts *opts) argument 13021 __perf_buffer__new(int map_fd, size_t page_cnt, struct perf_buffer_params *p) argument 13658 int prot, map_fd = map->fd; local [all...] |
/linux-master/kernel/bpf/ |
H A D | syscall.c | 1527 int ufd = attr->map_fd; 1602 int ufd = attr->map_fd; 1659 int ufd = attr->map_fd; 1716 int ufd = attr->map_fd; 2001 int ufd = attr->map_fd; 2088 #define BPF_MAP_FREEZE_LAST_FIELD map_fd 2092 int err = 0, ufd = attr->map_fd; 5153 ufd = attr->batch.map_fd; 5559 map = bpf_map_get(attr->prog_bind_map.map_fd);
|
H A D | bpf_struct_ops.c | 1155 map = bpf_map_get(attr->link_create.map_fd);
|
/linux-master/samples/bpf/ |
H A D | xdp_sample_user.c | 380 static int map_collect_percpu_devmap(int map_fd, struct stats_record *rec) argument 401 ret = bpf_map_lookup_batch(map_fd, init ? &batch : NULL, &batch,
|
/linux-master/net/core/ |
H A D | sock_map.c | 1673 if (!linfo->map.map_fd) 1676 map = bpf_map_get_with_uref(linfo->map.map_fd);
|
/linux-master/tools/perf/ |
H A D | builtin-trace.c | 3561 int map_fd = bpf_map__fd(map); local 3565 err = bpf_map_update_elem(map_fd, &pids[i], &value, BPF_ANY);
|