]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0851d775b2b0f86c706199d90d204c4296f37a4
tree50f2f527d2b291be74a67b6f1ae6c03166838e37
parentd95caa8bc95a53877f33b853b9ace0a28fbe4299
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]