Home
last modified time | relevance | path

Searched refs:btf__find_by_name_kind (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dlibbpf_str.c33 id = btf__find_by_name_kind(btf, "bpf_attach_type", BTF_KIND_ENUM); in test_libbpf_bpf_attach_type_str()
78 id = btf__find_by_name_kind(btf, "bpf_link_type", BTF_KIND_ENUM); in test_libbpf_bpf_link_type_str()
123 id = btf__find_by_name_kind(btf, "bpf_map_type", BTF_KIND_ENUM); in test_libbpf_bpf_map_type_str()
180 id = btf__find_by_name_kind(btf, "bpf_prog_type", BTF_KIND_ENUM); in test_libbpf_bpf_prog_type_str()
Dtest_bpf_ma.c30 id = btf__find_by_name_kind(btf, tname, BTF_KIND_STRUCT); in do_bpf_ma_test()
38 id = btf__find_by_name_kind(btf, tname, BTF_KIND_STRUCT); in do_bpf_ma_test()
Dmodule_fentry_shadow.c91 btf_id[0] = btf__find_by_name_kind(vmlinux_btf, symbol_name, BTF_KIND_FUNC); in test_module_fentry_shadow()
95 btf_id[1] = btf__find_by_name_kind(mod_btf, symbol_name, BTF_KIND_FUNC); in test_module_fentry_shadow()
Dlibbpf_probes.c19 id = btf__find_by_name_kind(btf, "bpf_prog_type", BTF_KIND_ENUM); in test_libbpf_probe_prog_types()
59 id = btf__find_by_name_kind(btf, "bpf_map_type", BTF_KIND_ENUM); in test_libbpf_probe_map_types()
Dbtf_tag.c73 type_id = btf__find_by_name_kind(*vmlinux_btf, "user", BTF_KIND_TYPE_TAG); in load_btfs()
90 type_id = btf__find_by_name_kind(*module_btf, "user", BTF_KIND_TYPE_TAG); in load_btfs()
Dtest_global_funcs.c57 if (btf__find_by_name_kind(kern_btf, "bpf_subprog_arg_info", BTF_KIND_STRUCT) > 0) { in subtest_ctx_arg_rewrite()
Dksyms_btf.c164 percpu_datasec = btf__find_by_name_kind(btf, ".data..percpu", in test_ksyms_btf()
Dfexit_bpf2bpf.c120 btf_id = btf__find_by_name_kind(btf, tgt_name + 1, BTF_KIND_FUNC); in test_fexit_bpf2bpf_common()
454 ret = btf__find_by_name_kind(btf, name, BTF_KIND_FUNC); in find_prog_btf_id()
Dlsm_cgroup.c55 btf__find_by_name_kind(btf, attach_func, BTF_KIND_FUNC)) in query_prog_cnt()
Dbtf_distill.c509 int_id = btf__find_by_name_kind(vmlinux_btf, "int", BTF_KIND_INT); in test_distilled_base_vmlinux()
Dcore_reloc.c417 id = btf__find_by_name_kind(btf, name, kind); in find_btf_type()
/linux-6.12.1/tools/perf/tests/
Dsigtrap.c100 id = btf__find_by_name_kind(btf, "perf_event_attr", BTF_KIND_STRUCT); in attr_has_sigtrap()
117 id = btf__find_by_name_kind(btf, "spinlock", BTF_KIND_STRUCT); in kernel_with_sleepable_spinlocks()
/linux-6.12.1/tools/sched_ext/include/scx/
Dcompat.h90 tid = btf__find_by_name_kind(__COMPAT_vmlinux_btf, type, BTF_KIND_STRUCT); in __COMPAT_struct_has_field()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf.map119 btf__find_by_name_kind;
Dbtf.h148 LIBBPF_API __s32 btf__find_by_name_kind(const struct btf *btf,
Dlibbpf.c1348 datasec_id = btf__find_by_name_kind(btf, sec_name, in init_struct_ops_maps()
4141 sec_btf_id = btf__find_by_name_kind(btf, KSYMS_SEC, in add_dummy_ksym_var()
8160 id = btf__find_by_name_kind(btf, ksym_name, kind); in find_ksym_btf_id()
9869 return btf__find_by_name_kind(btf, btf_type_name, kind); in find_btf_by_prefix_kind()
9929 err = btf__find_by_name_kind(btf, name, BTF_KIND_FUNC); in libbpf_find_prog_btf_id()
Dbtf.c942 __s32 btf__find_by_name_kind(const struct btf *btf, const char *type_name, in btf__find_by_name_kind() function
/linux-6.12.1/tools/perf/util/
Dbpf_off_cpu.c103 type_id = btf__find_by_name_kind(btf, "btf_trace_sched_switch", in check_sched_switch_args()
/linux-6.12.1/tools/bpf/bpftool/
Dstruct_ops.c69 map_info_type_id = btf__find_by_name_kind(kern_btf, "bpf_map_info", in get_map_info_type_id()
/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_verifier.c982 btf_id = btf__find_by_name_kind(vmlinux_btf, in fixup_prog_kfuncs()
992 btf_id = btf__find_by_name_kind(testmod_btf, in fixup_prog_kfuncs()
Dtest_loader.c390 func_id = btf__find_by_name_kind(btf, spec->prog_name, BTF_KIND_FUNC); in parse_test_spec()
Dveristat.c950 id = btf__find_by_name_kind(btf, prog_name, BTF_KIND_FUNC); in fixup_obj()