Searched refs:percpu_map_fd (Results 1 – 2 of 2) sorted by relevance
/external/linux-kselftest/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() 113 if (bpf_map_update_elem(percpu_map_fd, &key, percpu_value, 0)) { in main() 162 if (bpf_map_lookup_elem(percpu_map_fd, &key, percpu_value)) { in main()
|
D | test_netcnt.c | 38 int map_fd, percpu_map_fd; in main() local 101 percpu_map_fd = bpf_find_map(__func__, obj, "percpu_netcnt"); in main() 102 if (percpu_map_fd < 0) { in main() 117 if (bpf_map_lookup_elem(percpu_map_fd, &key, &percpu_netcnt[0])) { in main()
|