Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_cgroup_storage.c44 unsigned long long *percpu_value; in main() local
48 percpu_value = malloc(sizeof(*percpu_value) * nproc); in main()
49 if (!percpu_value) { in main()
100 percpu_value[cpu] = 1000; in main()
102 if (bpf_map_update_elem(percpu_map_fd, &key, percpu_value, 0)) { in main()
149 percpu_value[cpu] = 0; in main()
151 if (bpf_map_lookup_elem(percpu_map_fd, &key, percpu_value)) { in main()
158 value += percpu_value[cpu]; in main()
170 free(percpu_value); in main()