/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_global_funcs.c | 77 info.func_info_rec_size = sizeof(struct bpf_func_info_min); in subtest_ctx_arg_rewrite() 92 for (i = 0; i < info.nr_func_info; i++, rec = (void *)rec + info.func_info_rec_size) { in subtest_ctx_arg_rewrite()
|
H A D | test_btf_ext.c | 36 info.func_info_rec_size = sizeof(*func_info); in subtest_line_func_info()
|
H A D | core_reloc_raw.c | 99 attr.func_info_rec_size = sizeof(*funcs); in test_bad_local_id()
|
H A D | btf.c | 4912 rec_size = info.func_info_rec_size; in do_test_file() 4914 "incorrect info.func_info_rec_size (1st) %d\n", rec_size)) { in do_test_file() 4928 info.func_info_rec_size = rec_size; in do_test_file() 4944 if (CHECK(info.func_info_rec_size != rec_size, in do_test_file() 4945 "incorrect info.func_info_rec_size (2nd) %d", in do_test_file() 4946 info.func_info_rec_size)) { in do_test_file() 5687 __u32 func_info_rec_size; member 5724 .func_info_rec_size = 8, 5730 .descr = "func_type (Incorrect func_info_rec_size)", 5755 .func_info_rec_size [all...] |
/linux/tools/lib/bpf/ |
H A D | bpf.c | 245 __u32 func_info_rec_size, line_info_rec_size; in bpf_prog_load() local 301 func_info_rec_size = OPTS_GET(opts, func_info_rec_size, 0); in bpf_prog_load() 303 attr.func_info_rec_size = func_info_rec_size; in bpf_prog_load() 333 attr.func_info_rec_size < func_info_rec_size) { in bpf_prog_load() 337 func_info_rec_size, in bpf_prog_load() 338 attr.func_info_rec_size); in bpf_prog_load() 345 attr.func_info_rec_size in bpf_prog_load() [all...] |
H A D | gen_loader.c | 993 load_attr->func_info_rec_size; in bpf_gen__prog_load() 1027 attr.func_info_rec_size = tgt_endian(load_attr->func_info_rec_size); in bpf_gen__prog_load() 1032 load_attr->func_info_rec_size); in bpf_gen__prog_load()
|
H A D | bpf.h | 92 __u32 func_info_rec_size; member
|
H A D | features.c | 501 opts.func_info_rec_size = sizeof(func_infos[0]); in probe_kern_arg_ctx_tag()
|
H A D | libbpf.c | 492 __u32 func_info_rec_size; member 6285 &main_prog->func_info_rec_size); in reloc_prog_func_and_line_info() 6970 func_rec = prog->func_info + prog->func_info_rec_size * i; in bpf_program_fixup_func_info() 7001 func_rec = prog->func_info + prog->func_info_rec_size * rec_idx; in bpf_program_fixup_func_info() 7526 load_attr.func_info_rec_size = prog->func_info_rec_size; in bpf_object_load_prog() 9468 if (prog->func_info_rec_size != sizeof(struct bpf_func_info)) in bpf_program__func_info()
|
/linux/tools/bpf/bpftool/ |
H A D | prog.c | 111 holder.func_info_rec_size = info->func_info_rec_size; in prep_prog_info() 112 needed += info->nr_func_info * info->func_info_rec_size; in prep_prog_info() 147 ptr += holder.nr_func_info * holder.func_info_rec_size; in prep_prog_info() 804 record = func_info + i * info->func_info_rec_size; in prog_dump() 860 dd.finfo_rec_size = info->func_info_rec_size; in prog_dump() 2269 __u32 func_info_rec_size; in profile_target_name() local 2285 func_info_rec_size = info.func_info_rec_size; in profile_target_name() 2293 info.func_info_rec_size in profile_target_name() [all...] |
H A D | common.c | 429 info.func_info_rec_size = prog_info->func_info_rec_size; in get_prog_full_name() 430 if (info.func_info_rec_size > sizeof(finfo)) in get_prog_full_name() 431 info.func_info_rec_size = sizeof(finfo); in get_prog_full_name()
|
/linux/tools/perf/util/ |
H A D | bpf-utils.c | 52 offsetof(struct bpf_prog_info, func_info_rec_size),
|
H A D | bpf-event.c | 147 finfo = func_infos + sub_id * info->func_info_rec_size; in synthesize_bpf_prog_name() 591 if (info->btf_id && info->nr_func_info && info->func_info_rec_size) { in perf_event__synthesize_one_bpf_prog()
|
/linux/Documentation/bpf/ |
H A D | btf.rst | 685 __u32 func_info_rec_size; /* userspace bpf_func_info size */ 705 func_info_rec_size is the size of each func_info record, and 807 func_info_rec_size /* __u32 value */ 812 ``func_info_rec_size`` specifies the size of ``bpf_func_info`` structure when
|
/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 1572 __u32 func_info_rec_size; /* userspace bpf_func_info size */ member 6633 __u32 func_info_rec_size; member
|
/linux/include/uapi/linux/ |
H A D | bpf.h | 1572 __u32 func_info_rec_size; /* userspace bpf_func_info size */ member 6633 __u32 func_info_rec_size; member
|
/linux/kernel/bpf/ |
H A D | syscall.c | 4840 if ((info->nr_func_info || info->func_info_rec_size) && in set_info_rec_size() 4841 info->func_info_rec_size != sizeof(struct bpf_func_info)) in set_info_rec_size() 4852 info->func_info_rec_size = sizeof(struct bpf_func_info); in set_info_rec_size() 5079 info.func_info_rec_size * ulen)) in bpf_prog_get_info_by_fd()
|
H A D | verifier.c | 17962 urec_size = attr->func_info_rec_size; in check_btf_func_early() 17989 offsetof(union bpf_attr, func_info_rec_size), in check_btf_func_early() 18068 urec_size = attr->func_info_rec_size; in check_btf_func()
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_verifier.c | 1598 opts.func_info_rec_size = sizeof(test->func_info[0]); in do_test_single()
|