Home
last modified time | relevance | path

Searched refs:map_file (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/kernel/bpf/
Darraymap.c525 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_array_map_update_elem() argument
539 new_ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_array_map_update_elem()
569 struct file *map_file, int fd) in prog_fd_array_get_ptr() argument
643 struct file *map_file) in bpf_event_entry_gen() argument
651 ee->map_file = map_file; in bpf_event_entry_gen()
672 struct file *map_file, int fd) in perf_event_fd_array_get_ptr() argument
688 ee = bpf_event_entry_gen(perf_file, map_file); in perf_event_fd_array_get_ptr()
703 struct file *map_file) in perf_event_fd_array_release() argument
712 if (ee && ee->map_file == map_file) in perf_event_fd_array_release()
733 struct file *map_file /* not used */, in cgroup_fd_array_get_ptr() argument
Dmap_in_map.h16 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
Dmap_in_map.c89 struct file *map_file /* not used */, in bpf_map_fd_get_ptr() argument
Dhashtab.c1433 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file, in bpf_fd_htab_map_update_elem() argument
1440 ptr = map->ops->map_fd_get_ptr(map, map_file, ufd); in bpf_fd_htab_map_update_elem()
/Linux-v5.4/include/linux/
Dbpf.h35 void (*map_release)(struct bpf_map *map, struct file *map_file);
50 void *(*map_fd_get_ptr)(struct bpf_map *map, struct file *map_file,
479 struct file *map_file; member
684 int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file,
687 int bpf_fd_htab_map_update_elem(struct bpf_map *map, struct file *map_file,
/Linux-v5.4/scripts/
Dinsert-sys-cert.c201 static void *map_file(char *file_name, int *size) in map_file() function
314 hdr = map_file(vmlinux_file, &vmlinux_size); in main()
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_offload.py604 def check_dev_info_removed(prog_file=None, map_file=None): argument
613 ret, err = bpftool("map show pin %s" % (map_file), fail=False)
619 def check_dev_info(other_ns, ns, prog_file=None, map_file=None, removed=False): argument
1176 map_file, _ = pin_map("/sys/fs/bpf/tmp_map", idx=1, expected=2) variable
1180 check_dev_info_removed(prog_file=prog_file, map_file=map_file)