BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] Add BPF-helper for accessing CLOCK_TAI
@ 2022-08-09  6:08 Kurt Kanzenbach
  2022-08-09  6:08 ` [PATCH bpf-next v2 1/2] bpf: " Kurt Kanzenbach
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kurt Kanzenbach @ 2022-08-09  6:08 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
  Cc: Martin KaFai Lau, Song Liu, Yonghong Song, John Fastabend,
	KP Singh, Joanne Koong, Jiri Olsa, Dave Marchevsky,
	Lorenzo Bianconi, Geliang Tang, Jakub Sitnicki, netdev, bpf,
	Thomas Gleixner, Maciej Fijalkowski, Jesper Dangaard Brouer,
	Kurt Kanzenbach

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

-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-09 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-09  6:08 [PATCH bpf-next v2 0/2] Add BPF-helper for accessing CLOCK_TAI Kurt Kanzenbach
2022-08-09  6:08 ` [PATCH bpf-next v2 1/2] bpf: " Kurt Kanzenbach
2022-08-09  6:08 ` [PATCH bpf-next v2 2/2] selftests/bpf: Add BPF-helper test for CLOCK_TAI access Kurt Kanzenbach
2022-08-09 17:00 ` [PATCH bpf-next v2 0/2] Add BPF-helper for accessing CLOCK_TAI patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox