/tools/bpf/bpftool/Documentation/ |
D | bpftool-btf.rst | 91 [1] PTR '(anon)' type_id=2 93 'pad' type_id=3 bits_offset=0 94 'sock' type_id=4 bits_offset=64 96 [4] PTR '(anon)' type_id=5 144 [1] PTR '(anon)' type_id=2 146 'a' type_id=3 bits_offset=0 147 'b' type_id=4 bits_offset=0 150 'const_int_field' type_id=5 bits_offset=0 151 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4 152 'arr_field' type_id=8 bits_offset=40 [all …]
|
/tools/bpf/bpftool/ |
D | btf_dumper.c | 22 static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, 34 static int btf_dumper_modifier(const struct btf_dumper *d, __u32 type_id, in btf_dumper_modifier() argument 39 actual_type_id = btf__resolve_type(d->btf, type_id); in btf_dumper_modifier() 51 static int btf_dumper_array(const struct btf_dumper *d, __u32 type_id, in btf_dumper_array() argument 54 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() 264 static int btf_dumper_struct(const struct btf_dumper *d, __u32 type_id, in btf_dumper_struct() argument 274 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct() 312 static int btf_dumper_var(const struct btf_dumper *d, __u32 type_id, in btf_dumper_var() argument 315 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_var() 326 static int btf_dumper_datasec(const struct btf_dumper *d, __u32 type_id, in btf_dumper_datasec() argument [all …]
|
D | xlated_dumper.c | 236 btf_dumper_type_only(btf, record->type_id, in dump_xlated_json() 317 btf_dumper_type_only(btf, record->type_id, in dump_xlated_plain()
|
D | main.h | 211 int btf_dumper_type(const struct btf_dumper *d, __u32 type_id,
|
D | prog.c | 584 btf_dumper_type_only(btf, record->type_id, in do_dump()
|
/tools/lib/bpf/ |
D | btf.c | 209 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id() argument 211 if (type_id > btf->nr_types) in btf__type_by_id() 214 return btf->types[type_id]; in btf__type_by_id() 229 __s64 btf__resolve_size(const struct btf *btf, __u32 type_id) in btf__resolve_size() argument 237 t = btf__type_by_id(btf, type_id); in btf__resolve_size() 256 type_id = t->type; in btf__resolve_size() 263 type_id = array->type; in btf__resolve_size() 269 t = btf__type_by_id(btf, type_id); in btf__resolve_size() 281 int btf__resolve_type(const struct btf *btf, __u32 type_id) in btf__resolve_type() argument 286 t = btf__type_by_id(btf, type_id); in btf__resolve_type() [all …]
|
D | libbpf_internal.h | 111 __u32 type_id; member 166 __u32 type_id; member
|
D | btf.h | 78 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id); 79 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
|
D | libbpf.c | 2309 __u32 type_id; /* struct/union type or array element type */ member 2365 __u32 type_id, in bpf_core_spec_parse() argument 2397 t = skip_mods_and_typedefs(btf, type_id, &id); in bpf_core_spec_parse() 2402 spec->spec[0].type_id = id; in bpf_core_spec_parse() 2438 spec->spec[spec->len].type_id = id; in bpf_core_spec_parse() 2452 spec->spec[spec->len].type_id = id; in bpf_core_spec_parse() 2462 type_id, spec_str, i, id, btf_kind(t)); in bpf_core_spec_parse() 2647 local_id = local_acc->type_id; in bpf_core_match_member() 2685 targ_acc->type_id = targ_id; in bpf_core_match_member() 2760 targ_acc->type_id = targ_id; in bpf_core_spec_match() [all …]
|
/tools/perf/util/ |
D | bpf-event.c | 133 t = btf__type_by_id(btf, finfo->type_id); in synthesize_bpf_prog_name()
|
/tools/include/uapi/linux/ |
D | bpf.h | 3579 __u32 type_id; member
|
/tools/testing/selftests/bpf/ |
D | test_btf.c | 4247 t = btf__type_by_id(btf, finfo->type_id); in do_test_file() 4249 finfo->type_id)) { in do_test_file() 5909 if (CHECK(finfo->type_id != test->func_info[i][1], in test_get_finfo() 5911 finfo->type_id, test->func_info[i][1])) { in test_get_finfo()
|