Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/ !
H A Dcgroup_hierarchical_stats.c70 struct percpu_attach_counter *pcpu_counter = bpf_map_lookup_elem( in BPF_PROG() local
74 if (pcpu_counter) in BPF_PROG()
75 pcpu_counter->state += 1; in BPF_PROG()
86 struct percpu_attach_counter *pcpu_counter; in BPF_PROG() local
94 pcpu_counter = bpf_map_lookup_percpu_elem(&percpu_attach_counters, in BPF_PROG()
96 if (pcpu_counter) { in BPF_PROG()
97 state = pcpu_counter->state; in BPF_PROG()
98 delta += state - pcpu_counter->prev; in BPF_PROG()
99 pcpu_counter->prev = state; in BPF_PROG()