History

bpf: Add cookie to raw_tp bpf_link_info

After commit 68ca5d4eebb8 ("bpf: support BPF cookie in raw tracepoint (raw_tp, tp_btf) programs"), we can show the cookie in bpf_link_info like kprobe etc.

Tao Chen committed 1 year ago

Commit 2fe1c591 parent 7fdaba93 files · +5 −0Browse files

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

Unified · Split

tools/include/uapi/linux/bpf.h+2−0
@@ -6651,6 +6651,8 @@ struct bpf_link_info { · 6650 unmodified lines
6651 struct {6651 struct {
6652 __aligned_u64 tp_name; /* in/out: tp_name buffer ptr */6652 __aligned_u64 tp_name; /* in/out: tp_name buffer ptr */
6653 __u32 tp_name_len; /* in/out: tp_name buffer len */6653 __u32 tp_name_len; /* in/out: tp_name buffer len */
6654 __u32 :32;
6655 __u64 cookie;
6654 } raw_tracepoint;6656 } raw_tracepoint;
6655 struct {6657 struct {
6656 __u32 attach_type;6658 __u32 attach_type;

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