/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_module.c | 13 __s32 type_id; local 28 type_id = btf__find_by_name(module_btf, symbol_name); 29 ASSERT_GT(type_id, 0, "func not found");
|
H A D | resolve_btfids.c | 66 __resolve_symbol(struct btf *btf, int type_id) argument 72 type = btf__type_by_id(btf, type_id); 74 PRINT_FAIL("Failed to get type for ID %d\n", type_id); 87 PRINT_FAIL("Failed to get name for BTF ID %d\n", type_id); 92 test_symbols[i].id = type_id; 101 int type_id; local 111 for (type_id = 1; type_id < nr; type_id++) { 112 if (__resolve_symbol(btf, type_id)) [all...] |
H A D | btf_tag.c | 58 __s32 type_id; local 73 type_id = btf__find_by_name_kind(*vmlinux_btf, "user", BTF_KIND_TYPE_TAG); 74 if (type_id <= 0) { 90 type_id = btf__find_by_name_kind(*module_btf, "user", BTF_KIND_TYPE_TAG); 91 if (type_id <= 0) {
|
H A D | btf_dump.c | 275 __s32 type_id; local 289 type_id = btf__find_by_name(btf, name); 290 if (!ASSERT_GE(type_id, 0, "find type id")) 292 type_sz = btf__resolve_size(btf, type_id); 294 ret = btf_dump__dump_type_data(d, type_id, ptr, ptr_sz, &opts); 575 __s32 type_id; local 645 type_id = btf__find_by_name(btf, "file_operations"); 646 if (ASSERT_GT(type_id, 0, "find type id")) { 647 type_sz = btf__resolve_size(btf, type_id); 650 ret = btf_dump__dump_type_data(d, type_id, fop 819 __s32 type_id; local [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | btf_ptr.h | 18 __u32 type_id; member in struct:btf_ptr
|
H A D | bpf_iter_task_btf.c | 24 ptr.type_id = bpf_core_type_id_kernel(struct task_struct);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | btf_helpers.h | 10 const char *btf_type_raw_dump(const struct btf *btf, int type_id);
|
/linux-master/drivers/media/usb/pwc/ |
H A D | pwc-if.c | 778 int vendor_id, product_id, type_id; local 805 type_id = 645; 810 type_id = 646; 815 type_id = 646; 820 type_id = 675; 825 type_id = 680; 830 type_id = 690; 835 type_id = 730; 840 type_id = 740; 845 type_id [all...] |
/linux-master/net/bpf/ |
H A D | bpf_dummy_struct_ops.c | 96 s32 type_id; local 99 type_id = btf_find_by_name_kind(bpf_dummy_ops_btf, 102 if (type_id < 0) 104 if (prog->aux->attach_btf_id != type_id) 190 s32 type_id; local 192 type_id = btf_find_by_name_kind(reg->btf, "bpf_dummy_ops_state", 194 if (type_id < 0) 198 state = btf_type_by_id(reg->btf, type_id);
|
/linux-master/net/ipv4/ |
H A D | bpf_tcp_ca.c | 27 s32 type_id; local 29 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); 30 if (type_id < 0) 32 sock_id = type_id; 34 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); 35 if (type_id < 0) 37 tcp_sock_id = type_id; 40 type_id = btf_find_by_name_kind(btf, "tcp_congestion_ops", BTF_KIND_STRUCT); 41 if (type_id < 0) 43 tcp_congestion_ops_type = btf_type_by_id(btf, type_id); [all...] |
/linux-master/tools/lib/bpf/ |
H A D | btf.c | 451 static int btf_validate_str(const struct btf *btf, __u32 str_off, const char *what, __u32 type_id) argument 457 pr_warn("btf: type [%u]: invalid %s (string offset %u)\n", type_id, what, str_off); 621 struct btf_type *btf_type_by_id(const struct btf *btf, __u32 type_id) argument 623 if (type_id == 0) 625 if (type_id < btf->start_id) 626 return btf_type_by_id(btf->base_btf, type_id); 627 return btf->types_data + btf->type_offs[type_id - btf->start_id]; 630 const struct btf_type *btf__type_by_id(const struct btf *btf, __u32 type_id) argument 632 if (type_id >= btf->start_id + btf->nr_types) 634 return btf_type_by_id((struct btf *)btf, type_id); 763 btf__resolve_size(const struct btf *btf, __u32 type_id) argument 873 btf__resolve_type(const struct btf *btf, __u32 type_id) argument 1801 btf_rewrite_type_ids(__u32 *type_id, void *ctx) argument 2180 btf__add_field(struct btf *btf, const char *name, int type_id, __u32 bit_offset, __u32 bit_size) argument 2596 btf__add_func_param(struct btf *btf, const char *name, int type_id) argument 2649 btf__add_var(struct btf *btf, const char *name, int linkage, int type_id) argument 3326 btf_dedup_table_add(struct btf_dedup *d, long hash, __u32 type_id) argument 3854 int type_id; local 3917 btf_dedup_prim_type(struct btf_dedup *d, __u32 type_id) argument 4017 is_type_mapped(struct btf_dedup *d, uint32_t type_id) argument 4027 resolve_type_id(struct btf_dedup *d, __u32 type_id) argument 4038 resolve_fwd_id(struct btf_dedup *d, uint32_t type_id) argument 4464 btf_dedup_struct_type(struct btf_dedup *d, __u32 type_id) argument 4558 btf_dedup_ref_type(struct btf_dedup *d, __u32 type_id) argument 4708 __u32 type_id; local 4738 btf_dedup_resolve_fwd(struct btf_dedup *d, struct hashmap *names_map, __u32 type_id) argument 4892 btf_dedup_remap_type_id(__u32 *type_id, void *ctx) argument [all...] |
H A D | relo_core.c | 32 static s64 btf__resolve_size(const struct btf *btf, u32 type_id) argument 37 t = btf_type_by_id(btf, type_id); 82 t = btf_type_by_id(btf, acc->type_id); 280 spec->root_type_id = relo->type_id; 305 t = skip_mods_and_typedefs(btf, relo->type_id, &id); 311 acc->type_id = id; 358 acc->type_id = id; 377 spec->spec[spec->len].type_id = id; 387 prog_name, relo->type_id, spec_str, i, id, btf_kind_str(t)); 500 local_id = local_acc->type_id; 678 bpf_core_calc_field_relo(const char *prog_name, const struct bpf_core_relo *relo, const struct bpf_core_spec *spec, __u64 *val, __u32 *field_sz, __u32 *type_id, bool *validate) argument 1160 __u32 type_id; local [all...] |
H A D | relo_core.h | 24 __u32 type_id; /* struct/union type or array element type */ member in struct:bpf_core_accessor
|
/linux-master/tools/bpf/bpftool/ |
H A 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); 135 static int btf_dumper_modifier(const struct btf_dumper *d, __u32 type_id, argument 140 actual_type_id = btf__resolve_type(d->btf, type_id); 247 static int btf_dumper_array(const struct btf_dumper *d, __u32 type_id, argument 250 const struct btf_type *t = btf__type_by_id(d->btf, type_id); 465 static int btf_dumper_struct(const struct btf_dumper *d, __u32 type_id, argument 475 t = btf__type_by_id(d->btf, type_id); 513 static int btf_dumper_var(const struct btf_dumper *d, __u32 type_id, argument 516 const struct btf_type *t = btf__type_by_id(d->btf, type_id); 527 btf_dumper_datasec(const struct btf_dumper *d, __u32 type_id, const void *data) argument 555 btf_dumper_do_type(const struct btf_dumper *d, __u32 type_id, __u8 bit_offset, const void *data) argument 598 btf_dumper_type(const struct btf_dumper *d, __u32 type_id, const void *data) argument 619 __btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, int pos, int size) argument 747 btf_dumper_type_only(const struct btf *btf, __u32 type_id, char *func_sig, int size) argument [all...] |
H A D | gen.c | 1973 static void btfgen_mark_member(struct btfgen_info *info, int type_id, int idx) argument 1975 const struct btf_type *t = btf__type_by_id(info->marked_btf, type_id); 1982 btfgen_mark_type(struct btfgen_info *info, unsigned int type_id, bool follow_pointers) argument 1984 const struct btf_type *btf_type = btf__type_by_id(info->src_btf, type_id); 1990 if (type_id == 0) 1994 cloned_type = (struct btf_type *) btf__type_by_id(info->marked_btf, type_id); 2049 p_err("unsupported kind: %s (%d)", btf_kind_str(btf_type), type_id); 2062 unsigned int type_id = targ_spec->root_type_id; local 2066 btf_type = btf__type_by_id(btf, type_id); 2067 err = btfgen_mark_type(info, type_id, fals 2118 btfgen_mark_type_match(struct btfgen_info *info, __u32 type_id, bool behind_ptr) argument 2381 btfgen_remap_id(__u32 *type_id, void *ctx) argument [all...] |
/linux-master/drivers/hid/usbhid/ |
H A D | hid-pidff.c | 182 int type_id[sizeof(pidff_effect_types)]; member in struct:pidff_device 556 int type_id; local 569 pidff->type_id[PID_CONSTANT]); 588 type_id = PID_SQUARE; 591 type_id = PID_TRIANGLE; 594 type_id = PID_SINE; 597 type_id = PID_SAW_UP; 600 type_id = PID_SAW_DOWN; 608 pidff->type_id[type_id]); [all...] |
/linux-master/arch/x86/events/intel/ |
H A D | uncore_discovery.c | 55 const u16 *type_id = key; local 57 if (type_b->type > *type_id) 59 else if (type_b->type < *type_id) 66 search_uncore_discovery_type(u16 type_id) argument 68 struct rb_node *node = rb_find(&type_id, &discovery_tables, __type_cmp); 494 type->type_id, type->box_ids[box->pmu->pmu_idx]); 502 type->type_id, type->box_ids[box->pmu->pmu_idx], 558 static bool uncore_update_uncore_type(enum uncore_access_type type_id, argument 562 uncore->type_id = type->type; 568 switch (type_id) { 601 intel_uncore_generic_init_uncores(enum uncore_access_type type_id, int num_extra) argument [all...] |
/linux-master/include/linux/ |
H A D | btf.h | 148 /* Figure out the size of a type_id. If type_id is a modifier 152 * In describing "const void *", type_id is "const" and "const" 155 * If type_id is a simple "int", then return type will be "int". 158 * @type_id: Find out the size of type_id. The type_id of the return 159 * type is set to *type_id. 163 * NULL is returned if type_id itself does not have size info 166 * *type_id an 512 bpf_struct_ops_find(struct btf *btf, u32 type_id) argument 541 btf_type_by_id(const struct btf *btf, u32 type_id) argument [all...] |
/linux-master/kernel/bpf/ |
H A D | btf.c | 63 * type_id: 65 * Each btf_type object is identified by a type_id. The type_id 67 * the BTF type section. The first one has type_id 1. The second 68 * one has type_id 2...etc. Hence, an earlier btf_type has 69 * a smaller type_id. 72 * type_id (i.e. the "type" in the "struct btf_type"). 81 * by specifying type_id: 83 * [1] CONST (anon) type_id=2 84 * [2] PTR (anon) type_id 285 u32 type_id; member in struct:resolve_vertex 426 u32 type_id; member in struct:btf_show::__anon2842 847 btf_type_by_id(const struct btf *btf, u32 type_id) argument 1309 btf_show_start_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) argument 1327 btf_show_start_aggr_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) argument 1375 btf_show_start_array_type(struct btf_show *show, const struct btf_type *t, u32 type_id, u16 array_encoding, void *data) argument 1393 btf_show_start_struct_type(struct btf_show *show, const struct btf_type *t, u32 type_id, void *data) argument 1833 env_type_is_resolved(const struct btf_verifier_env *env, u32 type_id) argument 1843 env_stack_push(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) argument 1883 u32 type_id = env->stack[--(env->top_stack)].type_id; local 1918 __btf_resolve_size(const struct btf *btf, const struct btf_type *type, u32 *type_size, const struct btf_type **elem_type, u32 *elem_id, u32 *total_nelems, u32 *type_id) argument 1994 btf_resolved_type_id(const struct btf *btf, u32 type_id) argument 2003 btf_type_id_resolve(const struct btf *btf, u32 *type_id) argument 2010 btf_resolved_type_size(const struct btf *btf, u32 type_id) argument 2018 btf_type_id_size(const struct btf *btf, u32 *type_id, u32 *ret_size) argument 2110 btf_df_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offsets, struct btf_show *show) argument 2397 btf_int_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 2745 btf_modifier_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 2758 btf_var_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 2767 btf_ptr_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 3006 __btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 3059 btf_array_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 3294 u32 type_id; member in struct:btf_field_info::__anon2845::__anon2846 3976 __btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 4023 btf_struct_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 4191 btf_enum_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 4294 btf_enum64_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 4619 u32 var_type_id = vsi->type, type_id, type_size = 0; local 4656 btf_datasec_show(const struct btf *btf, const struct btf_type *t, u32 type_id, void *data, u8 bits_offset, struct btf_show *show) argument 5082 btf_resolve_valid(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) argument 5123 btf_resolve(struct btf_verifier_env *env, const struct btf_type *t, u32 type_id) argument 5160 u32 type_id, i; local 7070 u32 kern_type_id, type_id; local 7340 btf_type_show(const struct btf *btf, u32 type_id, void *obj, struct btf_show *show) argument 7358 btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m, u64 flags) argument 7372 btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, struct seq_file *m) argument 7408 btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, char *buf, int len, u64 flags) argument 8925 bpf_struct_ops_find(struct btf *btf, u32 type_id) argument [all...] |
/linux-master/drivers/media/pci/cx88/ |
H A D | cx88-mpeg.c | 507 if (d->type_id == btype) 522 core->active_type_id != drv->type_id) 525 if (drv->type_id == CX88_MPEG_DVB) { 542 core->active_type_id = drv->type_id; 558 if (drv->type_id == CX88_MPEG_DVB) { 579 if ((drv->type_id != CX88_MPEG_DVB) && 580 (drv->type_id != CX88_MPEG_BLACKBIRD)) 603 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", 661 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", 677 if (d->type_id ! [all...] |
/linux-master/drivers/net/wireless/ath/ |
H A D | dfs_pattern_detector.h | 60 * @type_id: pattern type, as defined by regulatory 72 u8 type_id; member in struct:radar_detector_specs
|
/linux-master/net/tipc/ |
H A D | eth_media.c | 95 .type_id = TIPC_MEDIA_TYPE_ETH,
|
H A D | ib_media.c | 101 .type_id = TIPC_MEDIA_TYPE_IB,
|
/linux-master/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 [all...] |
/linux-master/tools/bpf/resolve_btfids/ |
H A D | main.c | 530 int err, type_id; local 558 for (type_id = 1; type_id < nr_types; type_id++) { 565 type = btf__type_by_id(btf, type_id); 568 type_id); 590 type_id); 598 str, id->id, type_id, id->id); 600 id->id = type_id;
|