selftests: txtimestamp: allow printing latencies in nsec.
authorJian Yang <jianyang@google.com>
Tue, 17 Mar 2020 19:25:06 +0000 (12:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2020 03:14:12 +0000 (20:14 -0700)
commit70a7ee96da3354a879041b20e3214d08f2a9d465
tree798886f21cf6a4186807d37a981d37dcf8d3b551
parent19882ecb55c5b6ca1e0408c8724d55a895e5d0bc
selftests: txtimestamp: allow printing latencies in nsec.

Txtimestamp reports latencies in uses resolution, while nsec is needed
in cases such as measuring latencies on localhost.

Add the following new flag:
-N: print timestamps and durations in nsec (instead of usec)

Signed-off-by: Jian Yang <jianyang@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/networking/timestamping/txtimestamp.c