Home
last modified time | relevance | path

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

12

/linux-6.6.21/tools/testing/selftests/bpf/verifier/
Dbpf_loop_inline.c62 .func_info = { { 0, MAIN_TYPE }, { 12, CALLBACK_TYPE } },
95 .func_info = { { 0, MAIN_TYPE }, { 16, CALLBACK_TYPE } },
132 .func_info = {
170 .func_info = {
239 .func_info = {
255 .func_info = { { 0, MAIN_TYPE }, { 16, CALLBACK_TYPE } },
/linux-6.6.21/kernel/bpf/preload/iterators/
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-6.6.21/tools/bpf/bpftool/
Dprog.c146 holder.func_info = ptr_to_u64(ptr); in prep_prog_info()
703 void *func_info = NULL; in prog_dump() local
735 func_info = u64_to_ptr(info->func_info); in prog_dump()
799 if (func_info) { in prog_dump()
800 record = func_info + i * info->func_info_rec_size; in prog_dump()
808 if (func_info && func_sig[0] != '\0') { in prog_dump()
816 if (func_info && func_sig[0] != '\0') in prog_dump()
848 dd.func_info = func_info; in prog_dump()
2191 struct bpf_func_info func_info; in profile_target_name() local
2220 info.func_info = ptr_to_u64(&func_info); in profile_target_name()
[all …]
Dxlated_dumper.h25 void *func_info; member
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()
Dcommon.c357 info.func_info = ptr_to_u64(&finfo); in get_prog_full_name()
Dbtf_dumper.c71 info.func_info = ptr_to_u64(&finfo); in dump_prog_id_as_func_ptr()
/linux-6.6.21/Documentation/bpf/
Dbtf.rst380 type. The BTF_KIND_FUNC may in turn be referenced by a func_info in the
562 * BPF_OBJ_GET_INFO_BY_FD: btf, func_info, line_info
631 During prog_load, func_info and line_info can be passed to kernel with proper
640 __aligned_u64 func_info; /* func info */
646 The func_info and line_info are an array of below, respectively.::
659 func_info_rec_size is the size of each func_info record, and
663 Below are requirements for func_info:
664 * func_info[0].insn_off must be 0.
665 * the func_info insn_off is in strictly increasing order and matches
700 ``bpf_prog_info`` returns ``btf_id``, func_info, and line info for translated
[all …]
Ddrgn.rst182 .func_info = (struct bpf_func_info *)0xffff889ff795d240,
/linux-6.6.21/tools/perf/util/
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()
Dbpf-utils.c50 offsetof(struct bpf_prog_info, func_info),
Dbpf-event.c127 void *func_infos = (void *)(uintptr_t)(info->func_info); in synthesize_bpf_prog_name()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf.c4762 void *func_info = NULL; in do_test_file() local
4841 func_info = malloc(info.nr_func_info * rec_size); in do_test_file()
4842 if (CHECK(!func_info, "out of memory")) { in do_test_file()
4851 info.func_info = ptr_to_u64(func_info); in do_test_file()
4879 finfo = func_info; in do_test_file()
4913 free(func_info); in do_test_file()
5608 __u32 func_info[MAX_SUBPROGS][2]; member
5645 .func_info = { {0, 5}, {3, 6} },
5676 .func_info = { {0, 5}, {3, 6} },
5708 .func_info = { {0, 5}, {3, 6} },
[all …]
/linux-6.6.21/tools/lib/bpf/
Dlinker.c128 struct btf_ext_sec_data func_info; member
207 free(sec->func_info.recs); in bpf_linker__free()
2443 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext()
2444 for_each_btf_ext_sec(&obj->btf_ext->func_info, ext_sec) { in linker_append_btf_ext()
2455 if (dst_sec->func_info.rec_sz == 0) in linker_append_btf_ext()
2456 dst_sec->func_info.rec_sz = rec_sz; in linker_append_btf_ext()
2457 if (dst_sec->func_info.rec_sz != rec_sz) { in linker_append_btf_ext()
2462 for_each_btf_ext_rec(&obj->btf_ext->func_info, ext_sec, i, src_rec) { in linker_append_btf_ext()
2463 dst_rec = add_btf_ext_rec(&dst_sec->func_info, src_rec); in linker_append_btf_ext()
2772 if (sec->func_info.rec_cnt) { in finalize_btf_ext()
[all …]
Dbpf.c237 const char *func_info, *line_info; in bpf_prog_load() local
295 func_info = OPTS_GET(opts, func_info, NULL); in bpf_prog_load()
297 attr.func_info = ptr_to_u64(func_info); in bpf_prog_load()
327 finfo = alloc_zero_tailing_info(func_info, in bpf_prog_load()
336 attr.func_info = ptr_to_u64(finfo); in bpf_prog_load()
Dgen_loader.c939 int prog_load_attr, license_off, insns_off, func_info, line_info, core_relos; in bpf_gen__prog_load() local
961 func_info = add_data(gen, load_attr->func_info, in bpf_gen__prog_load()
984 emit_rel_store(gen, attr_field(prog_load_attr, func_info), func_info); in bpf_gen__prog_load()
Dbpf.h86 const void *func_info; member
Dlibbpf_internal.h448 struct btf_ext_info func_info; member
/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_verifier.c163 struct bpf_func_info func_info[MAX_FUNC_INFOS]; member
458 self->func_info[1].insn_off = callback_idx; in bpf_fill_big_prog_with_loop_1()
1639 opts.func_info = test->func_info; in do_test_single()
1641 opts.func_info_rec_size = sizeof(test->func_info[0]); in do_test_single()
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
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()
Dqed_mcp.c1322 p_info = &p_hwfn->mcp_info->func_info; in qed_read_pf_bandwidth()
1430 max_bw = p_hwfn->mcp_info->func_info.bandwidth_max; in qed_mcp_handle_link_change()
1431 min_bw = p_hwfn->mcp_info->func_info.bandwidth_min; in qed_mcp_handle_link_change()
1771 p_info = &p_hwfn->mcp_info->func_info; in qed_mcp_update_bw()
1788 p_hwfn->mcp_info->func_info.ovlan = (u16)shmem_info.ovlan_stag & in qed_mcp_update_stag()
1790 p_hwfn->hw_info.ovlan = p_hwfn->mcp_info->func_info.ovlan; in qed_mcp_update_stag()
1812 p_hwfn->mcp_info->func_info.ovlan, p_hwfn->hw_info.hw_mode); in qed_mcp_update_stag()
2530 info = &p_hwfn->mcp_info->func_info; in qed_mcp_fill_shmem_func_info()
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()
Dqed_mcp.h780 struct qed_mcp_function_info func_info; member
/linux-6.6.21/tools/include/uapi/linux/
Dbpf.h1434 __aligned_u64 func_info; /* func info */ member
6428 __aligned_u64 func_info; member
/linux-6.6.21/include/uapi/linux/
Dbpf.h1434 __aligned_u64 func_info; /* func info */ member
6428 __aligned_u64 func_info; member

12