Home
last modified time | relevance | path

Searched refs:BTF_KIND_FUNC (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dresolve_btfids.c28 { "func", BTF_KIND_FUNC, -1 },
H A Dtest_global_funcs.c102 if (!ASSERT_EQ(btf_kind(fn_t), BTF_KIND_FUNC, "fn_type_kind")) in subtest_ctx_arg_rewrite()
H A 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()
H A Dlsm_cgroup.c51 btf__find_by_name_kind(btf, attach_func, BTF_KIND_FUNC)) in query_prog_cnt()
H A Dbtf_write.c224 ASSERT_EQ(btf_kind(t), BTF_KIND_FUNC, "func_kind"); in gen_btf()
/linux-6.15/tools/lib/bpf/
H A Dbtf_iter.c40 case BTF_KIND_FUNC: in btf_field_iter_init()
92 case BTF_KIND_FUNC: in btf_field_iter_init()
H A Dfeatures.c104 BTF_TYPE_ENC(5, BTF_INFO_ENC(BTF_KIND_FUNC, 0, 0), 2), in probe_kern_btf_func()
122 BTF_TYPE_ENC(5, BTF_INFO_ENC(BTF_KIND_FUNC, 0, BTF_FUNC_GLOBAL), 2), in probe_kern_btf_func_global()
467 BTF_TYPE_ENC(1 /* "a" */, BTF_INFO_ENC(BTF_KIND_FUNC, 0, BTF_FUNC_GLOBAL), 3), in probe_kern_arg_ctx_tag()
472 BTF_TYPE_ENC(3 /* "b" */, BTF_INFO_ENC(BTF_KIND_FUNC, 0, BTF_FUNC_GLOBAL), 5), in probe_kern_arg_ctx_tag()
H A Dbtf.h346 #ifndef BTF_KIND_FUNC
347 #define BTF_KIND_FUNC 12 /* Function */ macro
461 return btf_kind(t) == BTF_KIND_FUNC; in btf_is_func()
H A Dbtf.c304 case BTF_KIND_FUNC: in btf_type_size()
358 case BTF_KIND_FUNC: in btf_bswap_type_rest()
552 case BTF_KIND_FUNC: { in btf_validate_type()
2641 id = btf_add_ref_kind(btf, BTF_KIND_FUNC, name, proto_type_id, 0); in btf__add_func()
2645 t->info = btf_type_info(BTF_KIND_FUNC, linkage, 0); in btf__add_func()
4170 case BTF_KIND_FUNC: in btf_dedup_prep()
4229 case BTF_KIND_FUNC: in btf_dedup_prim_type()
4578 case BTF_KIND_FUNC: in btf_dedup_is_equiv()
4874 case BTF_KIND_FUNC: in btf_dedup_ref_type()
H A Dbtf_dump.c335 case BTF_KIND_FUNC: in btf_dump_mark_referenced()
605 case BTF_KIND_FUNC: in btf_dump_order_type()
2462 case BTF_KIND_FUNC: in btf_dump_dump_type_data()
H A Dlinker.c1537 case BTF_KIND_FUNC: in glob_sym_btf_matches()
1580 case BTF_KIND_FUNC: in glob_sym_btf_matches()
1944 dst_t->info = btf_type_info(BTF_KIND_FUNC, BTF_FUNC_GLOBAL, 0); in complete_extern_btf_info()
H A Dlibbpf.c2420 case BTF_KIND_FUNC: return "func"; in __btf_kind_str()
3190 t->info = BTF_INFO_ENC(BTF_KIND_FUNC, 0, 0); in bpf_object__sanitize_btf()
3571 t->info = btf_type_info(BTF_KIND_FUNC, BTF_FUNC_STATIC, 0); in bpf_object__sanitize_and_load_btf()
7869 BTF_KIND_VAR : BTF_KIND_FUNC; in bpf_program_record_relos()
7876 ext->is_weak, false, false, BTF_KIND_FUNC, in bpf_program_record_relos()
8319 kfunc_id = find_ksym_btf_id(obj, ext->essent_name ?: ext->name, BTF_KIND_FUNC, &kern_btf, in bpf_object__resolve_ksym_func_btf_id()
9967 *kind = BTF_KIND_FUNC; in btf_get_kernel_prefix_kind()
9971 *kind = BTF_KIND_FUNC; in btf_get_kernel_prefix_kind()
9975 *kind = BTF_KIND_FUNC; in btf_get_kernel_prefix_kind()
10053 err = btf__find_by_name_kind(btf, name, BTF_KIND_FUNC); in libbpf_find_prog_btf_id()
/linux-6.15/tools/testing/selftests/bpf/
H A Dbtf_helpers.c22 [BTF_KIND_FUNC] = "FUNC",
172 case BTF_KIND_FUNC: in fprintf_btf_type_raw()
H A Dtest_btf.h70 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FUNC, 0, 0), func_proto)
H A Dtest_verifier.c980 BTF_KIND_FUNC); in fixup_prog_kfuncs()
990 BTF_KIND_FUNC); in fixup_prog_kfuncs()
H A Dtest_loader.c431 func_id = btf__find_by_name_kind(btf, spec->prog_name, BTF_KIND_FUNC); in parse_test_spec()
/linux-6.15/tools/include/uapi/linux/
H A Dbtf.h73 BTF_KIND_FUNC = 12, /* Function */ enumerator
/linux-6.15/include/uapi/linux/
H A Dbtf.h73 BTF_KIND_FUNC = 12, /* Function */ enumerator
/linux-6.15/kernel/trace/
H A Dtrace_btf.c18 id = bpf_find_btf_id(func_name, BTF_KIND_FUNC, btf_p); in btf_find_func_proto()
/linux-6.15/Documentation/bpf/
H A Dbtf.rst83 #define BTF_KIND_FUNC 12 /* Function */
93 ``BTF_KIND_FUNC`` is not a type, and it represents a defined subprogram.
364 2.2.12 BTF_KIND_FUNC
370 * ``info.kind``: BTF_KIND_FUNC
377 A BTF_KIND_FUNC defines not a type, but a subprogram (function) whose
379 type. The BTF_KIND_FUNC may in turn be referenced by a func_info in the
403 If a BTF_KIND_FUNC_PROTO type is referred by a BTF_KIND_FUNC type, then
696 __u32 type_id; /* pointing to a BTF_KIND_FUNC type */
1103 support .BTF.ext and btf BTF_KIND_FUNC type yet. For example,::
/linux-6.15/include/linux/
H A Dbtf.h376 return BTF_INFO_KIND(t->info) == BTF_KIND_FUNC; in btf_type_is_func()
/linux-6.15/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_testmod.c1501 bpf_cgroup_from_id_id = bpf_find_btf_id("bpf_cgroup_from_id", BTF_KIND_FUNC, &kfunc_btf); in st_ops_init()
1502 bpf_cgroup_release_id = bpf_find_btf_id("bpf_cgroup_release", BTF_KIND_FUNC, &kfunc_btf); in st_ops_init()
/linux-6.15/tools/bpf/bpftool/
H A Dbtf.c45 [BTF_KIND_FUNC] = "FUNC",
314 case BTF_KIND_FUNC: { in dump_btf_type()
H A Dbtf_dumper.c684 case BTF_KIND_FUNC: in __btf_dumper_type_only()

12