| /tools/bpf/bpftool/Documentation/ |
| A D | bpftool-btf.rst | 101 [1] PTR '(anon)' type_id=2 106 [4] PTR '(anon)' type_id=5 156 [1] PTR '(anon)' type_id=2 168 [5] CONST '(anon)' type_id=6 174 [11] PTR '(anon)' type_id=12 184 'arg1' type_id=1 185 'arg2' type_id=3 222 [1] PTR '(anon)' type_id=0 260 'ara' type_id=56050 264 'ara' type_id=56050 [all …]
|
| A D | bpftool-gen.rst | 413 [2] CONST '(anon)' type_id=1 414 [3] VOLATILE '(anon)' type_id=1 416 [5] PTR '(anon)' type_id=8 417 [6] CONST '(anon)' type_id=5 419 [8] CONST '(anon)' type_id=7 427 [1] PTR '(anon)' type_id=2 429 'ent' type_id=3 bits_offset=0 430 'id' type_id=7 bits_offset=64 434 'type' type_id=4 bits_offset=0 445 [1] TYPEDEF 'pid_t' type_id=6 [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | resolve_btfids.c | 66 __resolve_symbol(struct btf *btf, int type_id) in BTF_ID() 72 type = btf__type_by_id(btf, type_id); in BTF_ID() 74 PRINT_FAIL("Failed to get type for ID %d\n", type_id); in BTF_ID() 87 PRINT_FAIL("Failed to get name for BTF ID %d\n", type_id); in BTF_ID() 92 test_symbols[i].id = type_id; in BTF_ID() 101 int type_id; in resolve_symbols() local 111 for (type_id = 1; type_id < nr; type_id++) { in resolve_symbols() 112 if (__resolve_symbol(btf, type_id)) in resolve_symbols()
|
| A D | btf_module.c | 13 __s32 type_id; in test_btf_module() local 28 type_id = btf__find_by_name(module_btf, symbol_name); in test_btf_module() 29 ASSERT_GT(type_id, 0, "func not found"); in test_btf_module()
|
| A D | btf_tag.c | 58 __s32 type_id; in load_btfs() local 73 type_id = btf__find_by_name_kind(*vmlinux_btf, "user", BTF_KIND_TYPE_TAG); in load_btfs() 74 if (type_id <= 0) { in load_btfs() 90 type_id = btf__find_by_name_kind(*module_btf, "user", BTF_KIND_TYPE_TAG); in load_btfs() 91 if (type_id <= 0) { in load_btfs()
|
| A D | btf_dump.c | 345 __s32 type_id; in btf_dump_data() local 359 type_id = btf__find_by_name(btf, name); in btf_dump_data() 360 if (!ASSERT_GE(type_id, 0, "find type id")) in btf_dump_data() 362 type_sz = btf__resolve_size(btf, type_id); in btf_dump_data() 645 __s32 type_id; in test_btf_dump_struct_data() local 717 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 818 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 846 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 1005 __s32 type_id; in test_btf_datasec() local 1009 type_id = btf__find_by_name(btf, name); in test_btf_datasec() [all …]
|
| A D | core_reloc_raw.c | 59 .type_id = 4, in test_bad_local_id() 65 .type_id = 100500, /* !!! this type id does not exist */ in test_bad_local_id()
|
| /tools/bpf/bpftool/ |
| A D | btf_dumper.c | 80 func_type = btf__type_by_id(prog_btf, finfo.type_id); in dump_prog_id_as_func_ptr() 140 actual_type_id = btf__resolve_type(d->btf, type_id); in btf_dumper_modifier() 475 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct() 534 t = btf__type_by_id(d->btf, type_id); in btf_dumper_datasec() 566 return btf_dumper_struct(d, type_id, data); in btf_dumper_do_type() 568 return btf_dumper_array(d, type_id, data); in btf_dumper_do_type() 589 return btf_dumper_var(d, type_id, bit_offset, data); in btf_dumper_do_type() 591 return btf_dumper_datasec(d, type_id, data); in btf_dumper_do_type() 601 return btf_dumper_do_type(d, type_id, 0, data); in btf_dumper_type() 627 if (!type_id) { in __btf_dumper_type_only() [all …]
|
| A D | gen.c | 2039 if (type_id == 0) in btfgen_mark_type() 2115 btf_type = btf__type_by_id(btf, type_id); in btfgen_record_field_relo() 2124 type_id = btf_type->type; in btfgen_record_field_relo() 2135 btfgen_mark_member(info, type_id, idx); in btfgen_record_field_relo() 2138 type_id = btf_member->type; in btfgen_record_field_relo() 2146 type_id = array->type; in btfgen_record_field_relo() 2174 if (type_id == 0) in btfgen_mark_type_match() 2177 btf_type = btf__type_by_id(btf, type_id); in btfgen_mark_type_match() 2199 btfgen_mark_member(info, type_id, i); in btfgen_mark_type_match() 2510 __u32 *type_id; in btfgen_get_btf() local [all …]
|
| A D | xlated_dumper.c | 249 btf_dumper_type_only(btf, record->type_id, in dump_xlated_json() 330 btf_dumper_type_only(btf, record->type_id, in dump_xlated_plain() 399 btf_dumper_type_only(btf, record->type_id, in dump_xlated_for_graph()
|
| /tools/perf/util/ |
| A D | btf.c | 13 int type_id, const char *member_name) in __btf_type__find_member_by_name() argument 15 const struct btf_type *t = btf__type_by_id(btf, type_id); in __btf_type__find_member_by_name()
|
| A D | btf.h | 9 int type_id, const char *member_name);
|
| A D | bpf_off_cpu.c | 117 u32 type_id; in check_sched_switch_args() local 124 type_id = btf__find_by_name_kind(btf, "btf_trace_sched_switch", in check_sched_switch_args() 126 if ((s32)type_id < 0) in check_sched_switch_args() 129 t1 = btf__type_by_id(btf, type_id); in check_sched_switch_args()
|
| /tools/lib/bpf/ |
| A D | btf.c | 898 return type_id; in btf__resolve_type() 4203 int type_id; in btf_dedup_prep() local 4209 for (type_id = 1; type_id < d->btf->start_id; type_id++) { in btf_dedup_prep() 4213 d->map[type_id] = type_id; in btf_dedup_prep() 4378 while (is_type_mapped(d, type_id) && d->map[type_id] != type_id) in resolve_type_id() 4379 type_id = d->map[type_id]; in resolve_type_id() 4394 while (is_type_mapped(d, type_id) && d->map[type_id] != type_id) in resolve_fwd_id() 4395 type_id = d->map[type_id]; in resolve_fwd_id() 5122 for (type_id = 1; type_id < nr_types; ++type_id) { in btf_dedup_fill_unique_names_map() 5130 if (type_id != d->map[type_id]) in btf_dedup_fill_unique_names_map() [all …]
|
| A D | relo_core.c | 37 t = btf_type_by_id(btf, type_id); in btf__resolve_size() 311 acc->type_id = id; in bpf_core_parse_spec() 358 acc->type_id = id; in bpf_core_parse_spec() 500 local_id = local_acc->type_id; in bpf_core_match_member() 533 targ_acc->type_id = targ_id; in bpf_core_match_member() 661 targ_acc->type_id = targ_id; in bpf_core_spec_match() 720 *type_id = acc->type_id; in bpf_core_calc_field_relo() 787 *type_id = field_type_id; in bpf_core_calc_field_relo() 1176 __u32 type_id; in bpf_core_format_spec() local 1190 type_id = spec->root_type_id; in bpf_core_format_spec() [all …]
|
| A D | libbpf_internal.h | 235 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id); 507 __u32 type_id; member 525 i->type_id = bswap_32(i->type_id); in bpf_func_info_bswap() 539 i->type_id = bswap_32(i->type_id); in bpf_core_relo_bswap() 569 typedef int (*type_id_visit_fn)(__u32 *type_id, void *ctx);
|
| A D | btf.h | 158 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id); 159 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id); 236 LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id); 239 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
|
| A D | relo_core.h | 24 __u32 type_id; /* struct/union type or array element type */ member
|
| A D | btf_dump.c | 1862 int alignment = btf__align_of(btf, type_id); in ptr_is_aligned() 1872 __u32 type_id, in btf_dump_int_data() argument 1882 pr_warn("unexpected size %d for id [%u]\n", sz, type_id); in btf_dump_int_data() 1889 if (!ptr_is_aligned(d->btf, type_id, data)) { in btf_dump_int_data() 1957 pr_warn("unexpected sz %d for id [%u]\n", sz, type_id); in btf_dump_int_data() 1971 __u32 type_id, in btf_dump_float_data() argument 1979 if (!ptr_is_aligned(d->btf, type_id, data)) { in btf_dump_float_data() 2009 __u32 type_id; in btf_dump_var_data() local 2028 type_id = v->type; in btf_dump_var_data() 2029 t = btf__type_by_id(d->btf, type_id); in btf_dump_var_data() [all …]
|
| /tools/bpf/resolve_btfids/ |
| A D | main.c | 539 int err, type_id; in symbols_resolve() local 567 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve() 574 type = btf__type_by_id(btf, type_id); in symbols_resolve() 577 type_id); in symbols_resolve() 599 type_id); in symbols_resolve() 607 str, id->id, type_id, id->id); in symbols_resolve() 610 id->id = type_id; in symbols_resolve()
|
| /tools/testing/selftests/bpf/ |
| A D | btf_helpers.h | 10 const char *btf_type_raw_dump(const struct btf *btf, int type_id);
|
| A D | btf_helpers.c | 216 const char *btf_type_raw_dump(const struct btf *btf, int type_id) in btf_type_raw_dump() argument 227 fprintf_btf_type_raw(buf_file, btf, type_id); in btf_type_raw_dump()
|
| /tools/testing/selftests/bpf/progs/ |
| A D | btf_ptr.h | 18 __u32 type_id; member
|
| A D | bpf_iter_task_btf.c | 24 ptr.type_id = bpf_core_type_id_kernel(struct task_struct); in dump_task_struct()
|
| A D | netif_receive_skb.c | 63 _ptr.type_id = bpf_core_type_id_kernel(_type); \ 64 if (_ptr.type_id <= 0) { \ 108 p.type_id = bpf_core_type_id_kernel(struct sk_buff); in BPF_PROG()
|