Home
last modified time | relevance | path

Searched refs:map_fd (Results 1 – 10 of 10) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lru_map.c31 int map_fd; in create_map() local
33 map_fd = bpf_create_map(map_type, sizeof(unsigned long long), in create_map()
36 if (map_fd == -1) in create_map()
39 return map_fd; in create_map()
505 static void do_test_lru_sanity5(unsigned long long last_key, int map_fd) in do_test_lru_sanity5() argument
510 assert(!bpf_map_lookup_elem(map_fd, &last_key, value)); in do_test_lru_sanity5()
515 assert(!bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST)); in do_test_lru_sanity5()
516 assert(!bpf_map_lookup_elem(map_fd, &key, value)); in do_test_lru_sanity5()
519 assert(bpf_map_lookup_elem(map_fd, &last_key, value)); in do_test_lru_sanity5()
527 int map_fd; in test_lru_sanity5() local
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_coverage_mapping_libcdep.cc99 fd_t map_fd = OpenFile(tmp_path.data(), WrOnly, &err); in CovUpdateMapping() local
100 if (map_fd == kInvalidFd) { in CovUpdateMapping()
106 if (!WriteToFile(map_fd, text.data(), text.length(), nullptr, &err)) { in CovUpdateMapping()
110 CloseFile(map_fd); in CovUpdateMapping()
/external/strace/
Dbpf.c72 uint32_t map_fd; in bpf_map_update_elem() member
88 printfd(tcp, attr.map_fd); in bpf_map_update_elem()
100 uint32_t map_fd; in bpf_map_delete_elem() member
114 printfd(tcp, attr.map_fd); in bpf_map_delete_elem()
123 uint32_t map_fd; in bpf_map_io() member
145 printfd(tcp, attr.map_fd); in bpf_map_io()
/external/iproute2/examples/bpf/
Dbpf_sys.h15 .map_fd = fd, in bpf_lookup_elem()
/external/iproute2/tc/
Dtc_bpf.c85 .map_fd = fd, in bpf_map_update()
632 int ret, prog_fd, map_fd; in bpf_graft_map() local
653 map_fd = bpf_obj_get(map_path); in bpf_graft_map()
654 if (map_fd < 0) { in bpf_graft_map()
657 ret = map_fd; in bpf_graft_map()
661 ret = bpf_map_selfcheck_pinned(map_fd, &test, in bpf_graft_map()
668 ret = bpf_map_update(map_fd, &map_key, &prog_fd, BPF_ANY); in bpf_graft_map()
672 close(map_fd); in bpf_graft_map()
/external/iproute2/include/linux/
Dbpf.h110 __u32 map_fd; member
/external/strace/tests-mx32/
Dbpf.c68 .map_fd = -1, in map_any()
/external/strace/tests/
Dbpf.c68 .map_fd = -1, in map_any()
/external/strace/tests-m32/
Dbpf.c68 .map_fd = -1, in map_any()
/external/kernel-headers/original/uapi/linux/
Dbpf.h151 __u32 map_fd; member