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

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dnetcnt.c13 union percpu_net_cnt *percpu_netcnt = NULL; local
29 percpu_netcnt = malloc(sizeof(*percpu_netcnt) * nproc);
30 if (!ASSERT_OK_PTR(percpu_netcnt, "malloc(percpu_netcnt)"))
52 percpu_map_fd = bpf_map__fd(skel->maps.percpu_netcnt);
53 if (!ASSERT_OK(bpf_map_lookup_elem(percpu_map_fd, &key, &percpu_netcnt[0]),
54 "bpf_map_lookup_elem(percpu_netcnt)"))
63 ASSERT_LE(percpu_netcnt[cpu].packets, MAX_PERCPU_PACKETS, "MAX_PERCPU_PACKETS");
65 packets += percpu_netcnt[cp
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dnetcnt_prog.c17 } percpu_netcnt SEC(".maps");
34 percpu_cnt = bpf_get_local_storage(&percpu_netcnt, 0);

Completed in 128 milliseconds