Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dcgroup_hierarchical_stats.c69 struct percpu_attach_counter *pcpu_counter = bpf_map_lookup_elem( in BPF_PROG() local
73 if (pcpu_counter) in BPF_PROG()
74 pcpu_counter->state += 1; in BPF_PROG()
85 struct percpu_attach_counter *pcpu_counter; in BPF_PROG() local
93 pcpu_counter = bpf_map_lookup_percpu_elem(&percpu_attach_counters, in BPF_PROG()
95 if (pcpu_counter) { in BPF_PROG()
96 state = pcpu_counter->state; in BPF_PROG()
97 delta += state - pcpu_counter->prev; in BPF_PROG()
98 pcpu_counter->prev = state; in BPF_PROG()

Completed in 2 milliseconds