Home
last modified time | relevance | path

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

/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dnetcnt_prog.c28 struct percpu_net_cnt *percpu_cnt; in bpf_nextcnt() local
35 percpu_cnt = bpf_get_local_storage(&percpu_netcnt, 0); in bpf_nextcnt()
37 percpu_cnt->packets++; in bpf_nextcnt()
38 percpu_cnt->bytes += skb->len; in bpf_nextcnt()
40 if (percpu_cnt->packets > MAX_PERCPU_PACKETS) { in bpf_nextcnt()
42 percpu_cnt->packets); in bpf_nextcnt()
43 percpu_cnt->packets = 0; in bpf_nextcnt()
46 percpu_cnt->bytes); in bpf_nextcnt()
47 percpu_cnt->bytes = 0; in bpf_nextcnt()
51 dt = ts - percpu_cnt->prev_ts; in bpf_nextcnt()
[all …]
/Linux-v5.10/Documentation/core-api/
Dcpu_hotplug.rst262 140: lib/percpu_cnt:online
271 To rollback CPU4 to ``lib/percpu_cnt:online`` and back online just issue: ::