Hi, add a BPF-helper for accessing CLOCK_TAI. Use cases for such a BPF helper include functionalities such as Tx launch time (e.g. ETF and TAPRIO Qdiscs), timestamping and policing. Patch #1 - Introduce BPF helper Patch #2 - Add test case (skb based) Changes since v1: * Update changelog (Alexei Starovoitov) * Add test case (Alexei Starovoitov, Andrii Nakryiko) * Add missing function prototype (netdev ci) Previous versions: * v1: https://lore.kernel.org/r/20220606103734.92423-1-kurt@xxxxxxxxxxxxx/ Jesper Dangaard Brouer (1): bpf: Add BPF-helper for accessing CLOCK_TAI Kurt Kanzenbach (1): selftests/bpf: Add BPF-helper test for CLOCK_TAI access include/linux/bpf.h | 1 + include/uapi/linux/bpf.h | 13 ++++ kernel/bpf/core.c | 1 + kernel/bpf/helpers.c | 14 ++++ tools/include/uapi/linux/bpf.h | 13 ++++ .../selftests/bpf/prog_tests/time_tai.c | 74 +++++++++++++++++++ .../selftests/bpf/progs/test_time_tai.c | 24 ++++++ 7 files changed, 140 insertions(+) create mode 100644 tools/testing/selftests/bpf/prog_tests/time_tai.c create mode 100644 tools/testing/selftests/bpf/progs/test_time_tai.c -- 2.30.2