twx-linux/tools/include/uapi/linux
Jason Xing ecebb17ad8 bpf: Add BPF_SOCK_OPS_TSTAMP_SND_SW_CB callback
Support sw SCM_TSTAMP_SND case for bpf timestamping.

Add a new sock_ops callback, BPF_SOCK_OPS_TSTAMP_SND_SW_CB. This
callback will occur at the same timestamping point as the user
space's software SCM_TSTAMP_SND. The BPF program can use it to
get the same SCM_TSTAMP_SND timestamp without modifying the
user-space application.

Based on this patch, BPF program will get the software
timestamp when the driver is ready to send the skb. In the
sebsequent patch, the hardware timestamp will be supported.

Signed-off-by: Jason Xing <kerneljasonxing@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250220072940.99994-8-kerneljasonxing@gmail.com
2025-02-20 14:29:30 -08:00
..
tc_act headers: Remove some left-over license text 2022-09-27 07:48:01 -07:00
bits.h tools headers: Synchronize {uapi/}linux/bits.h with the kernel sources 2024-10-28 12:32:25 -03:00
bpf_common.h
bpf_perf_event.h
bpf.h bpf: Add BPF_SOCK_OPS_TSTAMP_SND_SW_CB callback 2025-02-20 14:29:30 -08:00
btf.h
const.h tools headers UAPI: Sync linux/const.h with the kernel headers 2024-10-17 10:34:43 -03:00
erspan.h
fadvise.h
filter.h
fs.h tools: sync uapi/linux/fs.h header into tools subdir 2024-07-12 15:52:12 -07:00
fscrypt.h tools headers UAPI: Update tools's copy of fscrypt.h header 2023-11-22 10:57:46 -08:00
hw_breakpoint.h Move bp_type_idx to include/linux/hw_breakpoint.h 2023-03-10 21:05:16 +01:00
if_link.h netkit: Allow for configuring needed_{head,tail}room 2025-01-06 09:48:49 +01:00
if_tun.h
if_xdp.h tools: Sync if_xdp.h uapi tooling header 2025-01-17 15:49:16 +01:00
in.h tools headers UAPI: Sync the linux/in.h with the kernel sources 2024-09-30 17:23:38 -03:00
io_uring.h tools headers: Grab copy of io_uring.h 2023-10-19 16:42:03 -06:00
kcmp.h
kvm.h tools headers: Sync uapi/linux/kvm.h with the kernel sources 2024-12-04 14:34:49 -08:00
memfd.h selftests/mm: fix additional build errors for selftests 2024-04-25 20:56:42 -07:00
mman.h mm: add MAP_DROPPABLE for designating always lazily freeable mappings 2024-07-19 20:22:12 +02:00
netdev.h netdev: add io_uring memory provider info 2025-02-06 16:27:30 -08:00
netlink.h
perf_event.h tools headers: Sync uapi/linux/perf_event.h with the kernel sources 2024-12-04 14:34:49 -08:00
pkt_cls.h net/sched: Remove uapi support for tcindex classifier 2024-01-02 14:25:51 +00:00
pkt_sched.h net/sched: Remove uapi support for CBQ qdisc 2024-01-02 14:25:51 +00:00
prctl.h selftests/mm: kvm, mdwe fixes to avoid requiring "make headers" 2024-07-03 19:30:07 -07:00
seccomp.h tools headers UAPI: Copy seccomp.h to be able to build 'perf bench' in older systems 2023-09-13 08:48:48 -03:00
seg6_local.h
seg6.h
stat.h tools/include: Sync filesystem headers with the kernel sources 2024-08-07 10:59:07 -07:00
stddef.h stddef: make __struct_group() UAPI C++-friendly 2024-12-20 09:05:53 -08:00
tcp.h
tls.h
types.h
userfaultfd.h selftests/mm: fix additional build errors for selftests 2024-04-25 20:56:42 -07:00