Home
last modified time | relevance | path

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

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dxdping_kern.c25 __type(value, struct pinginfo);
94 struct pinginfo *pinginfo = NULL; in xdping_client() local
115 pinginfo = bpf_map_lookup_elem(&ping_map, &raddr); in xdping_client()
116 if (!pinginfo || pinginfo->seq != icmph->un.echo.sequence) in xdping_client()
119 if (pinginfo->start) { in xdping_client()
122 if (pinginfo->times[i] == 0) in xdping_client()
127 pinginfo->times[i] = recvtime - in xdping_client()
128 pinginfo->start; in xdping_client()
129 pinginfo->start = 0; in xdping_client()
133 if (i == pinginfo->count || i == XDPING_MAX_COUNT) in xdping_client()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/
Dxdping.c38 struct pinginfo pinginfo = { 0 }; in get_stats() local
47 if (bpf_map_lookup_elem(fd, &raddr, &pinginfo)) { in get_stats()
53 if (pinginfo.times[i] == 0) in get_stats()
60 (double)pinginfo.times[i]/1000000); in get_stats()
92 struct pinginfo pinginfo = { 0 }; in main() local
221 pinginfo.seq = htons(count); in main()
222 pinginfo.count = count; in main()
224 if (bpf_map_update_elem(map_fd, &raddr, &pinginfo, BPF_ANY)) { in main()
Dxdping.h7 struct pinginfo { struct