Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
A Dnetcnt_prog.c28 union percpu_net_cnt *percpu_cnt; in bpf_nextcnt() local
36 percpu_cnt->packets++; in bpf_nextcnt()
37 percpu_cnt->bytes += skb->len; in bpf_nextcnt()
41 percpu_cnt->packets); in bpf_nextcnt()
42 percpu_cnt->packets = 0; in bpf_nextcnt()
45 percpu_cnt->bytes); in bpf_nextcnt()
46 percpu_cnt->bytes = 0; in bpf_nextcnt()
50 dt = ts - percpu_cnt->prev_ts; in bpf_nextcnt()
55 if (cnt->bytes + percpu_cnt->bytes - percpu_cnt->prev_bytes < dt) in bpf_nextcnt()
61 percpu_cnt->prev_ts = ts; in bpf_nextcnt()
[all …]

Completed in 3 milliseconds