/linux/tools/bpf/bpftool/Documentation/ |
A D | bpftool-btf.rst | 97 [1] PTR '(anon)' type_id=2 102 [4] PTR '(anon)' type_id=5 152 [1] PTR '(anon)' type_id=2 164 [5] CONST '(anon)' type_id=6 170 [11] PTR '(anon)' type_id=12 180 'arg1' type_id=1 181 'arg2' type_id=3 218 [1] PTR '(anon)' type_id=0 256 'ara' type_id=56050 260 'ara' type_id=56050 [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | resolve_btfids.c | 66 __resolve_symbol(struct btf *btf, int type_id) in BTF_ID_LIST_GLOBAL() 72 type = btf__type_by_id(btf, type_id); in BTF_ID_LIST_GLOBAL() 74 PRINT_FAIL("Failed to get type for ID %d\n", type_id); in BTF_ID_LIST_GLOBAL() 87 PRINT_FAIL("Failed to get name for BTF ID %d\n", type_id); in BTF_ID_LIST_GLOBAL() 92 test_symbols[i].id = type_id; in BTF_ID_LIST_GLOBAL() 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_dump.c | 252 __s32 type_id; in btf_dump_data() local 266 type_id = btf__find_by_name(btf, name); in btf_dump_data() 267 if (!ASSERT_GE(type_id, 0, "find type id")) in btf_dump_data() 269 type_sz = btf__resolve_size(btf, type_id); in btf_dump_data() 552 __s32 type_id; in test_btf_dump_struct_data() local 624 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 725 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 753 type_sz = btf__resolve_size(btf, type_id); in test_btf_dump_struct_data() 796 __s32 type_id; in test_btf_datasec() local 800 type_id = btf__find_by_name(btf, name); in test_btf_datasec() [all …]
|
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()
|
/linux/drivers/media/usb/pwc/ |
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/ |
A D | btf_dumper.c | 73 func_type = btf__type_by_id(prog_btf, finfo->type_id); in dump_prog_id_as_func_ptr() 132 actual_type_id = btf__resolve_type(d->btf, type_id); in btf_dumper_modifier() 441 t = btf__type_by_id(d->btf, type_id); in btf_dumper_struct() 500 t = btf__type_by_id(d->btf, type_id); in btf_dumper_datasec() 532 return btf_dumper_struct(d, type_id, data); in btf_dumper_do_type() 534 return btf_dumper_array(d, type_id, data); in btf_dumper_do_type() 553 return btf_dumper_var(d, type_id, bit_offset, data); in btf_dumper_do_type() 555 return btf_dumper_datasec(d, type_id, data); in btf_dumper_do_type() 565 return btf_dumper_do_type(d, type_id, 0, data); in btf_dumper_type() 591 if (!type_id) { in __btf_dumper_type_only() [all …]
|
/linux/tools/lib/bpf/ |
A D | btf.c | 457 if (type_id == 0) in btf_type_by_id() 693 return type_id; in btf__resolve_type() 3603 int type_id; in btf_dedup_prep() local 3609 for (type_id = 1; type_id < d->btf->start_id; type_id++) { in btf_dedup_prep() 3613 d->map[type_id] = type_id; in btf_dedup_prep() 3743 if (type_id == new_id && btf_dedup_table_add(d, h, type_id)) in btf_dedup_prim_type() 3776 while (is_type_mapped(d, type_id) && d->map[type_id] != type_id) in resolve_type_id() 3777 type_id = d->map[type_id]; in resolve_type_id() 3792 while (is_type_mapped(d, type_id) && d->map[type_id] != type_id) in resolve_fwd_id() 3793 type_id = d->map[type_id]; in resolve_fwd_id() [all …]
|
A D | relo_core.c | 154 __u32 type_id, in bpf_core_parse_spec() argument 171 spec->root_type_id = type_id; in bpf_core_parse_spec() 202 acc->type_id = id; in bpf_core_parse_spec() 247 acc->type_id = id; in bpf_core_parse_spec() 390 local_id = local_acc->type_id; in bpf_core_match_member() 423 targ_acc->type_id = targ_id; in bpf_core_match_member() 594 *type_id = acc->type_id; in bpf_core_calc_field_relo() 651 *type_id = field_type_id; in bpf_core_calc_field_relo() 1053 __u32 type_id; in bpf_core_dump_spec() local 1056 type_id = spec->root_type_id; in bpf_core_dump_spec() [all …]
|
A D | btf_dump.c | 1663 int alignment = btf__align_of(btf, type_id); in ptr_is_aligned() 1673 __u32 type_id, in btf_dump_int_data() argument 1683 pr_warn("unexpected size %d for id [%u]\n", sz, type_id); in btf_dump_int_data() 1690 if (!ptr_is_aligned(d->btf, type_id, data)) { in btf_dump_int_data() 1757 pr_warn("unexpected sz %d for id [%u]\n", sz, type_id); in btf_dump_int_data() 1771 __u32 type_id, in btf_dump_float_data() argument 1779 if (!ptr_is_aligned(d->btf, type_id, data)) { in btf_dump_float_data() 1809 __u32 type_id; in btf_dump_var_data() local 1828 type_id = v->type; in btf_dump_var_data() 1829 t = btf__type_by_id(d->btf, type_id); in btf_dump_var_data() [all …]
|
A D | btf.h | 145 LIBBPF_API __s64 btf__resolve_size(const struct btf *btf, __u32 type_id); 146 LIBBPF_API int btf__resolve_type(const struct btf *btf, __u32 type_id); 235 LIBBPF_API int btf__add_func_param(struct btf *btf, const char *name, int type_id); 238 LIBBPF_API int btf__add_var(struct btf *btf, const char *name, int linkage, int type_id);
|
/linux/drivers/hid/usbhid/ |
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/kernel/bpf/ |
A D | btf.c | 178 #define BTF_TYPE_ID_VALID(type_id) ((type_id) <= BTF_MAX_TYPE) argument 230 u32 type_id; member 363 u32 type_id; member 1192 show->state.type_id = type_id; in btf_show_start_type() 1273 u32 type_id, in btf_show_start_struct_type() argument 1628 u32 type_id) in env_type_is_resolved() argument 1654 v->type_id = type_id; in env_stack_push() 1677 u32 type_id = env->stack[--(env->top_stack)].type_id; in env_stack_pop_resolved() local 1774 *type_id = id; in __btf_resolve_size() 1798 *type_id = btf_resolved_type_id(btf, *type_id); in btf_type_id_resolve() [all …]
|
A D | bpf_struct_ops.c | 105 s32 type_id, value_id, module_id; in bpf_struct_ops_init() local 144 type_id = btf_find_by_name_kind(btf, st_ops->name, in bpf_struct_ops_init() 146 if (type_id < 0) { in bpf_struct_ops_init() 151 t = btf_type_by_id(btf, type_id); in bpf_struct_ops_init() 192 st_ops->type_id = type_id; in bpf_struct_ops_init() 220 const struct bpf_struct_ops *bpf_struct_ops_find(u32 type_id) in bpf_struct_ops_find() argument 224 if (!type_id || !btf_vmlinux) in bpf_struct_ops_find() 228 if (bpf_struct_ops[i]->type_id == type_id) in bpf_struct_ops_find() 444 prog->aux->attach_btf_id != st_ops->type_id || in bpf_struct_ops_map_update_elem()
|
/linux/arch/x86/events/intel/ |
A D | uncore_discovery.c | 67 const u16 *type_id = key; in __type_cmp() local 69 if (type_b->type > *type_id) in __type_cmp() 71 else if (type_b->type < *type_id) in __type_cmp() 78 search_uncore_discovery_type(u16 type_id) in search_uncore_discovery_type() argument 465 type->type_id, type->box_ids[box->pmu->pmu_idx]); in intel_generic_uncore_mmio_init_box() 473 type->type_id, type->box_ids[box->pmu->pmu_idx], in intel_generic_uncore_mmio_init_box() 533 uncore->type_id = type->type; in uncore_update_uncore_type() 539 switch (type_id) { in uncore_update_uncore_type() 580 uncores = kcalloc(num_discovered_types[type_id] + num_extra + 1, in intel_uncore_generic_init_uncores() 587 if (type->access_type != type_id) in intel_uncore_generic_init_uncores() [all …]
|
/linux/net/ipv4/ |
A D | bpf_tcp_ca.c | 37 s32 type_id; in bpf_tcp_ca_init() local 39 type_id = btf_find_by_name_kind(btf, "sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 40 if (type_id < 0) in bpf_tcp_ca_init() 42 sock_id = type_id; in bpf_tcp_ca_init() 44 type_id = btf_find_by_name_kind(btf, "tcp_sock", BTF_KIND_STRUCT); in bpf_tcp_ca_init() 45 if (type_id < 0) in bpf_tcp_ca_init() 47 tcp_sock_id = type_id; in bpf_tcp_ca_init()
|
/linux/net/bpf/ |
A D | bpf_dummy_struct_ops.c | 87 if (prog->aux->attach_btf_id != st_ops->type_id) in bpf_struct_ops_test_run() 151 s32 type_id; in bpf_dummy_ops_btf_struct_access() local 154 type_id = btf_find_by_name_kind(btf, "bpf_dummy_ops_state", in bpf_dummy_ops_btf_struct_access() 156 if (type_id < 0) in bpf_dummy_ops_btf_struct_access() 159 state = btf_type_by_id(btf, type_id); in bpf_dummy_ops_btf_struct_access()
|
/linux/include/linux/ |
A D | btf.h | 52 u32 *type_id, 72 void btf_type_seq_show(const struct btf *btf, u32 type_id, void *obj, 74 int btf_type_seq_show_flags(const struct btf *btf, u32 type_id, void *obj, 90 int btf_type_snprintf_show(const struct btf *btf, u32 type_id, void *obj, 225 const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id); 231 u32 type_id) in btf_type_by_id() argument
|
/linux/drivers/media/pci/cx88/ |
A D | cx88-mpeg.c | 504 if (d->type_id == btype) in cx8802_get_driver() 519 core->active_type_id != drv->type_id) in cx8802_request_acquire() 522 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_acquire() 539 core->active_type_id = drv->type_id; in cx8802_request_acquire() 555 if (drv->type_id == CX88_MPEG_DVB) { in cx8802_request_release() 576 if ((drv->type_id != CX88_MPEG_DVB) && in cx8802_check_driver() 577 (drv->type_id != CX88_MPEG_BLACKBIRD)) in cx8802_check_driver() 600 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_register_driver() 658 drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", in cx8802_unregister_driver() 674 if (d->type_id != drv->type_id) in cx8802_unregister_driver()
|
/linux/tools/bpf/resolve_btfids/ |
A D | main.c | 485 int err, type_id; in symbols_resolve() local 513 for (type_id = 1; type_id < nr_types; type_id++) { in symbols_resolve() 520 type = btf__type_by_id(btf, type_id); in symbols_resolve() 523 type_id); in symbols_resolve() 545 type_id); in symbols_resolve() 553 str, id->id, type_id, id->id); in symbols_resolve() 555 id->id = type_id; in symbols_resolve()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_err.c | 1283 .type_id = NONE_ERROR, 1286 .type_id = FIFO_ERROR, 1289 .type_id = MEMORY_ERROR, 1310 .type_id = PORT_ERROR, 1313 .type_id = ETS_ERROR, 1316 .type_id = NCSI_ERROR, 1319 .type_id = GLB_ERROR, 1322 .type_id = LINK_ERROR, 1325 .type_id = PTP_ERROR, 2772 type_id = type_reg_info->type_id & HCLGE_ERR_TYPE_MASK; in hclge_handle_error_type_reg_log() [all …]
|
A D | hclge_err.h | 197 enum hclge_err_type_list type_id; member 214 u8 type_id; member
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | netif_receive_skb.c | 67 _ptr.type_id = bpf_core_type_id_kernel(_type); \ 68 if (_ptr.type_id <= 0) { \ 112 p.type_id = bpf_core_type_id_kernel(struct sk_buff); in BPF_PROG()
|
A D | btf_ptr.h | 18 __u32 type_id; member
|
/linux/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 | 195 const char *btf_type_raw_dump(const struct btf *btf, int type_id) in btf_type_raw_dump() argument 206 fprintf_btf_type_raw(buf_file, btf, type_id); in btf_type_raw_dump()
|