/Linux-v5.15/kernel/bpf/preload/iterators/ |
D | iterators.bpf.c | 45 struct bpf_func_info *func_info; member 109 get_name(aux->btf, aux->func_info[0].type_id, aux->name), in dump_bpf_prog()
|
/Linux-v5.15/Documentation/bpf/ |
D | btf.rst | 372 type. The BTF_KIND_FUNC may in turn be referenced by a func_info in the 476 * BPF_OBJ_GET_INFO_BY_FD: btf, func_info, line_info 548 During prog_load, func_info and line_info can be passed to kernel with proper 557 __aligned_u64 func_info; /* func info */ 563 The func_info and line_info are an array of below, respectively.:: 576 func_info_rec_size is the size of each func_info record, and 580 Below are requirements for func_info: 581 * func_info[0].insn_off must be 0. 582 * the func_info insn_off is in strictly increasing order and matches 617 ``bpf_prog_info`` returns ``btf_id``, func_info, and line info for translated [all …]
|
D | drgn.rst | 182 .func_info = (struct bpf_func_info *)0xffff889ff795d240,
|
/Linux-v5.15/tools/bpf/bpftool/ |
D | prog.c | 625 void *func_info = NULL; in prog_dump() local 657 func_info = u64_to_ptr(info->func_info); in prog_dump() 723 if (func_info) { in prog_dump() 724 record = func_info + i * info->func_info_rec_size; in prog_dump() 732 if (func_info && func_sig[0] != '\0') { in prog_dump() 740 if (func_info && func_sig[0] != '\0') in prog_dump() 774 dd.func_info = func_info; in prog_dump() 2008 struct bpf_func_info *func_info; in profile_target_name() local 2031 func_info = u64_to_ptr(info_linear->info.func_info); in profile_target_name() 2032 t = btf__type_by_id(btf, func_info[0].type_id); in profile_target_name() [all …]
|
D | xlated_dumper.h | 23 void *func_info; member
|
D | xlated_dumper.c | 230 record = dd->func_info; in dump_xlated_json() 314 record = dd->func_info; in dump_xlated_plain()
|
D | btf_dumper.c | 72 finfo = u64_to_ptr(info->func_info); in dump_prog_id_as_func_ptr()
|
/Linux-v5.15/tools/perf/util/ |
D | bpf_counter.c | 65 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()
|
D | bpf-event.c | 133 void *func_infos = (void *)(uintptr_t)(info->func_info); in synthesize_bpf_prog_name()
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
D | btf.c | 4244 void *func_info = NULL; in do_test_file() local 4321 func_info = malloc(info.nr_func_info * rec_size); in do_test_file() 4322 if (CHECK(!func_info, "out of memory")) { in do_test_file() 4331 info.func_info = ptr_to_u64(func_info); in do_test_file() 4359 finfo = func_info; in do_test_file() 4391 free(func_info); in do_test_file() 5092 __u32 func_info[MAX_SUBPROGS][2]; member 5129 .func_info = { {0, 5}, {3, 6} }, 5160 .func_info = { {0, 5}, {3, 6} }, 5192 .func_info = { {0, 5}, {3, 6} }, [all …]
|
/Linux-v5.15/tools/lib/bpf/ |
D | linker.c | 129 struct btf_ext_sec_data func_info; member 208 free(sec->func_info.recs); in bpf_linker__free() 2438 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext() 2439 for_each_btf_ext_sec(&obj->btf_ext->func_info, ext_sec) { in linker_append_btf_ext() 2450 if (dst_sec->func_info.rec_sz == 0) in linker_append_btf_ext() 2451 dst_sec->func_info.rec_sz = rec_sz; in linker_append_btf_ext() 2452 if (dst_sec->func_info.rec_sz != rec_sz) { in linker_append_btf_ext() 2457 for_each_btf_ext_rec(&obj->btf_ext->func_info, ext_sec, i, src_rec) { in linker_append_btf_ext() 2458 dst_rec = add_btf_ext_rec(&dst_sec->func_info, src_rec); in linker_append_btf_ext() 2765 if (sec->func_info.rec_cnt) { in finalize_btf_ext() [all …]
|
D | gen_loader.c | 589 int prog_load_attr, license, insns, func_info, line_info; in bpf_gen__prog_load() local 611 func_info = add_data(gen, load_attr->func_info, in bpf_gen__prog_load() 630 emit_rel_store(gen, attr_field(prog_load_attr, func_info), func_info); in bpf_gen__prog_load()
|
D | bpf.c | 262 attr.func_info = ptr_to_u64(load_attr->func_info); in libbpf__bpf_prog_load() 284 finfo = alloc_zero_tailing_info(load_attr->func_info, in libbpf__bpf_prog_load() 293 attr.func_info = ptr_to_u64(finfo); in libbpf__bpf_prog_load() 368 p.func_info = load_attr->func_info; in bpf_load_program_xattr()
|
D | libbpf_internal.h | 269 const void *func_info; member 355 struct btf_ext_info func_info; member
|
D | bpf.h | 91 const void *func_info; member
|
D | btf.c | 2546 .ext_info = &btf_ext->func_info, in btf_ext_setup_func_info() 2731 void **func_info, __u32 *cnt) in btf_ext__reloc_func_info() argument 2733 return btf_ext_reloc_info(btf, &btf_ext->func_info, sec_name, in btf_ext__reloc_func_info() 2734 insns_cnt, func_info, cnt); in btf_ext__reloc_func_info() 2748 return btf_ext->func_info.rec_size; in btf_ext__func_info_rec_size() 4590 seg = &btf_ext->func_info; in btf_ext_visit_type_ids() 4621 seg = &btf_ext->func_info; in btf_ext_visit_str_offs()
|
D | btf.h | 91 void **func_info, __u32 *cnt);
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qed/ |
D | qed_mcp.c | 1273 p_info = &p_hwfn->mcp_info->func_info; in qed_read_pf_bandwidth() 1381 max_bw = p_hwfn->mcp_info->func_info.bandwidth_max; in qed_mcp_handle_link_change() 1382 min_bw = p_hwfn->mcp_info->func_info.bandwidth_min; in qed_mcp_handle_link_change() 1726 p_info = &p_hwfn->mcp_info->func_info; in qed_mcp_update_bw() 1743 p_hwfn->mcp_info->func_info.ovlan = (u16)shmem_info.ovlan_stag & in qed_mcp_update_stag() 1745 p_hwfn->hw_info.ovlan = p_hwfn->mcp_info->func_info.ovlan; in qed_mcp_update_stag() 1767 p_hwfn->mcp_info->func_info.ovlan, p_hwfn->hw_info.hw_mode); in qed_mcp_update_stag() 2471 info = &p_hwfn->mcp_info->func_info; in qed_mcp_fill_shmem_func_info()
|
D | qed_dev.c | 2624 if (p_hwfn->mcp_info->func_info.bandwidth_max) in qed_hw_init_common() 2626 if (p_hwfn->mcp_info->func_info.bandwidth_min) in qed_hw_init_common() 2848 p_info = &p_hwfn->mcp_info->func_info; in qed_hw_init_pf() 4498 p_hwfn->mcp_info->func_info.mac); in qed_get_hw_info() 4503 if (p_hwfn->mcp_info->func_info.ovlan != QED_MCP_VLAN_UNSET) in qed_get_hw_info() 4505 p_hwfn->mcp_info->func_info.ovlan; in qed_get_hw_info() 4517 protocol = p_hwfn->mcp_info->func_info.protocol; in qed_get_hw_info() 4530 p_hwfn->hw_info.mtu = p_hwfn->mcp_info->func_info.mtu; in qed_get_hw_info() 5210 p_hwfn->mcp_info->func_info.bandwidth_max = max_bw; in __qed_configure_pf_max_bandwidth() 5276 p_hwfn->mcp_info->func_info.bandwidth_min = min_bw; in __qed_configure_pf_min_bandwidth()
|
D | qed_fcoe.c | 737 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()
|
D | qed_mcp.h | 746 struct qed_mcp_function_info func_info; member
|
/Linux-v5.15/tools/include/uapi/linux/ |
D | bpf.h | 1325 __aligned_u64 func_info; /* func info */ member 5567 __aligned_u64 func_info; member
|
/Linux-v5.15/include/uapi/linux/ |
D | bpf.h | 1325 __aligned_u64 func_info; /* func info */ member 5567 __aligned_u64 func_info; member
|
/Linux-v5.15/kernel/bpf/ |
D | btf.c | 5414 if (!prog->aux->func_info) { in btf_check_type_match() 5419 btf_id = prog->aux->func_info[0].type_id; in btf_check_type_match() 5587 if (!prog->aux->func_info) in btf_check_subprog_arg_match() 5590 btf_id = prog->aux->func_info[subprog].type_id; in btf_check_subprog_arg_match() 5635 if (!prog->aux->func_info || in btf_prepare_func_args() 5641 btf_id = prog->aux->func_info[subprog].type_id; in btf_prepare_func_args()
|
D | verifier.c | 9186 if (!aux->func_info) { in check_ld_imm() 9792 urecord = make_bpfptr(attr->func_info, uattr.is_kernel); in check_btf_func() 9873 prog->aux->func_info = krecord; in check_btf_func() 9889 if (!aux->func_info) in adjust_btf_func() 9893 aux->func_info[i].insn_off = env->subprog_info[i].start; in adjust_btf_func() 11826 if (aux->func_info) { in adjust_subprog_starts_after_remove() 11829 memmove(aux->func_info + i, in adjust_subprog_starts_after_remove() 11830 aux->func_info + j, in adjust_subprog_starts_after_remove() 11831 sizeof(*aux->func_info) * move); in adjust_subprog_starts_after_remove() 12415 func[i]->aux->func_info = prog->aux->func_info; in jit_subprogs() [all …]
|