Searched refs:func_info (Results 1 - 25 of 35) sorted by last modified time

12

/linux-master/kernel/bpf/
H A Dverifier.c435 if (!env->prog->aux->func_info)
438 info = &env->prog->aux->func_info[subprog];
2509 main_btf_id = aux->func_info[0].type_id;
2513 verbose(env, "invalid btf id for main subprog in func_info\n");
2541 if (aux->func_info[i].type_id != id)
2543 ret = aux->func_info[i].insn_off;
2544 /* Further func_info and subprog checks will also happen
2548 verbose(env, "invalid exception callback insn_off in func_info: 0\n");
2553 verbose(env, "exception callback type id not found in func_info\n");
9448 if (!prog->aux->func_info)
[all...]
H A Dsyscall.c2232 kvfree(aux->func_info);
4755 user_finfo = u64_to_user_ptr(info.func_info);
4757 if (copy_to_user(user_finfo, prog->aux->func_info,
H A Dcore.c606 prog->aux->func_info[prog->aux->func_idx].type_id);
H A Dbtf.c7011 if (!prog->aux->func_info) {
7016 btf_id = prog->aux->func_info[0].type_id;
7145 if (!prog->aux->func_info) {
7150 btf_id = prog->aux->func_info[subprog].type_id;
/linux-master/include/linux/
H A Dbpf.h1495 struct bpf_func_info *func_info; member in struct:bpf_prog_aux
/linux-master/tools/lib/bpf/
H A Dlibbpf.c463 void *func_info; member in struct:bpf_program
731 zfree(&prog->func_info);
3169 ext_segs[0] = &obj->btf_ext->func_info;
6122 /* only attempt func info relocation if main program's func_info
6125 if (main_prog != prog && !main_prog->func_info)
6128 err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->func_info,
6129 &main_prog->func_info,
6138 if (main_prog->func_info) {
6792 if (!obj->btf_ext || !prog->func_info)
6816 func_rec = prog->func_info
[all...]
H A Dlinker.c128 struct btf_ext_sec_data func_info; member in struct:dst_sec
207 free(sec->func_info.recs);
2462 rec_sz = obj->btf_ext->func_info.rec_size;
2463 for_each_btf_ext_sec(&obj->btf_ext->func_info, ext_sec) {
2474 if (dst_sec->func_info.rec_sz == 0)
2475 dst_sec->func_info.rec_sz = rec_sz;
2476 if (dst_sec->func_info.rec_sz != rec_sz) {
2481 for_each_btf_ext_rec(&obj->btf_ext->func_info, ext_sec, i, src_rec) {
2482 dst_rec = add_btf_ext_rec(&dst_sec->func_info, src_rec);
2791 if (sec->func_info
[all...]
H A Dlibbpf_internal.h415 * info points to the individual info section (e.g. func_info and
444 * func_info subsection
446 * The func_info subsection layout:
447 * record size for struct bpf_func_info in the func_info subsection
460 * kernel will handle the func_info properly based on its contents.
484 struct btf_ext_info func_info; member in struct:btf_ext
H A Dfeatures.c473 opts.func_info = &func_infos;
H A Dbtf.c2923 .ext_info = &btf_ext->func_info,
2924 .desc = "func_info"
2996 free(btf_ext->func_info.sec_idxs);
5142 seg = &btf_ext->func_info;
5173 seg = &btf_ext->func_info;
H A Dbpf.h90 const void *func_info; member in struct:bpf_prog_load_opts
H A Dbpf.c243 const char *func_info, *line_info; local
302 func_info = OPTS_GET(opts, func_info, NULL);
304 attr.func_info = ptr_to_u64(func_info);
334 finfo = alloc_zero_tailing_info(func_info,
343 attr.func_info = ptr_to_u64(finfo);
/linux-master/drivers/infiniband/hw/hns/
H A Dhns_roce_hw_v2.h1282 } func_info; member in union:hns_roce_cmq_desc::__anon46
H A Dhns_roce_hw_v2.c1620 hr_dev->func_num = le32_to_cpu(desc.func_info.own_func_num);
1621 hr_dev->cong_algo_tmpl_id = le32_to_cpu(desc.func_info.own_mac_id);
/linux-master/tools/perf/util/
H A Dbpf-event.c128 void *func_infos = (void *)(uintptr_t)(info->func_info);
H A Dbpf_counter.c65 struct bpf_func_info *func_info; local
88 func_info = u64_to_ptr(info_linear->info.func_info);
89 t = btf__type_by_id(btf, func_info[0].type_id);
92 info_linear->info.btf_id, func_info[0].type_id);
/linux-master/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-master/tools/testing/selftests/bpf/
H A Dtest_verifier.c165 struct bpf_func_info func_info[MAX_FUNC_INFOS]; member in struct:bpf_test
460 self->func_info[1].insn_off = callback_idx;
1605 opts.func_info = test->func_info;
1607 opts.func_info_rec_size = sizeof(test->func_info[0]);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbtf.c4791 void *func_info = NULL; local
4870 func_info = malloc(info.nr_func_info * rec_size);
4871 if (CHECK(!func_info, "out of memory")) {
4876 /* reset info to only retrieve func_info related data */
4880 info.func_info = ptr_to_u64(func_info);
4908 finfo = func_info;
4942 free(func_info);
5637 __u32 func_info[MAX_SUBPROGS][2]; member in struct:prog_info_raw_test
5674 .func_info
6495 void *func_info = NULL; local
[all...]
H A Dtest_global_funcs.c75 info.func_info = ptr_to_u64(&func_info_buf);
/linux-master/tools/include/uapi/linux/
H A Dbpf.h1543 __aligned_u64 func_info; /* func info */ member in struct:bpf_attr::__anon3134
6560 __aligned_u64 func_info; member in struct:bpf_prog_info
/linux-master/tools/bpf/bpftool/
H A Dprog.c146 holder.func_info = ptr_to_u64(ptr);
707 void *func_info = NULL; local
739 func_info = u64_to_ptr(info->func_info);
803 if (func_info) {
804 record = func_info + i * info->func_info_rec_size;
812 if (func_info && func_sig[0] != '\0') {
820 if (func_info && func_sig[0] != '\0')
852 dd.func_info = func_info;
2195 struct bpf_func_info func_info; local
[all...]
H A Dbtf_dumper.c55 /* Get the bpf_prog's name. Obtain from func_info. */
71 info.func_info = ptr_to_u64(&finfo);
/linux-master/include/uapi/linux/
H A Dbpf.h1543 __aligned_u64 func_info; /* func info */ member in struct:bpf_attr::__anon2593
6560 __aligned_u64 func_info; member in struct:bpf_prog_info
/linux-master/drivers/net/ethernet/qlogic/qed/
H A Dqed_cxt.c1971 if (p_hwfn->mcp_info->func_info.protocol == QED_PCI_ETH_RDMA) {

Completed in 734 milliseconds

12