This patch sync uapi bpf.h to tools/
Showing the changes to tools/include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -136,6 +136,7 @@ enum bpf_map_type { · 135 unmodified lines | |||
| 136 | BPF_MAP_TYPE_STACK, | 136 | BPF_MAP_TYPE_STACK, |
| 137 | BPF_MAP_TYPE_SK_STORAGE, | 137 | BPF_MAP_TYPE_SK_STORAGE, |
| 138 | BPF_MAP_TYPE_DEVMAP_HASH, | 138 | BPF_MAP_TYPE_DEVMAP_HASH, |
| 139 | BPF_MAP_TYPE_STRUCT_OPS, | ||
| 139 | }; | 140 | }; |
| 140 | 141 | ||
| 141 | /* Note that tracing related programs such as | 142 | /* Note that tracing related programs such as |
| @@ -174,6 +175,7 @@ enum bpf_prog_type { · 32 unmodified lines | |||
| 174 | BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, | 175 | BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE, |
| 175 | BPF_PROG_TYPE_CGROUP_SOCKOPT, | 176 | BPF_PROG_TYPE_CGROUP_SOCKOPT, |
| 176 | BPF_PROG_TYPE_TRACING, | 177 | BPF_PROG_TYPE_TRACING, |
| 178 | BPF_PROG_TYPE_STRUCT_OPS, | ||
| 177 | }; | 179 | }; |
| 178 | 180 | ||
| 179 | enum bpf_attach_type { | 181 | enum bpf_attach_type { |
| @@ -397,6 +399,10 @@ union bpf_attr { · 217 unmodified lines | |||
| 397 | __u32 btf_fd; /* fd pointing to a BTF type data */ | 399 | __u32 btf_fd; /* fd pointing to a BTF type data */ |
| 398 | __u32 btf_key_type_id; /* BTF type_id of the key */ | 400 | __u32 btf_key_type_id; /* BTF type_id of the key */ |
| 399 | __u32 btf_value_type_id; /* BTF type_id of the value */ | 401 | __u32 btf_value_type_id; /* BTF type_id of the value */ |
| 402 | __u32 btf_vmlinux_value_type_id;/* BTF type_id of a kernel- | ||
| 403 | * struct stored as the | ||
| 404 | * map value | ||
| 405 | */ | ||
| 400 | }; | 406 | }; |
| 401 | 407 | ||
| 402 | struct { /* anonymous struct used by BPF_MAP_*_ELEM commands */ | 408 | struct { /* anonymous struct used by BPF_MAP_*_ELEM commands */ |
| @@ -2831,6 +2837,14 @@ union bpf_attr { · 2428 unmodified lines | |||
| 2831 | * Return | 2837 | * Return |
| 2832 | * On success, the strictly positive length of the string, including | 2838 | * On success, the strictly positive length of the string, including |
| 2833 | * the trailing NUL character. On error, a negative value. | 2839 | * the trailing NUL character. On error, a negative value. |
| 2840 | * | ||
| 2841 | * int bpf_tcp_send_ack(void *tp, u32 rcv_nxt) | ||
| 2842 | * Description | ||
| 2843 | * Send out a tcp-ack. *tp* is the in-kernel struct tcp_sock. | ||
| 2844 | * *rcv_nxt* is the ack_seq to be sent out. | ||
| 2845 | * Return | ||
| 2846 | * 0 on success, or a negative error in case of failure. | ||
| 2847 | * | ||
| 2834 | */ | 2848 | */ |
| 2835 | #define __BPF_FUNC_MAPPER(FN) \ | 2849 | #define __BPF_FUNC_MAPPER(FN) \ |
| 2836 | FN(unspec), \ | 2850 | FN(unspec), \ |
| @@ -2948,7 +2962,8 @@ union bpf_attr { · 111 unmodified lines | |||
| 2948 | FN(probe_read_user), \ | 2962 | FN(probe_read_user), \ |
| 2949 | FN(probe_read_kernel), \ | 2963 | FN(probe_read_kernel), \ |
| 2950 | FN(probe_read_user_str), \ | 2964 | FN(probe_read_user_str), \ |
| 2951 | FN(probe_read_kernel_str), | 2965 | FN(probe_read_kernel_str), \ |
| 2966 | FN(tcp_send_ack), | ||
| 2952 | 2967 | ||
| 2953 | /* integer value in 'imm' field of BPF_CALL instruction selects which helper | 2968 | /* integer value in 'imm' field of BPF_CALL instruction selects which helper |
| 2954 | * function eBPF program intends to call | 2969 | * function eBPF program intends to call |
| @@ -3349,7 +3364,7 @@ struct bpf_map_info { · 394 unmodified lines | |||
| 3349 | __u32 map_flags; | 3364 | __u32 map_flags; |
| 3350 | char name[BPF_OBJ_NAME_LEN]; | 3365 | char name[BPF_OBJ_NAME_LEN]; |
| 3351 | __u32 ifindex; | 3366 | __u32 ifindex; |
| 3352 | __u32 :32; | 3367 | __u32 btf_vmlinux_value_type_id; |
| 3353 | __u64 netns_dev; | 3368 | __u64 netns_dev; |
| 3354 | __u64 netns_ino; | 3369 | __u64 netns_ino; |
| 3355 | __u32 btf_id; | 3370 | __u32 btf_id; |