Lines Matching refs:btf
8 #include <linux/btf.h>
28 #include <uapi/linux/btf.h>
488 btf_put(map->btf);
740 int map_check_no_btf(const struct bpf_map *map, const struct btf *btf, const struct btf_type *key_type,
746 static int map_check_btf(struct bpf_map *map, const struct btf *btf, u32 btf_key_id, u32 btf_value_id)
754 key_type = btf_type_id_size(btf, &btf_key_id, &key_size);
759 key_type = btf_type_by_id(btf, 0);
765 value_type = btf_type_id_size(btf, &btf_value_id, &value_size);
770 map->spin_lock_off = btf_find_spin_lock(btf, value_type);
788 ret = map->ops->map_check_btf(map, btf, key_type, value_type);
850 struct btf *btf;
852 btf = btf_get_by_fd(attr->btf_fd);
853 if (IS_ERR(btf)) {
854 err = PTR_ERR(btf);
857 map->btf = btf;
860 err = map_check_btf(map, btf, attr->btf_key_type_id, attr->btf_value_type_id);
898 btf_put(map->btf);
1784 btf_put(prog->aux->btf);
3669 if (prog->aux->btf) {
3670 info.btf_id = btf_id(prog->aux->btf);
3772 if (map->btf) {
3773 info.btf_id = btf_id(map->btf);
3793 static int bpf_btf_get_info_by_fd(struct file *file, struct btf *btf, const union bpf_attr *attr,
3805 return btf_get_info_by_fd(btf, attr, uattr);