Searched refs:percpu_netcnt (Results 1 – 2 of 2) sorted by relevance
13 union percpu_net_cnt *percpu_netcnt = NULL; in serial_test_netcnt() local29 percpu_netcnt = malloc(sizeof(*percpu_netcnt) * nproc); in serial_test_netcnt()30 if (!ASSERT_OK_PTR(percpu_netcnt, "malloc(percpu_netcnt)")) in serial_test_netcnt()52 percpu_map_fd = bpf_map__fd(skel->maps.percpu_netcnt); in serial_test_netcnt()53 if (!ASSERT_OK(bpf_map_lookup_elem(percpu_map_fd, &key, &percpu_netcnt[0]), in serial_test_netcnt()63 ASSERT_LE(percpu_netcnt[cpu].packets, MAX_PERCPU_PACKETS, "MAX_PERCPU_PACKETS"); in serial_test_netcnt()65 packets += percpu_netcnt[cpu].packets; in serial_test_netcnt()66 bytes += percpu_netcnt[cpu].bytes; in serial_test_netcnt()80 free(percpu_netcnt); in serial_test_netcnt()
17 } percpu_netcnt SEC(".maps");34 percpu_cnt = bpf_get_local_storage(&percpu_netcnt, 0); in bpf_nextcnt()