Searched refs:percpu_value (Results 1 – 1 of 1) sorted by relevance
44 unsigned long long *percpu_value; in main() local48 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()