Home
last modified time | relevance | path

Searched refs:func_info (Results 1 – 25 of 32) sorted by relevance

12

/linux/tools/testing/selftests/bpf/verifier/
H A Dbpf_loop_inline.c63 .func_info = { { 0, MAIN_TYPE }, { 12, CALLBACK_TYPE } },
97 .func_info = { { 0, MAIN_TYPE }, { 16, CALLBACK_TYPE } },
135 .func_info = {
174 .func_info = {
244 .func_info = {
261 .func_info = { { 0, MAIN_TYPE }, { 16, CALLBACK_TYPE } },
/linux/kernel/bpf/preload/iterators/
H A Diterators.bpf.c45 struct bpf_func_info *func_info; member
114 get_name(aux->btf, aux->func_info[0].type_id, aux->name), in dump_bpf_prog()
/linux/tools/bpf/bpftool/
H A Dprog.c146 holder.func_info = ptr_to_u64(ptr); in prep_prog_info()
707 void *func_info = NULL; in prog_dump() local
739 func_info = u64_to_ptr(info->func_info); in prog_dump()
803 if (func_info) { in prog_dump()
804 record = func_info + i * info->func_info_rec_size; in prog_dump()
812 if (func_info && func_sig[0] != '\0') { in prog_dump()
820 if (func_info && func_sig[0] != '\0') in prog_dump()
859 dd.func_info = func_info; in prog_dump()
2202 struct bpf_func_info func_info; profile_target_name() local
[all...]
H A Dxlated_dumper.h25 void *func_info; member
H A Dxlated_dumper.c237 record = dd->func_info; in dump_xlated_json()
321 record = dd->func_info; in dump_xlated_plain()
379 struct bpf_func_info *record = dd->func_info; in dump_xlated_for_graph()
H A Dbtf_dumper.c71 info.func_info = ptr_to_u64(&finfo); in dump_prog_id_as_func_ptr()
/linux/Documentation/bpf/
H A Dbtf.rst378 type. The BTF_KIND_FUNC may in turn be referenced by a func_info in the
591 * BPF_OBJ_GET_INFO_BY_FD: btf, func_info, line_info
660 During prog_load, func_info and line_info can be passed to kernel with proper
669 __aligned_u64 func_info; /* func info */
675 The func_info and line_info are an array of below, respectively.::
688 func_info_rec_size is the size of each func_info record, and
692 Below are requirements for func_info:
693 * func_info[0].insn_off must be 0.
694 * the func_info insn_off is in strictly increasing order and matches
729 ``bpf_prog_info`` returns ``btf_id``, func_info, and line info for translated
[all …]
H A Ddrgn.rst182 .func_info = (struct bpf_func_info *)0xffff889ff795d240,
/linux/tools/perf/util/
H A Dbpf_counter.c65 struct bpf_func_info *func_info; in bpf_target_prog_name() local
88 func_info = u64_to_ptr(info_linear->info.func_info); in bpf_target_prog_name()
89 t = btf__type_by_id(btf, func_info[0].type_id); in bpf_target_prog_name()
92 info_linear->info.btf_id, func_info[0].type_id); in bpf_target_prog_name()
H A Dbpf-utils.c50 offsetof(struct bpf_prog_info, func_info),
H A Dbpf-event.c128 void *func_infos = (void *)(uintptr_t)(info->func_info); in synthesize_bpf_prog_name()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c4825 void *func_info = NULL; in do_test_file() local
4904 func_info = malloc(info.nr_func_info * rec_size); in do_test_file()
4905 if (CHECK(!func_info, "out of memory")) { in do_test_file()
4914 info.func_info = ptr_to_u64(func_info); in do_test_file()
4942 finfo = func_info; in do_test_file()
4976 free(func_info); in do_test_file()
5671 __u32 func_info[MAX_SUBPROGS][2]; member
5708 .func_info = { {0, 5}, {3, 6} },
5739 .func_info = { {0, 5}, {3, 6} },
5771 .func_info = { {0, 5}, {3, 6} },
[all …]
H A Dcore_reloc_raw.c97 attr.func_info = (__u64)funcs; in test_bad_local_id()
H A Dtest_global_funcs.c75 info.func_info = ptr_to_u64(&func_info_buf); in subtest_ctx_arg_rewrite()
/linux/tools/lib/bpf/
H A Dlinker.c129 struct btf_ext_sec_data func_info; member
209 free(sec->func_info.recs); in bpf_linker__free()
2526 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext()
2527 for_each_btf_ext_sec(&obj->btf_ext->func_info, ext_sec) { in linker_append_btf_ext()
2538 if (dst_sec->func_info.rec_sz == 0) in linker_append_btf_ext()
2539 dst_sec->func_info.rec_sz = rec_sz; in linker_append_btf_ext()
2540 if (dst_sec->func_info.rec_sz != rec_sz) { in linker_append_btf_ext()
2545 for_each_btf_ext_rec(&obj->btf_ext->func_info, ext_sec, i, src_rec) { in linker_append_btf_ext()
2546 dst_rec = add_btf_ext_rec(&dst_sec->func_info, src_rec); in linker_append_btf_ext()
2867 if (sec->func_info.rec_cnt) { in finalize_btf_ext()
[all …]
H A Dbpf.h90 const void *func_info; member
H A Dbtf.c3002 struct btf_ext_sec_info_param func_info = { in btf_ext_parse_info() local
3006 .ext_info = &btf_ext->func_info, in btf_ext_parse_info()
3025 err = btf_ext_parse_sec_info(btf_ext, &func_info, is_native); in btf_ext_parse_info()
3199 free(btf_ext->func_info.sec_idxs); in btf_ext__free()
5267 seg = &btf_ext->func_info; in btf_ext_visit_type_ids()
5298 seg = &btf_ext->func_info; in btf_ext_visit_str_offs()
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c161 struct bpf_func_info func_info[MAX_FUNC_INFOS];
456 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()
1596 opts.func_info = test->func_info; in do_test_single()
1598 opts.func_info_rec_size = sizeof(test->func_info[0]); in do_test_single()
165 struct bpf_func_info func_info[MAX_FUNC_INFOS]; global() member
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_mcp.c1316 p_info = &p_hwfn->mcp_info->func_info; in qed_read_pf_bandwidth()
1424 max_bw = p_hwfn->mcp_info->func_info.bandwidth_max; in qed_mcp_handle_link_change()
1425 min_bw = p_hwfn->mcp_info->func_info.bandwidth_min; in qed_mcp_handle_link_change()
1765 p_info = &p_hwfn->mcp_info->func_info; in qed_mcp_update_bw()
1782 p_hwfn->mcp_info->func_info.ovlan = (u16)shmem_info.ovlan_stag & in qed_mcp_update_stag()
1784 p_hwfn->hw_info.ovlan = p_hwfn->mcp_info->func_info.ovlan; in qed_mcp_update_stag()
1806 p_hwfn->mcp_info->func_info.ovlan, p_hwfn->hw_info.hw_mode); in qed_mcp_update_stag()
2524 info = &p_hwfn->mcp_info->func_info; in qed_mcp_fill_shmem_func_info()
H A Dqed_dev.c2678 if (p_hwfn->mcp_info->func_info.bandwidth_max) in qed_hw_init_common()
2680 if (p_hwfn->mcp_info->func_info.bandwidth_min) in qed_hw_init_common()
2904 p_info = &p_hwfn->mcp_info->func_info; in qed_hw_init_pf()
4559 p_hwfn->mcp_info->func_info.mac); in qed_get_hw_info()
4564 if (p_hwfn->mcp_info->func_info.ovlan != QED_MCP_VLAN_UNSET) in qed_get_hw_info()
4566 p_hwfn->mcp_info->func_info.ovlan; in qed_get_hw_info()
4578 protocol = p_hwfn->mcp_info->func_info.protocol; in qed_get_hw_info()
4591 p_hwfn->hw_info.mtu = p_hwfn->mcp_info->func_info.mtu; in qed_get_hw_info()
5276 p_hwfn->mcp_info->func_info.bandwidth_max = max_bw; in __qed_configure_pf_max_bandwidth()
5342 p_hwfn->mcp_info->func_info.bandwidth_min = min_bw; in __qed_configure_pf_min_bandwidth()
H A Dqed_fcoe.c737 info->wwpn = hwfn->mcp_info->func_info.wwn_port; in qed_fill_fcoe_dev_info()
738 info->wwnn = hwfn->mcp_info->func_info.wwn_node; in qed_fill_fcoe_dev_info()
H A Dqed_mcp.h780 struct qed_mcp_function_info func_info; member
/linux/include/uapi/linux/
H A Dbpf.h1551 __aligned_u64 func_info; /* func info */ member
6575 __aligned_u64 func_info; member
/linux/tools/include/uapi/linux/
H A Dbpf.h1551 __aligned_u64 func_info; /* func info */ member
6575 __aligned_u64 func_info; member
/linux/kernel/bpf/
H A Dverifier.c434 if (!env->prog->aux->func_info) in subprog_name()
437 info = &env->prog->aux->func_info[subprog]; in subprog_name()
2648 main_btf_id = aux->func_info[0].type_id; in bpf_find_exception_callback_insn_off()
2680 if (aux->func_info[i].type_id != id) in bpf_find_exception_callback_insn_off()
2682 ret = aux->func_info[i].insn_off; in bpf_find_exception_callback_insn_off()
9870 if (!prog->aux->func_info) in btf_check_subprog_call()
9873 btf_id = prog->aux->func_info[subprog].type_id; in btf_check_subprog_call()
15872 if (!aux->func_info) { in check_ld_imm()
16873 urecord = make_bpfptr(attr->func_info, uattr.is_kernel); in check_btf_func_early()
16934 prog->aux->func_info = krecord; in check_btf_func_early()
[all …]

12