selftests/bpf: Add BPF-helper test for CLOCK_TAI access
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 9 Aug 2022 06:08:03 +0000 (08:08 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Aug 2022 16:47:13 +0000 (09:47 -0700)
commit64e15820b987cc8e5864a8b907dfc17861e6ab5a
tree50f2f527d2b291be74a67b6f1ae6c03166838e37
parentc8996c98f703b09afe77a1d247dae691c9849dc1
selftests/bpf: Add BPF-helper test for CLOCK_TAI access

Add BPF-helper test case for CLOCK_TAI access. The added test verifies that:

 * Timestamps are generated
 * Timestamps are moving forward
 * Timestamps are reasonable

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Link: https://lore.kernel.org/r/20220809060803.5773-3-kurt@linutronix.de
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/time_tai.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_time_tai.c [new file with mode: 0644]