Searched refs:value_id (Results 1 – 5 of 5) sorted by relevance
| /linux-6.15/kernel/bpf/ |
| H A D | bpf_struct_ops.c | 89 static bool is_valid_value_type(struct btf *btf, s32 value_id, in is_valid_value_type() argument 97 vt = btf_type_by_id(btf, value_id); in is_valid_value_type() 339 s32 type_id, value_id; in bpf_struct_ops_desc_init() local 371 value_id = btf_find_by_name_kind(btf, value_name, in bpf_struct_ops_desc_init() 373 if (value_id < 0) { in bpf_struct_ops_desc_init() 378 if (!is_valid_value_type(btf, value_id, t, value_name)) in bpf_struct_ops_desc_init() 389 st_ops_desc->value_id = value_id; in bpf_struct_ops_desc_init() 390 st_ops_desc->value_type = btf_type_by_id(btf, value_id); in bpf_struct_ops_desc_init()
|
| H A D | btf.c | 9446 bpf_struct_ops_find_value(struct btf *btf, u32 value_id) in bpf_struct_ops_find_value() argument 9452 if (!value_id) in bpf_struct_ops_find_value() 9460 if (st_ops_list[i].value_id == value_id) in bpf_struct_ops_find_value()
|
| /linux-6.15/tools/bpf/bpftool/ |
| H A D | map.c | 75 __u32 value_id; in do_dump_btf() local 89 value_id = map_info->btf_vmlinux_value_type_id ? in do_dump_btf() 94 ret = btf_dumper_type(d, value_id, value); in do_dump_btf() 106 ret = btf_dumper_type(d, value_id, value + i * step); in do_dump_btf()
|
| /linux-6.15/include/linux/ |
| H A D | btf.h | 531 const struct bpf_struct_ops_desc *bpf_struct_ops_find_value(struct btf *btf, u32 value_id);
|
| H A D | bpf.h | 1863 u32 value_id; member
|