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 tools/include/uapi/linux (1 of 5 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+1−0
@@ -1664,6 +1664,7 @@ union bpf_attr { · 1663 unmodified lines
16641664 struct { /* anonymous struct used by BPF_RAW_TRACEPOINT_OPEN command */
16651665 __u64 name;
16661666 __u32 prog_fd;
1667+ __aligned_u64 cookie;
16671668 } raw_tracepoint;
16681669
16691670 struct { /* anonymous struct for BPF_BTF_LOAD */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t