diff options
Diffstat (limited to 'tools/lib/bpf/bpf.h')
| -rw-r--r-- | tools/lib/bpf/bpf.h | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h index 4f758f8f50cd..6fffb3cdf39b 100644 --- a/tools/lib/bpf/bpf.h +++ b/tools/lib/bpf/bpf.h @@ -177,8 +177,14 @@ struct bpf_link_create_opts {  	union bpf_iter_link_info *iter_info;  	__u32 iter_info_len;  	__u32 target_btf_id; +	union { +		struct { +			__u64 bpf_cookie; +		} perf_event; +	}; +	size_t :0;  }; -#define bpf_link_create_opts__last_field target_btf_id +#define bpf_link_create_opts__last_field perf_event  LIBBPF_API int bpf_link_create(int prog_fd, int target_fd,  			       enum bpf_attach_type attach_type, | 
