Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_hw_metadata.c138 #define NANOSEC_PER_SEC 1000000000 /* 10^9 */ macro
150 return (__u64) t.tv_sec * NANOSEC_PER_SEC + t.tv_nsec; in gettime()
166 (double)meta->rx_timestamp / NANOSEC_PER_SEC); in verify_xdp_metadata()
174 xdp_clock, (double)xdp_clock / NANOSEC_PER_SEC, in verify_xdp_metadata()
175 (double)delta_X / NANOSEC_PER_SEC, in verify_xdp_metadata()
179 usr_clock, (double)usr_clock / NANOSEC_PER_SEC, in verify_xdp_metadata()
180 (double)delta_X2U / NANOSEC_PER_SEC, in verify_xdp_metadata()
/openbmc/linux/samples/bpf/
H A Dxdp_sample_user.c67 #define NANOSEC_PER_SEC 1000000000 /* 10^9 */ macro
202 return (__u64)t.tv_sec * NANOSEC_PER_SEC + t.tv_nsec; in gettime()
577 period_ = ((double)period / NANOSEC_PER_SEC); in calc_period()
1024 prev_time = sample_interval * NANOSEC_PER_SEC; in stats_get_devmap_xmit_multi()