|
@@ -10,9 +10,14 @@ struct btf;
|
|
struct btf_type;
|
|
struct btf_type;
|
|
union bpf_attr;
|
|
union bpf_attr;
|
|
|
|
|
|
|
|
+extern const struct file_operations btf_fops;
|
|
|
|
+
|
|
void btf_put(struct btf *btf);
|
|
void btf_put(struct btf *btf);
|
|
int btf_new_fd(const union bpf_attr *attr);
|
|
int btf_new_fd(const union bpf_attr *attr);
|
|
struct btf *btf_get_by_fd(int fd);
|
|
struct btf *btf_get_by_fd(int fd);
|
|
|
|
+int btf_get_info_by_fd(const struct btf *btf,
|
|
|
|
+ const union bpf_attr *attr,
|
|
|
|
+ union bpf_attr __user *uattr);
|
|
/* Figure out the size of a type_id. If type_id is a modifier
|
|
/* Figure out the size of a type_id. If type_id is a modifier
|
|
* (e.g. const), it will be resolved to find out the type with size.
|
|
* (e.g. const), it will be resolved to find out the type with size.
|
|
*
|
|
*
|