/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-btf.rst | 96 [1] PTR '(anon)' type_id=2 101 [4] PTR '(anon)' type_id=5 151 [1] PTR '(anon)' type_id=2 163 [5] CONST '(anon)' type_id=6 169 [11] PTR '(anon)' type_id=12 179 'arg1' type_id=1 180 'arg2' type_id=3 217 [1] PTR '(anon)' type_id=0 255 'ara' type_id=56050 259 'ara' type_id=56050 [all …]
|
H 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 …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H 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()
|
H A D | btf_dump.c | 275 __s32 type_id; in btf_dump_data() local 289 type_id = btf__find_by_name(btf, name); in btf_dump_data() 290 if (!ASSERT_GE(type_id, 0, "find type id")) in btf_dump_data() 292 type_sz = btf__resolve_size(btf, type_id); in btf_dump_data() 575 __s32 type_id; in test_btf_dump_struct_data() local 647 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 748 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 776 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 819 __s32 type_id; in test_btf_datasec() local 823 type_id = btf__find_by_name(btf, name); in test_btf_datasec() [all …]
|
H 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()
|
H 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()
|
/linux/drivers/media/usb/pwc/ |
H A D | pwc-if.c | 805 type_id = 645; in usb_pwc_probe() 810 type_id = 646; in usb_pwc_probe() 815 type_id = 646; in usb_pwc_probe() 820 type_id = 675; in usb_pwc_probe() 825 type_id = 680; in usb_pwc_probe() 830 type_id = 690; in usb_pwc_probe() 835 type_id = 730; in usb_pwc_probe() 840 type_id = 740; in usb_pwc_probe() 845 type_id = 750; in usb_pwc_probe() 850 type_id = 720; in usb_pwc_probe() [all …]
|
/linux/tools/bpf/bpftool/ |
H 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 …]
|
H 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 …]
|
/linux/tools/lib/bpf/ |
H A D | btf.c | 893 return type_id; in btf__resolve_type() 3931 int type_id; in btf_dedup_prep() local 3937 for (type_id = 1; type_id < d->btf->start_id; type_id++) { in btf_dedup_prep() 3941 d->map[type_id] = type_id; in btf_dedup_prep() 4106 while (is_type_mapped(d, type_id) && d->map[type_id] != type_id) in resolve_type_id() 4107 type_id = d->map[type_id]; in resolve_type_id() 4122 while (is_type_mapped(d, type_id) && d->map[type_id] != type_id) in resolve_fwd_id() 4123 type_id = d->map[type_id]; in resolve_fwd_id() 4793 for (type_id = 1; type_id < nr_types; ++type_id) { in btf_dedup_fill_unique_names_map() 4801 if (type_id != d->map[type_id]) in btf_dedup_fill_unique_names_map() [all …]
|
H 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() 714 *type_id = acc->type_id; in bpf_core_calc_field_relo() 771 *type_id = field_type_id; in bpf_core_calc_field_relo() 1160 __u32 type_id; in bpf_core_format_spec() local 1174 type_id = spec->root_type_id; in bpf_core_format_spec() [all …]
|
/linux/net/ipv4/ |
H A D | bpf_tcp_ca.c | 27 s32 type_id; in bpf_tcp_ca_init() local 29 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 30 if (type_id < 0) in bpf_tcp_ca_init() 32 sock_id = type_id; in bpf_tcp_ca_init() 34 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 35 if (type_id < 0) in bpf_tcp_ca_init() 37 tcp_sock_id = type_id; in bpf_tcp_ca_init() 40 type_id = btf_find_by_name_kind(btf, "tcp_congestion_ops", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 41 if (type_id < 0) in bpf_tcp_ca_init() 43 tcp_congestion_ops_type = btf_type_by_id(btf, type_id); in bpf_tcp_ca_init()
|
/linux/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 556 int type_id; in pidff_upload_effect() local 588 type_id = PID_SQUARE; in pidff_upload_effect() 591 type_id = PID_TRIANGLE; in pidff_upload_effect() 594 type_id = PID_SINE; in pidff_upload_effect() 597 type_id = PID_SAW_UP; in pidff_upload_effect() 600 type_id = PID_SAW_DOWN; in pidff_upload_effect() 608 pidff->type_id[type_id]); in pidff_upload_effect() 626 pidff->type_id[PID_RAMP]); in pidff_upload_effect() 1020 if (pidff->type_id[PID_RAMP]) in pidff_find_effects() 1026 if (pidff->type_id[PID_SINE]) { in pidff_find_effects() [all …]
|
/linux/arch/x86/events/intel/ |
H A D | uncore_discovery.c | 55 const u16 *type_id = key; in __type_cmp() local 57 if (type_b->type > *type_id) in __type_cmp() 59 else if (type_b->type < *type_id) in __type_cmp() 66 search_uncore_discovery_type(u16 type_id) in search_uncore_discovery_type() argument 595 type->type_id, box->pmu->pmu_idx); in intel_generic_uncore_mmio_init_box() 601 type->type_id, unit->id); in intel_generic_uncore_mmio_init_box() 609 type->type_id, unit->id, (unsigned long long)addr); in intel_generic_uncore_mmio_init_box() 668 uncore->type_id = type->type; in uncore_update_uncore_type() 676 switch (type_id) { in uncore_update_uncore_type() 710 if (type->access_type != type_id) in intel_uncore_generic_init_uncores() [all …]
|
/linux/net/bpf/ |
H A D | bpf_dummy_struct_ops.c | 141 s32 type_id; in bpf_struct_ops_test_run() local 144 type_id = btf_find_by_name_kind(bpf_dummy_ops_btf, in bpf_struct_ops_test_run() 147 if (type_id < 0) in bpf_struct_ops_test_run() 149 if (prog->aux->attach_btf_id != type_id) in bpf_struct_ops_test_run() 241 s32 type_id; in bpf_dummy_ops_btf_struct_access() local 243 type_id = btf_find_by_name_kind(reg->btf, "bpf_dummy_ops_state", in bpf_dummy_ops_btf_struct_access() 245 if (type_id < 0) in bpf_dummy_ops_btf_struct_access() 249 state = btf_type_by_id(reg->btf, type_id); in bpf_dummy_ops_btf_struct_access()
|
/linux/kernel/bpf/ |
H A D | btf.c | 185 #define BTF_TYPE_ID_VALID(type_id) ((type_id) <= BTF_MAX_TYPE) argument 287 u32 type_id; member 428 u32 type_id; member 1321 show->state.type_id = type_id; in btf_show_start_type() 1883 v->type_id = type_id; in env_stack_push() 1906 u32 type_id = env->stack[--(env->top_stack)].type_id; in env_stack_pop_resolved() local 2005 *type_id = id; in __btf_resolve_size() 2029 *type_id = btf_resolved_type_id(btf, *type_id); in btf_type_id_resolve() 3317 u32 type_id; member 9127 if (!type_id) in bpf_struct_ops_find() [all …]
|
/linux/drivers/media/pci/cx88/ |
H A D | cx88-mpeg.c | 507 if (d->type_id == btype) in cx8802_get_driver() 522 core->active_type_id != drv->type_id) in cx8802_request_acquire() 525 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_acquire() 542 core->active_type_id = drv->type_id; in cx8802_request_acquire() 558 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_release() 579 if ((drv->type_id != CX88_MPEG_DVB) && in cx8802_check_driver() 580 (drv->type_id != CX88_MPEG_BLACKBIRD)) in cx8802_check_driver() 603 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_register_driver() 661 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_unregister_driver() 677 if (d->type_id != drv->type_id) in cx8802_unregister_driver()
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_vcap_ag_api.c | 2190 .type_id = 0, 2195 .type_id = 1, 2200 .type_id = 0, 2205 .type_id = 1, 2210 .type_id = 2, 2215 .type_id = 0, 2220 .type_id = 1, 2225 .type_id = 2, 2233 .type_id = 0, 2238 .type_id = 1, [all …]
|
/linux/tools/bpf/resolve_btfids/ |
H A D | main.c | 538 int err, type_id; in symbols_resolve() local 566 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve() 573 type = btf__type_by_id(btf, type_id); in symbols_resolve() 576 type_id); in symbols_resolve() 598 type_id); in symbols_resolve() 606 str, id->id, type_id, id->id); in symbols_resolve() 608 id->id = type_id; in symbols_resolve()
|
/linux/include/linux/ |
H A D | btf.h | 171 u32 *type_id, 191 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, 193 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, 209 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, 523 const struct bpf_struct_ops_desc *bpf_struct_ops_find(struct btf *btf, u32 type_id); 525 static inline const struct bpf_struct_ops_desc *bpf_struct_ops_find(struct btf *btf, u32 type_id) in bpf_struct_ops_find() argument 554 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id); 585 u32 type_id) in btf_type_by_id() argument
|
/linux/drivers/hid/bpf/ |
H A D | hid_bpf_struct_ops.c | 93 s32 type_id; in hid_bpf_ops_btf_struct_access() local 103 type_id = btf_find_by_name_kind(reg->btf, write_range->struct_name, in hid_bpf_ops_btf_struct_access() 105 if (type_id < 0) in hid_bpf_ops_btf_struct_access() 108 state = btf_type_by_id(reg->btf, type_id); in hid_bpf_ops_btf_struct_access()
|
/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_model_kunit.c | 2692 .type_id = 0, 2697 .type_id = 0, 2702 .type_id = 2, 2707 .type_id = 2, 2712 .type_id = 3, 2720 .type_id = 0, 2725 .type_id = 3, 2730 .type_id = 4, 2735 .type_id = 5, 2740 .type_id = 6, [all …]
|
/linux/net/netfilter/ |
H A D | nf_bpf_link.c | 270 s32 type_id; in nf_ptr_to_btf_id() local 276 type_id = btf_find_by_name_kind(btf, name, BTF_KIND_STRUCT); in nf_ptr_to_btf_id() 277 if (WARN_ON_ONCE(type_id < 0)) in nf_ptr_to_btf_id() 281 info->btf_id = type_id; in nf_ptr_to_btf_id()
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_ag_api.c | 2290 .type_id = 0, 2295 .type_id = 2, 2303 .type_id = 0, 2308 .type_id = 3, 2313 .type_id = 4, 2318 .type_id = 5, 2323 .type_id = 6, 2328 .type_id = 1, 2336 .type_id = 0, 2344 .type_id = 0, [all …]
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_err.c | 1706 .type_id = NONE_ERROR, 1709 .type_id = FIFO_ERROR, 1712 .type_id = MEMORY_ERROR, 1735 .type_id = PORT_ERROR, 1738 .type_id = ETS_ERROR, 1741 .type_id = NCSI_ERROR, 1744 .type_id = GLB_ERROR, 1747 .type_id = LINK_ERROR, 1750 .type_id = PTP_ERROR, 3200 type_id = type_reg_info->type_id & HCLGE_ERR_TYPE_MASK; in hclge_handle_error_type_reg_log() [all …]
|