Searched refs:lru_map_fd (Results 1 - 2 of 2) sorted by relevance
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_lru_map.c | 151 int lru_map_fd, expected_map_fd; local 160 lru_map_fd = create_map(map_type, map_flags, 2 * nr_cpus); 162 lru_map_fd = create_map(map_type, map_flags, 2); 163 assert(lru_map_fd != -1); 173 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); 178 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -EEXIST); 181 assert(bpf_map_update_elem(lru_map_fd, &key, value, -1) == -EINVAL); 187 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); 190 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_EXIST) == -ENOENT); 193 assert(!bpf_map_update_elem(lru_map_fd, 242 int lru_map_fd, expected_map_fd; local 319 int lru_map_fd, expected_map_fd; local 425 int lru_map_fd, expected_map_fd; local 488 int lru_map_fd, expected_map_fd; local 611 int lru_map_fd, expected_map_fd; local 679 int lru_map_fd, expected_map_fd; local 770 int lru_map_fd, expected_map_fd; local [all...] |
/linux-master/samples/bpf/ |
H A D | test_lru_dist.c | 273 unsigned int lru_map_fd = ((unsigned int *)data)[0]; local 284 if (!bpf_map_lookup_elem(lru_map_fd, &key, &value)) 287 if (bpf_map_update_elem(lru_map_fd, &key, &value, BPF_NOEXIST)) { 288 printf("bpf_map_update_elem(lru_map_fd, %llu): errno:%d\n", 304 close(lru_map_fd); 311 int lru_map_fd; local 317 lru_map_fd = create_map(map_type, map_flags, 320 lru_map_fd = create_map(map_type, map_flags, 322 assert(lru_map_fd != -1); 324 child_data[0] = lru_map_fd; [all...] |
Completed in 142 milliseconds