| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | test_btf_ext.c | 12 struct bpf_func_info func_info[128], *libbpf_func_info; in subtest_line_func_info() local 34 info.func_info = ptr_to_u64(&func_info); in subtest_line_func_info() 35 info.nr_func_info = sizeof(func_info); in subtest_line_func_info() 36 info.func_info_rec_size = sizeof(*func_info); in subtest_line_func_info() 54 ASSERT_MEMEQ(libbpf_func_info, func_info, libbbpf_func_info_cnt * sizeof(*func_info), in subtest_line_func_info()
|
| H A D | btf.c | 4840 void *func_info = NULL; in do_test_file() local 4919 func_info = malloc(info.nr_func_info * rec_size); in do_test_file() 4920 if (CHECK(!func_info, "out of memory")) { in do_test_file() 4929 info.func_info = ptr_to_u64(func_info); in do_test_file() 4957 finfo = func_info; in do_test_file() 4991 free(func_info); in do_test_file() 5686 __u32 func_info[MAX_SUBPROGS][2]; member 5723 .func_info = { {0, 5}, {3, 6} }, 5754 .func_info = { {0, 5}, {3, 6} }, 5786 .func_info = { {0, 5}, {3, 6} }, [all …]
|
| H A D | core_reloc_raw.c | 97 attr.func_info = (__u64)funcs; in test_bad_local_id()
|
| H A D | test_global_funcs.c | 75 info.func_info = ptr_to_u64(&func_info_buf); in subtest_ctx_arg_rewrite()
|
| /linux/tools/testing/selftests/bpf/verifier/ |
| H A D | bpf_loop_inline.c | 63 .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 D | iterators.bpf.c | 45 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 D | prog.c | 147 holder.func_info = ptr_to_u64(ptr); in prep_prog_info() 708 void *func_info = NULL; in prog_dump() local 740 func_info = u64_to_ptr(info->func_info); in prog_dump() 804 if (func_info) { in prog_dump() 805 record = func_info + i * info->func_info_rec_size; in prog_dump() 813 if (func_info && func_sig[0] != '\0') { in prog_dump() 821 if (func_info && func_sig[0] != '\0') in prog_dump() 860 dd.func_info = func_info; in prog_dump() 2292 struct bpf_func_info func_info = {}; in profile_target_name() local 2321 info.func_info = ptr_to_u64(&func_info); in profile_target_name() [all …]
|
| H A D | xlated_dumper.h | 25 void *func_info; member
|
| H A D | xlated_dumper.c | 237 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()
|
| /linux/scripts/ |
| H A D | sorttable.c | 583 struct func_info { struct 589 static struct func_info *function_list; argument 598 struct func_info *fi; in add_field() 603 fi = realloc(function_list, fsize * sizeof(struct func_info)); in add_field() 621 const struct func_info *a = A; in cmp_func_addr() 632 sizeof(struct func_info), cmp_func_addr) != NULL; in find_func() 637 const struct func_info *a = A; in cmp_funcs() 638 const struct func_info *b = B; in cmp_funcs() 673 qsort(function_list, function_list_size, sizeof(struct func_info), cmp_funcs); in parse_symbols()
|
| /linux/Documentation/bpf/ |
| H A D | btf.rst | 379 type. The BTF_KIND_FUNC may in turn be referenced by a func_info in the 608 * BPF_OBJ_GET_INFO_BY_FD: btf, func_info, line_info 677 During prog_load, func_info and line_info can be passed to kernel with proper 686 __aligned_u64 func_info; /* func info */ 692 The func_info and line_info are an array of below, respectively.:: 705 func_info_rec_size is the size of each func_info record, and 709 Below are requirements for func_info: 710 * func_info[0].insn_off must be 0. 711 * the func_info insn_off is in strictly increasing order and matches 746 ``bpf_prog_info`` returns ``btf_id``, func_info, and line info for translated [all …]
|
| H A D | drgn.rst | 182 .func_info = (struct bpf_func_info *)0xffff889ff795d240,
|
| /linux/tools/perf/util/ |
| H A D | bpf_counter.c | 123 struct bpf_func_info *func_info; in bpf_target_prog_name() local 146 func_info = u64_to_ptr(info_linear->info.func_info); in bpf_target_prog_name() 147 t = btf__type_by_id(btf, func_info[0].type_id); in bpf_target_prog_name() 150 info_linear->info.btf_id, func_info[0].type_id); in bpf_target_prog_name()
|
| H A D | bpf-utils.c | 50 offsetof(struct bpf_prog_info, func_info),
|
| /linux/tools/lib/bpf/ |
| H A D | gen_loader.c | 1015 static void info_blob_bswap(struct bpf_gen *gen, int func_info, int line_info, in info_blob_bswap() argument 1018 struct bpf_func_info *fi = gen->data_start + func_info; in info_blob_bswap() 1044 int prog_load_attr, license_off, insns_off, func_info, line_info, core_relos; in bpf_gen__prog_load() local 1075 func_info = add_data(gen, load_attr->func_info, func_info_tot_sz); in bpf_gen__prog_load() 1077 func_info, load_attr->func_info_cnt, in bpf_gen__prog_load() 1096 info_blob_bswap(gen, func_info, line_info, core_relos, load_attr); in bpf_gen__prog_load() 1110 emit_rel_store(gen, attr_field(prog_load_attr, func_info), func_info); in bpf_gen__prog_load()
|
| H A D | linker.c | 133 struct btf_ext_sec_data func_info; member 217 free(sec->func_info.recs); in bpf_linker__free() 2638 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext() 2639 for_each_btf_ext_sec(&obj->btf_ext->func_info, ext_sec) { in linker_append_btf_ext() 2650 if (dst_sec->func_info.rec_sz == 0) in linker_append_btf_ext() 2651 dst_sec->func_info.rec_sz = rec_sz; in linker_append_btf_ext() 2652 if (dst_sec->func_info.rec_sz != rec_sz) { in linker_append_btf_ext() 2657 for_each_btf_ext_rec(&obj->btf_ext->func_info, ext_sec, i, src_rec) { in linker_append_btf_ext() 2658 dst_rec = add_btf_ext_rec(&dst_sec->func_info, src_rec); in linker_append_btf_ext() 2980 if (sec->func_info.rec_cnt) { in finalize_btf_ext() [all …]
|
| H A D | bpf.c | 245 const char *func_info, *line_info; in bpf_prog_load() local 304 func_info = OPTS_GET(opts, func_info, NULL); in bpf_prog_load() 306 attr.func_info = ptr_to_u64(func_info); in bpf_prog_load() 337 finfo = alloc_zero_tailing_info(func_info, in bpf_prog_load() 346 attr.func_info = ptr_to_u64(finfo); in bpf_prog_load()
|
| H A D | bpf.h | 93 const void *func_info; member
|
| H A D | features.c | 498 opts.func_info = &func_infos; in probe_kern_arg_ctx_tag()
|
| H A D | libbpf_internal.h | 501 struct btf_ext_info func_info; member
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_verifier.c | 161 struct bpf_func_info func_info[MAX_FUNC_INFOS]; member 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()
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_mcp.c | 1316 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 D | qed_dev.c | 2659 if (p_hwfn->mcp_info->func_info.bandwidth_max) in qed_hw_init_common() 2661 if (p_hwfn->mcp_info->func_info.bandwidth_min) in qed_hw_init_common() 2885 p_info = &p_hwfn->mcp_info->func_info; in qed_hw_init_pf() 4540 p_hwfn->mcp_info->func_info.mac); in qed_get_hw_info() 4545 if (p_hwfn->mcp_info->func_info.ovlan != QED_MCP_VLAN_UNSET) in qed_get_hw_info() 4547 p_hwfn->mcp_info->func_info.ovlan; in qed_get_hw_info() 4559 protocol = p_hwfn->mcp_info->func_info.protocol; in qed_get_hw_info() 4572 p_hwfn->hw_info.mtu = p_hwfn->mcp_info->func_info.mtu; in qed_get_hw_info() 5257 p_hwfn->mcp_info->func_info.bandwidth_max = max_bw; in __qed_configure_pf_max_bandwidth() 5323 p_hwfn->mcp_info->func_info.bandwidth_min = min_bw; in __qed_configure_pf_min_bandwidth()
|
| H A 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()
|
| H A D | qed_mcp.h | 780 struct qed_mcp_function_info func_info; member
|