Skip to content

Commit cc19435

Browse files
yonghong-songAlexei Starovoitov
authored andcommitted
tools/bpf: sync kernel uapi bpf.h header to tools directory
The kernel uapi bpf.h is synced to tools directory. Signed-off-by: Yonghong Song <yhs@fb.com> Signed-off-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 838e969 commit cc19435

File tree

1 file changed

+13
-0
lines changed
  • tools/include/uapi/linux

1 file changed

+13
-0
lines changed

tools/include/uapi/linux/bpf.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ union bpf_attr {
338338
* (context accesses, allowed helpers, etc).
339339
*/
340340
__u32 expected_attach_type;
341+
__u32 prog_btf_fd; /* fd pointing to BTF type data */
342+
__u32 func_info_rec_size; /* userspace bpf_func_info size */
343+
__aligned_u64 func_info; /* func info */
344+
__u32 func_info_cnt; /* number of bpf_func_info records */
341345
};
342346

343347
struct { /* anonymous struct used by BPF_OBJ_* commands */
@@ -2638,6 +2642,10 @@ struct bpf_prog_info {
26382642
__u32 nr_jited_func_lens;
26392643
__aligned_u64 jited_ksyms;
26402644
__aligned_u64 jited_func_lens;
2645+
__u32 btf_id;
2646+
__u32 func_info_rec_size;
2647+
__aligned_u64 func_info;
2648+
__u32 func_info_cnt;
26412649
} __attribute__((aligned(8)));
26422650

26432651
struct bpf_map_info {
@@ -2949,4 +2957,9 @@ struct bpf_flow_keys {
29492957
};
29502958
};
29512959

2960+
struct bpf_func_info {
2961+
__u32 insn_offset;
2962+
__u32 type_id;
2963+
};
2964+
29522965
#endif /* _UAPI__LINUX_BPF_H__ */

0 commit comments

Comments
 (0)