mbox series

[bpf-next,v2,0/2] Add BPF-helper for accessing CLOCK_TAI

Message ID 20220809060803.5773-1-kurt@linutronix.de (mailing list archive)
Headers show
Series Add BPF-helper for accessing CLOCK_TAI | expand

Message

Kurt Kanzenbach Aug. 9, 2022, 6:08 a.m. UTC
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@linutronix.de/

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

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 9, 2022, 5 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Tue,  9 Aug 2022 08:08:01 +0200 you wrote:
> 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)
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2,1/2] bpf: Add BPF-helper for accessing CLOCK_TAI
    https://git.kernel.org/bpf/bpf-next/c/c8996c98f703
  - [bpf-next,v2,2/2] selftests/bpf: Add BPF-helper test for CLOCK_TAI access
    https://git.kernel.org/bpf/bpf-next/c/64e15820b987

You are awesome, thank you!