/linux-master/include/uapi/linux/ |
H A D | bpf.h | 123 __u32 map_fd; member in struct:bpf_iter_link_info::__anon2876 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 1500 __u32 map_fd; member in struct:bpf_attr::__anon2885 1521 __u32 map_fd; member in struct:bpf_attr::__anon2887 1710 __u32 map_fd; /* struct_op member in union:bpf_attr::__anon2904::__anon2905 1815 __u32 map_fd; member in struct:bpf_attr::__anon2924 [all...] |
/linux-master/tools/include/uapi/linux/ |
H A D | bpf.h | 123 __u32 map_fd; member in struct:bpf_iter_link_info::__anon3486 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 1500 __u32 map_fd; member in struct:bpf_attr::__anon3495 1521 __u32 map_fd; member in struct:bpf_attr::__anon3497 1710 __u32 map_fd; /* struct_op member in union:bpf_attr::__anon3514::__anon3515 1815 __u32 map_fd; member in struct:bpf_attr::__anon3534 [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 | 1321 int map_fd; local 1326 map_fd = bpf_map__fd(map); 1338 t->fn(skel, family, sotype, map_fd);
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 4989 static bool map_is_reuse_compat(const struct bpf_map *map, int map_fd) argument 4997 err = bpf_map_get_info_by_fd(map_fd, &map_info, &map_info_len); 4999 err = bpf_get_map_info_from_fdinfo(map_fd, &map_info); 5001 pr_warn("failed to get map info for map FD %d: %s\n", map_fd, 5103 int err = 0, map_fd; local 5184 map_fd = map->fd; 5186 map_fd = bpf_map_create(def->type, map_name, 5190 if (map_fd < 0 && (create_attr.btf_key_type_id || create_attr.btf_value_type_id)) { 5202 map_fd = bpf_map_create(def->type, map_name, 5214 if (map_fd < 12621 bpf_program__attach_sockmap(const struct bpf_program *prog, int map_fd) argument 12857 int map_fd; member in struct:bpf_link_struct_ops 13053 int map_fd; /* BPF_MAP_TYPE_PERF_EVENT_ARRAY BPF map FD */ member in struct:perf_buffer 13149 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 13183 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 13206 __perf_buffer__new(int map_fd, size_t page_cnt, struct perf_buffer_params *p) argument 13843 int prot, map_fd = map->fd; local [all...] |
/linux-master/kernel/bpf/ |
H A D | syscall.c | 1540 int ufd = attr->map_fd; 1615 int ufd = attr->map_fd; 1672 int ufd = attr->map_fd; 1729 int ufd = attr->map_fd; 2014 int ufd = attr->map_fd; 2101 #define BPF_MAP_FREEZE_LAST_FIELD map_fd 2105 int err = 0, ufd = attr->map_fd; 5175 ufd = attr->batch.map_fd; 5586 map = bpf_map_get(attr->prog_bind_map.map_fd);
|
H A D | bpf_struct_ops.c | 1157 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 | 1904 if (!linfo->map.map_fd) 1907 map = bpf_map_get_with_uref(linfo->map.map_fd);
|
/linux-master/tools/perf/ |
H A D | builtin-trace.c | 3575 int map_fd = bpf_map__fd(map); local 3579 err = bpf_map_update_elem(map_fd, &pids[i], &value, BPF_ANY);
|