Searched refs:percpu_netcnt (Results 1 – 2 of 2) sorted by relevance
36 struct percpu_net_cnt *percpu_netcnt; in main() local49 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()
17 } percpu_netcnt SEC(".maps");35 percpu_cnt = bpf_get_local_storage(&percpu_netcnt, 0); in bpf_nextcnt()