Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_netcnt.c36 struct percpu_net_cnt *percpu_netcnt; in main() local
49 percpu_netcnt = malloc(sizeof(*percpu_netcnt) * nproc); in main()
50 if (!percpu_netcnt) { in main()
117 if (bpf_map_lookup_elem(percpu_map_fd, &key, &percpu_netcnt[0])) { in main()
128 if (percpu_netcnt[cpu].packets > MAX_PERCPU_PACKETS) { in main()
130 percpu_netcnt[cpu].packets); in main()
134 packets += percpu_netcnt[cpu].packets; in main()
135 bytes += percpu_netcnt[cpu].bytes; in main()
157 free(percpu_netcnt); in main()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dnetcnt_prog.c17 } percpu_netcnt SEC(".maps");
35 percpu_cnt = bpf_get_local_storage(&percpu_netcnt, 0); in bpf_nextcnt()