History

bpf: support BPF cookie in raw tracepoint (raw_tp, tp_btf) programs

Wire up BPF cookie for raw tracepoint programs (both BTF and non-BTF aware variants). This brings them up to part w.r.t. BPF cookie usage with classic tracepoint and fentry/fexit programs.

Andrii Nakryiko committed 2 years ago

Commit 68ca5d41 parent d4dfc575 files · +28 −6Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/linux/bpf.h+4−2
@@ -1662,8 +1662,10 @@ union bpf_attr { · 1661 unmodified lines
1662 } query;1662 } query;
1663 1663
1664 struct { /* anonymous struct used by BPF_RAW_TRACEPOINT_OPEN command */1664 struct { /* anonymous struct used by BPF_RAW_TRACEPOINT_OPEN command */
1665 __u64 name;1665 __u64 name;
1666 __u32 prog_fd;1666 __u32 prog_fd;
1667 __u32 :32;
1668 __aligned_u64 cookie;
1667 } raw_tracepoint;1669 } raw_tracepoint;
1668 1670
1669 struct { /* anonymous struct for BPF_BTF_LOAD */1671 struct { /* anonymous struct for BPF_BTF_LOAD */