summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/uapi/linux/bpf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index de58a714ed36..3cc07351c1cf 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -4748,6 +4748,12 @@ union bpf_attr {
* Execute bpf syscall with given arguments.
* Return
* A syscall result.
+ *
+ * long bpf_btf_find_by_name_kind(char *name, int name_sz, u32 kind, int flags)
+ * Description
+ * Find BTF type with given name and kind in vmlinux BTF or in module's BTFs.
+ * Return
+ * Returns btf_id and btf_obj_fd in lower and upper 32 bits.
*/
#define __BPF_FUNC_MAPPER(FN) \
FN(unspec), \
@@ -4917,6 +4923,7 @@ union bpf_attr {
FN(for_each_map_elem), \
FN(snprintf), \
FN(sys_bpf), \
+ FN(btf_find_by_name_kind), \
/* */
/* integer value in 'imm' field of BPF_CALL instruction selects which helper