Searched refs:mapfd (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockmap_listen.c | 33 int family, int sotype, int mapfd) in test_insert_invalid() argument 40 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid() 45 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_invalid() 51 int family, int sotype, int mapfd) in test_insert_opened() argument 63 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_opened() 73 int family, int sotype, int mapfd) in test_insert_bound() argument 93 err = bpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert_bound() 101 int family, int sotype, int mapfd) in test_insert() argument 113 xbpf_map_update_elem(mapfd, &key, &value, BPF_NOEXIST); in test_insert() 118 int family, int sotype, int mapfd) in test_delete_after_insert() argument [all …]
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | prog.c | 1037 int *mapfd) in parse_attach_detach_args() argument 1053 *mapfd = 0; in parse_attach_detach_args() 1061 *mapfd = map_parse_fd(&argc, &argv); in parse_attach_detach_args() 1062 if (*mapfd < 0) in parse_attach_detach_args() 1063 return *mapfd; in parse_attach_detach_args() 1072 int mapfd; in do_attach() local 1075 &progfd, &attach_type, &mapfd); in do_attach() 1079 err = bpf_prog_attach(progfd, mapfd, attach_type, 0); in do_attach() 1094 int mapfd; in do_detach() local 1097 &progfd, &attach_type, &mapfd); in do_detach() [all …]
|