Home
last modified time | relevance | path

Searched refs:type_id (Results 1 – 25 of 70) sorted by relevance

123

/linux/tools/bpf/bpftool/Documentation/
H A Dbpftool-btf.rst101 [1] PTR '(anon)' type_id=2
103 'pad' type_id=3 bits_offset=0
104 'sock' type_id=4 bits_offset=64
106 [4] PTR '(anon)' type_id=5
156 [1] PTR '(anon)' type_id=2
158 'a' type_id=3 bits_offset=0
159 'b' type_id=4 bits_offset=0
162 'const_int_field' type_id=5 bits_offset=0
163 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4
164 'arr_field' type_id=8 bits_offset=40
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dresolve_btfids.c66 __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()
[all...]
H A Dbtf_dump.c345 __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()
364 ret = btf_dump__dump_type_data(d, type_id, ptr, ptr_sz, &opts); in btf_dump_data()
645 __s32 type_id; in test_btf_dump_struct_data() local
715 type_id = btf__find_by_name(btf, "file_operations"); in test_btf_dump_struct_data()
716 if (ASSERT_GT(type_id, 0, "find type id")) { in test_btf_dump_struct_data()
717 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data()
720 ret = btf_dump__dump_type_data(d, type_id, fop in test_btf_dump_struct_data()
1005 __s32 type_id; test_btf_datasec() local
[all...]
H A Dbtf_module.c13 __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 Dbtf_tag.c58 __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()
H A Dcore_reloc_raw.c59 .type_id = 4, in test_bad_local_id()
65 .type_id = 100500, /* !!! this type id does not exist */ in test_bad_local_id()
/linux/drivers/media/usb/pwc/
H A Dpwc-if.c775 int vendor_id, product_id, type_id; in usb_pwc_probe() local
802 type_id = 645; in usb_pwc_probe()
807 type_id = 646; in usb_pwc_probe()
812 type_id = 646; in usb_pwc_probe()
817 type_id = 675; in usb_pwc_probe()
822 type_id = 680; in usb_pwc_probe()
827 type_id = 690; in usb_pwc_probe()
832 type_id = 730; in usb_pwc_probe()
837 type_id = 740; in usb_pwc_probe()
842 type_id = 750; in usb_pwc_probe()
[all …]
/linux/net/ipv4/
H A Dbpf_tcp_ca.c23 s32 type_id; in bpf_tcp_ca_init() local
25 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init()
26 if (type_id < 0) in bpf_tcp_ca_init()
28 sock_id = type_id; in bpf_tcp_ca_init()
30 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init()
31 if (type_id < 0) in bpf_tcp_ca_init()
33 tcp_sock_id = type_id; in bpf_tcp_ca_init()
36 type_id = btf_find_by_name_kind(btf, "tcp_congestion_ops", BTF_KIND_STRUCT); in bpf_tcp_ca_init()
37 if (type_id < 0) in bpf_tcp_ca_init()
39 tcp_congestion_ops_type = btf_type_by_id(btf, type_id); in bpf_tcp_ca_init()
/linux/net/bpf/
H A Dbpf_dummy_struct_ops.c141 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()
242 s32 type_id; in bpf_dummy_ops_btf_struct_access() local
244 type_id = btf_find_by_name_kind(reg->btf, "bpf_dummy_ops_state", in bpf_dummy_ops_btf_struct_access()
246 if (type_id < 0) in bpf_dummy_ops_btf_struct_access()
250 state = btf_type_by_id(reg->btf, type_id); in bpf_dummy_ops_btf_struct_access()
/linux/arch/x86/events/intel/
H A Duncore_discovery.c38 const u16 *type_id = key; in __type_cmp() local
40 if (type_b->type > *type_id) in __type_cmp()
42 else if (type_b->type < *type_id) in __type_cmp()
49 search_uncore_discovery_type(u16 type_id) in search_uncore_discovery_type() argument
51 struct rb_node *node = rb_find(&type_id, &discovery_tables, __type_cmp); in search_uncore_discovery_type()
639 type->type_id, box->pmu->pmu_idx); in intel_generic_uncore_mmio_init_box()
645 type->type_id, unit->id); in intel_generic_uncore_mmio_init_box()
653 type->type_id, unit->id, (unsigned long long)addr); in intel_generic_uncore_mmio_init_box()
708 static bool uncore_update_uncore_type(enum uncore_access_type type_id, in uncore_update_uncore_type() argument
712 uncore->type_id = type->type; in uncore_update_uncore_type()
[all …]
/linux/kernel/bpf/
H A Dbtf.c187 #define BTF_TYPE_ID_VALID(type_id) ((type_id) <= BTF_MAX_TYPE) argument
290 u32 type_id; member
431 u32 type_id; member
462 u32 type_id, void *data, u8 bits_offsets,
470 const struct btf_type *t, u32 type_id);
959 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id) in btf_type_by_id() argument
961 while (type_id < btf->start_id) in btf_type_by_id()
964 type_id -= btf->start_id; in btf_type_by_id()
965 if (type_id >= btf->nr_types) in btf_type_by_id()
967 return btf->types[type_id]; in btf_type_by_id()
[all …]
/linux/drivers/media/pci/cx88/
H A Dcx88-mpeg.c507 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 Dlan966x_vcap_ag_api.c2190 .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 Dmain.c602 int err, type_id; in symbols_resolve()
611 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve()
618 type = btf__type_by_id(btf, type_id); in symbols_resolve()
621 type_id); in symbols_resolve()
643 type_id); in id_patch()
651 str, id->id, type_id, id->id); in id_patch()
654 id->id = type_id;
859 static const struct btf_type *btf_type_skip_qualifiers(const struct btf *btf, s32 type_id)
539 int err, type_id; symbols_resolve() local
[all...]
/linux/drivers/hid/usbhid/
H A Dhid-pidff.c236 int type_id[ARRAY_SIZE(pidff_effect_types)]; member
312 return pidff->type_id[id]; in pidff_get_effect_type_id()
917 const int type_id = pidff_get_effect_type_id(pidff, new); in pidff_upload_effect() local
919 if (!type_id) { in pidff_upload_effect()
928 int error = pidff_request_effect_upload(pidff, type_id); in pidff_upload_effect()
996 pidff->set_effect_type->value[0] = pidff->type_id[PID_SPRING]; in pidff_autocenter()
1294 if (!PIDFF_FIND_SPECIAL_KEYS(type_id, create_new_effect_type, in pidff_find_special_fields()
1353 int pidff_type = pidff->type_id[i]; in pidff_find_effects()
1363 if (pidff->type_id[PID_CONSTANT]) in pidff_find_effects()
1365 if (pidff->type_id[PID_RAMP]) in pidff_find_effects()
[all …]
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_model_kunit.c2692 .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/drivers/hid/bpf/
H A Dhid_bpf_struct_ops.c93 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/sparx5/
H A Dsparx5_vcap_ag_api.c2290 .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/microchip/sparx5/lan969x/
H A Dlan969x_vcap_ag_api.c2289 .type_id = 0,
2294 .type_id = 2,
2302 .type_id = 0,
2307 .type_id = 3,
2312 .type_id = 4,
2317 .type_id = 5,
2322 .type_id = 6,
2327 .type_id = 1,
2335 .type_id = 0,
2343 .type_id = 0,
[all …]
/linux/tools/lib/bpf/
H A Dlibbpf_internal.h247 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id);
521 __u32 type_id; member
539 i->type_id = bswap_32(i->type_id); in bpf_func_info_bswap()
553 i->type_id = bswap_32(i->type_id); in bpf_core_relo_bswap()
583 typedef int (*type_id_visit_fn)(__u32 *type_id, void *ctx);
H A Dbtf.h163 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id);
164 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id);
241 LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id);
244 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
/linux/net/netfilter/
H A Dnf_bpf_link.c276 s32 type_id; in nf_ptr_to_btf_id() local
282 type_id = btf_find_by_name_kind(btf, name, BTF_KIND_STRUCT); in nf_ptr_to_btf_id()
283 if (WARN_ON_ONCE(type_id < 0)) in nf_ptr_to_btf_id()
287 info->btf_id = type_id; in nf_ptr_to_btf_id()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_err.c1706 .type_id = NONE_ERROR,
1709 .type_id = FIFO_ERROR,
1712 .type_id = MEMORY_ERROR,
1715 .type_id = POISON_ERROR,
1718 .type_id = MSIX_ECC_ERROR,
1721 .type_id = TQP_INT_ECC_ERROR,
1724 .type_id = PF_ABNORMAL_INT_ERROR,
1728 .type_id = MPF_ABNORMAL_INT_ERROR,
1732 .type_id = COMMON_ERROR,
1735 .type_id = PORT_ERROR,
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dnetif_receive_skb.c63 _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()
/linux/tools/perf/util/
H A Dbpf_off_cpu.c118 u32 type_id; in check_sched_switch_args() local
125 type_id = btf__find_by_name_kind(btf, "btf_trace_sched_switch", in check_sched_switch_args()
127 if ((s32)type_id < 0) in check_sched_switch_args()
130 t1 = btf__type_by_id(btf, type_id); in check_sched_switch_args()

123