Searched refs:value_id (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/kernel/bpf/ |
D | bpf_struct_ops.c | 88 static bool is_valid_value_type(struct btf *btf, s32 value_id, in is_valid_value_type() argument 96 vt = btf_type_by_id(btf, value_id); in is_valid_value_type() 320 s32 type_id, value_id; in bpf_struct_ops_desc_init() local 352 value_id = btf_find_by_name_kind(btf, value_name, in bpf_struct_ops_desc_init() 354 if (value_id < 0) { in bpf_struct_ops_desc_init() 359 if (!is_valid_value_type(btf, value_id, t, value_name)) in bpf_struct_ops_desc_init() 370 st_ops_desc->value_id = value_id; in bpf_struct_ops_desc_init() 371 st_ops_desc->value_type = btf_type_by_id(btf, value_id); in bpf_struct_ops_desc_init()
|
D | btf.c | 9175 bpf_struct_ops_find_value(struct btf *btf, u32 value_id) in bpf_struct_ops_find_value() argument 9181 if (!value_id) in bpf_struct_ops_find_value() 9189 if (st_ops_list[i].value_id == value_id) in bpf_struct_ops_find_value()
|
/linux-6.12.1/tools/bpf/bpftool/ |
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.12.1/include/linux/ |
D | btf.h | 522 const struct bpf_struct_ops_desc *bpf_struct_ops_find_value(struct btf *btf, u32 value_id);
|
D | bpf.h | 1785 u32 value_id; member
|