Searched refs:value_id (Results 1 – 5 of 5) sorted by relevance
| /linux/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() 366 s32 type_id, value_id; in bpf_struct_ops_desc_init() local 398 value_id = btf_find_by_name_kind(btf, value_name, in bpf_struct_ops_desc_init() 400 if (value_id < 0) { in bpf_struct_ops_desc_init() 405 if (!is_valid_value_type(btf, value_id, t, value_name)) in bpf_struct_ops_desc_init() 415 st_ops_desc->value_id = value_id; in bpf_struct_ops_desc_init() 416 st_ops_desc->value_type = btf_type_by_id(btf, value_id); in bpf_struct_ops_desc_init()
|
| H A D | btf.c | 9933 bpf_struct_ops_find_value(struct btf *btf, u32 value_id) in bpf_struct_ops_find_value() argument 9939 if (!value_id) in bpf_struct_ops_find_value() 9947 if (st_ops_list[i].value_id == value_id) in bpf_struct_ops_find_value()
|
| /linux/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/include/linux/ |
| H A D | btf.h | 541 const struct bpf_struct_ops_desc *bpf_struct_ops_find_value(struct btf *btf, u32 value_id);
|
| H A D | bpf.h | 2140 u32 value_id; member
|