Searched refs:percpu_map_fd (Results 1 – 3 of 3) sorted by relevance
/tools/testing/selftests/bpf/ |
D | test_cgroup_storage.c | 40 int map_fd, percpu_map_fd, prog_fd, cgroup_fd; in main() local 60 percpu_map_fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE, in main() 62 if (percpu_map_fd < 0) { in main() 67 prog[0].imm = percpu_map_fd; in main() 98 if (bpf_map_update_elem(percpu_map_fd, &key, percpu_value, 0)) { in main() 147 if (bpf_map_lookup_elem(percpu_map_fd, &key, percpu_value)) { in main()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | for_each.c | 12 int i, err, hashmap_fd, max_entries, percpu_map_fd; in test_hash_map() local 33 percpu_map_fd = bpf_map__fd(skel->maps.percpu_map); in test_hash_map() 41 err = bpf_map_update_elem(percpu_map_fd, &key, percpu_valbuf, BPF_ANY); in test_hash_map() 73 int i, arraymap_fd, percpu_map_fd, err; in test_array_map() local 97 percpu_map_fd = bpf_map__fd(skel->maps.percpu_map); in test_array_map() 105 err = bpf_map_update_elem(percpu_map_fd, &key, percpu_valbuf, BPF_ANY); in test_array_map()
|
D | netcnt.c | 15 int map_fd, percpu_map_fd; in test_netcnt() local 52 percpu_map_fd = bpf_map__fd(skel->maps.percpu_netcnt); in test_netcnt() 53 if (!ASSERT_OK(bpf_map_lookup_elem(percpu_map_fd, &key, &percpu_netcnt[0]), in test_netcnt()
|