/linux-6.6.21/tools/bpf/bpftool/Documentation/ |
D | bpftool-btf.rst | 100 [1] PTR '(anon)' type_id=2 102 'pad' type_id=3 bits_offset=0 103 'sock' type_id=4 bits_offset=64 105 [4] PTR '(anon)' type_id=5 155 [1] PTR '(anon)' type_id=2 157 'a' type_id=3 bits_offset=0 158 'b' type_id=4 bits_offset=0 161 'const_int_field' type_id=5 bits_offset=0 162 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4 163 'arr_field' type_id=8 bits_offset=40 [all …]
|
D | bpftool-gen.rst | 389 [2] CONST '(anon)' type_id=1 390 [3] VOLATILE '(anon)' type_id=1 391 [4] ARRAY '(anon)' type_id=1 index_type_id=21 nr_elems=2 392 [5] PTR '(anon)' type_id=8 393 [6] CONST '(anon)' type_id=5 395 [8] CONST '(anon)' type_id=7 403 [1] PTR '(anon)' type_id=2 405 'ent' type_id=3 bits_offset=0 406 'id' type_id=7 bits_offset=64 407 'args' type_id=9 bits_offset=128 [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
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()
|
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() 294 ret = btf_dump__dump_type_data(d, type_id, ptr, ptr_sz, &opts); in btf_dump_data() 575 __s32 type_id; in test_btf_dump_struct_data() local 645 type_id = btf__find_by_name(btf, "file_operations"); in test_btf_dump_struct_data() 646 if (ASSERT_GT(type_id, 0, "find type id")) { in test_btf_dump_struct_data() 647 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 650 ret = btf_dump__dump_type_data(d, type_id, fops, type_sz, &opts); in test_btf_dump_struct_data() [all …]
|
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()
|
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-6.6.21/drivers/media/usb/pwc/ |
D | pwc-if.c | 778 int vendor_id, product_id, type_id; in usb_pwc_probe() local 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() [all …]
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | btf_dumper.c | 24 static int btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, 80 func_type = btf__type_by_id(prog_btf, finfo.type_id); in dump_prog_id_as_func_ptr() 135 static int btf_dumper_modifier(const struct btf_dumper *d, __u32 type_id, in btf_dumper_modifier() argument 140 actual_type_id = btf__resolve_type(d->btf, type_id); in btf_dumper_modifier() 247 static int btf_dumper_array(const struct btf_dumper *d, __u32 type_id, in btf_dumper_array() argument 250 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_array() 465 static int btf_dumper_struct(const struct btf_dumper *d, __u32 type_id, in btf_dumper_struct() argument 475 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct() 513 static int btf_dumper_var(const struct btf_dumper *d, __u32 type_id, in btf_dumper_var() argument 516 const struct btf_type *t = btf__type_by_id(d->btf, type_id); in btf_dumper_var() [all …]
|
D | gen.c | 1719 static void btfgen_mark_member(struct btfgen_info *info, int type_id, int idx) in btfgen_mark_member() argument 1721 const struct btf_type *t = btf__type_by_id(info->marked_btf, type_id); in btfgen_mark_member() 1728 btfgen_mark_type(struct btfgen_info *info, unsigned int type_id, bool follow_pointers) in btfgen_mark_type() argument 1730 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id); in btfgen_mark_type() 1736 if (type_id == 0) in btfgen_mark_type() 1740 cloned_type = (struct btf_type *) btf__type_by_id(info->marked_btf, type_id); in btfgen_mark_type() 1795 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id); in btfgen_mark_type() 1808 unsigned int type_id = targ_spec->root_type_id; in btfgen_record_field_relo() local 1812 btf_type = btf__type_by_id(btf, type_id); in btfgen_record_field_relo() 1813 err = btfgen_mark_type(info, type_id, false); in btfgen_record_field_relo() [all …]
|
/linux-6.6.21/tools/lib/bpf/ |
D | btf.c | 462 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) in btf_type_by_id() argument 464 if (type_id == 0) in btf_type_by_id() 466 if (type_id < btf->start_id) in btf_type_by_id() 467 return btf_type_by_id(btf->base_btf, type_id); in btf_type_by_id() 468 return btf->types_data + btf->type_offs[type_id - btf->start_id]; in btf_type_by_id() 471 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) in btf__type_by_id() argument 473 if (type_id >= btf->start_id + btf->nr_types) in btf__type_by_id() 475 return btf_type_by_id((struct btf *)btf, type_id); in btf__type_by_id() 604 __s64 btf__resolve_size(const struct btf *btf, __u32 type_id) in btf__resolve_size() argument 612 t = btf__type_by_id(btf, type_id); in btf__resolve_size() [all …]
|
D | relo_core.c | 32 static s64 btf__resolve_size(const struct btf *btf, u32 type_id) in btf__resolve_size() argument 37 t = btf_type_by_id(btf, type_id); in btf__resolve_size() 82 t = btf_type_by_id(btf, acc->type_id); in is_flex_arr() 280 spec->root_type_id = relo->type_id; in bpf_core_parse_spec() 305 t = skip_mods_and_typedefs(btf, relo->type_id, &id); in bpf_core_parse_spec() 311 acc->type_id = id; in bpf_core_parse_spec() 358 acc->type_id = id; in bpf_core_parse_spec() 377 spec->spec[spec->len].type_id = id; in bpf_core_parse_spec() 387 prog_name, relo->type_id, spec_str, i, id, btf_kind_str(t)); in bpf_core_parse_spec() 500 local_id = local_acc->type_id; in bpf_core_match_member() [all …]
|
/linux-6.6.21/drivers/hid/usbhid/ |
D | hid-pidff.c | 182 int type_id[sizeof(pidff_effect_types)]; member 556 int type_id; in pidff_upload_effect() local 569 pidff->type_id[PID_CONSTANT]); in pidff_upload_effect() 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() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | bpf_tcp_ca.c | 26 s32 type_id; in bpf_tcp_ca_init() local 28 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 29 if (type_id < 0) in bpf_tcp_ca_init() 31 sock_id = type_id; in bpf_tcp_ca_init() 33 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 34 if (type_id < 0) in bpf_tcp_ca_init() 36 tcp_sock_id = type_id; in bpf_tcp_ca_init()
|
/linux-6.6.21/arch/x86/events/intel/ |
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 68 struct rb_node *node = rb_find(&type_id, &discovery_tables, __type_cmp); in search_uncore_discovery_type() 493 type->type_id, type->box_ids[box->pmu->pmu_idx]); in intel_generic_uncore_mmio_init_box() 501 type->type_id, type->box_ids[box->pmu->pmu_idx], in intel_generic_uncore_mmio_init_box() 557 static bool uncore_update_uncore_type(enum uncore_access_type type_id, in uncore_update_uncore_type() argument 561 uncore->type_id = type->type; in uncore_update_uncore_type() 567 switch (type_id) { in uncore_update_uncore_type() [all …]
|
/linux-6.6.21/kernel/bpf/ |
D | btf.c | 184 #define BTF_TYPE_ID_VALID(type_id) ((type_id) <= BTF_MAX_TYPE) argument 277 u32 type_id; member 418 u32 type_id; member 449 u32 type_id, void *data, u8 bits_offsets, 457 const struct btf_type *t, u32 type_id); 825 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id() argument 827 while (type_id < btf->start_id) in btf_type_by_id() 830 type_id -= btf->start_id; in btf_type_by_id() 831 if (type_id >= btf->nr_types) in btf_type_by_id() 833 return btf->types[type_id]; in btf_type_by_id() [all …]
|
D | bpf_struct_ops.c | 115 s32 type_id, value_id, module_id; in bpf_struct_ops_init() local 154 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init() 156 if (type_id < 0) { in bpf_struct_ops_init() 161 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_init() 202 st_ops->type_id = type_id; in bpf_struct_ops_init() 230 const struct bpf_struct_ops *bpf_struct_ops_find(u32 type_id) in bpf_struct_ops_find() argument 234 if (!type_id || !btf_vmlinux) in bpf_struct_ops_find() 238 if (bpf_struct_ops[i]->type_id == type_id) in bpf_struct_ops_find() 481 prog->aux->attach_btf_id != st_ops->type_id || in bpf_struct_ops_map_update_elem()
|
/linux-6.6.21/net/bpf/ |
D | bpf_dummy_struct_ops.c | 90 if (prog->aux->attach_btf_id != st_ops->type_id) in bpf_struct_ops_test_run() 180 s32 type_id; in bpf_dummy_ops_btf_struct_access() local 182 type_id = btf_find_by_name_kind(reg->btf, "bpf_dummy_ops_state", in bpf_dummy_ops_btf_struct_access() 184 if (type_id < 0) in bpf_dummy_ops_btf_struct_access() 188 state = btf_type_by_id(reg->btf, type_id); in bpf_dummy_ops_btf_struct_access()
|
/linux-6.6.21/drivers/media/pci/cx88/ |
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-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
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-6.6.21/tools/bpf/resolve_btfids/ |
D | main.c | 512 int err, type_id; in symbols_resolve() local 540 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve() 547 type = btf__type_by_id(btf, type_id); in symbols_resolve() 550 type_id); in symbols_resolve() 572 type_id); in symbols_resolve() 580 str, id->id, type_id, id->id); in symbols_resolve() 582 id->id = type_id; in symbols_resolve()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_err.c | 1285 .type_id = NONE_ERROR, 1288 .type_id = FIFO_ERROR, 1291 .type_id = MEMORY_ERROR, 1294 .type_id = POISON_ERROR, 1297 .type_id = MSIX_ECC_ERROR, 1300 .type_id = TQP_INT_ECC_ERROR, 1303 .type_id = PF_ABNORMAL_INT_ERROR, 1306 .type_id = MPF_ABNORMAL_INT_ERROR, 1309 .type_id = COMMON_ERROR, 1312 .type_id = PORT_ERROR, [all …]
|
/linux-6.6.21/include/linux/ |
D | btf.h | 157 u32 *type_id, 177 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, 179 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, 195 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, 488 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id); 512 u32 type_id) in btf_type_by_id() argument
|
/linux-6.6.21/drivers/net/ethernet/microchip/vcap/ |
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-6.6.21/net/netfilter/ |
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-6.6.21/drivers/net/ethernet/microchip/sparx5/ |
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 …]
|