| /tools/testing/selftests/bpf/prog_tests/ |
| 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()
|
| A D | core_reloc_raw.c | 97 attr.func_info = (__u64)funcs; in test_bad_local_id()
|
| A D | btf.c | 4840 void *func_info = NULL; in do_test_file() local 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() 5723 .func_info = { {0, 5}, {3, 6} }, 5754 .func_info = { {0, 5}, {3, 6} }, 6544 void *func_info = NULL; in test_get_finfo() local 6579 info.func_info = ptr_to_u64(func_info); in test_get_finfo() 6599 finfo = func_info; in test_get_finfo() 6615 free(func_info); in test_get_finfo() [all …]
|
| A D | test_global_funcs.c | 75 info.func_info = ptr_to_u64(&func_info_buf); in subtest_ctx_arg_rewrite()
|
| /tools/testing/selftests/bpf/verifier/ |
| 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 } },
|
| /tools/bpf/bpftool/ |
| A D | xlated_dumper.h | 25 void *func_info; member
|
| A D | prog.c | 146 holder.func_info = ptr_to_u64(ptr); in prep_prog_info() 707 void *func_info = NULL; in prog_dump() local 739 func_info = u64_to_ptr(info->func_info); in prog_dump() 803 if (func_info) { in prog_dump() 812 if (func_info && func_sig[0] != '\0') { in prog_dump() 820 if (func_info && func_sig[0] != '\0') in prog_dump() 859 dd.func_info = func_info; in prog_dump() 2265 struct bpf_func_info func_info; in profile_target_name() local 2294 info.func_info = ptr_to_u64(&func_info); in profile_target_name() 2308 t = btf__type_by_id(btf, func_info.type_id); in profile_target_name() [all …]
|
| 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()
|
| A D | btf_dumper.c | 71 info.func_info = ptr_to_u64(&finfo); in dump_prog_id_as_func_ptr()
|
| A D | common.c | 432 info.func_info = ptr_to_u64(&finfo); in get_prog_full_name()
|
| /tools/perf/util/ |
| A 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()
|
| A D | bpf-utils.c | 50 offsetof(struct bpf_prog_info, func_info),
|
| A D | bpf-event.c | 136 void *func_infos = (void *)(uintptr_t)(info->func_info); in synthesize_bpf_prog_name()
|
| /tools/lib/bpf/ |
| A D | gen_loader.c | 969 static void info_blob_bswap(struct bpf_gen *gen, int func_info, int line_info, in info_blob_bswap() argument 972 struct bpf_func_info *fi = gen->data_start + func_info; in info_blob_bswap() 998 int prog_load_attr, license_off, insns_off, func_info, line_info, core_relos; in bpf_gen__prog_load() local 1029 func_info = add_data(gen, load_attr->func_info, func_info_tot_sz); in bpf_gen__prog_load() 1031 func_info, load_attr->func_info_cnt, in bpf_gen__prog_load() 1050 info_blob_bswap(gen, func_info, line_info, core_relos, load_attr); in bpf_gen__prog_load() 1064 emit_rel_store(gen, attr_field(prog_load_attr, func_info), func_info); in bpf_gen__prog_load()
|
| A D | linker.c | 134 struct btf_ext_sec_data func_info; member 218 free(sec->func_info.recs); in bpf_linker__free() 2639 rec_sz = obj->btf_ext->func_info.rec_size; in linker_append_btf_ext() 2640 for_each_btf_ext_sec(&obj->btf_ext->func_info, ext_sec) { in linker_append_btf_ext() 2651 if (dst_sec->func_info.rec_sz == 0) in linker_append_btf_ext() 2652 dst_sec->func_info.rec_sz = rec_sz; in linker_append_btf_ext() 2653 if (dst_sec->func_info.rec_sz != rec_sz) { in linker_append_btf_ext() 2981 if (sec->func_info.rec_cnt) { in finalize_btf_ext() 2983 func_rec_sz = sec->func_info.rec_sz; in finalize_btf_ext() 2984 if (func_rec_sz != sec->func_info.rec_sz) { in finalize_btf_ext() [all …]
|
| A D | bpf.c | 243 const char *func_info, *line_info; in bpf_prog_load() local 302 func_info = OPTS_GET(opts, func_info, NULL); in bpf_prog_load() 304 attr.func_info = ptr_to_u64(func_info); in bpf_prog_load() 335 finfo = alloc_zero_tailing_info(func_info, in bpf_prog_load() 344 attr.func_info = ptr_to_u64(finfo); in bpf_prog_load()
|
| A D | bpf.h | 90 const void *func_info; member
|
| A D | features.c | 499 opts.func_info = &func_infos; in probe_kern_arg_ctx_tag()
|
| A D | libbpf_internal.h | 491 struct btf_ext_info func_info; member
|
| A D | btf.c | 3110 struct btf_ext_sec_info_param func_info = { in btf_ext_parse_info() local 3114 .ext_info = &btf_ext->func_info, in btf_ext_parse_info() 3131 err = btf_ext_parse_sec_info(btf_ext, &func_info, is_native); in btf_ext_parse_info() 3307 free(btf_ext->func_info.sec_idxs); in btf_ext__free() 5435 seg = &btf_ext->func_info; in btf_ext_visit_type_ids() 5466 seg = &btf_ext->func_info; in btf_ext_visit_str_offs()
|
| A D | libbpf.c | 491 void *func_info; member 766 zfree(&prog->func_info); in bpf_program__unload() 3272 ext_segs[0] = &obj->btf_ext->func_info; in bpf_object__init_btf() 6279 if (main_prog != prog && !main_prog->func_info) in reloc_prog_func_and_line_info() 6282 err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->func_info, in reloc_prog_func_and_line_info() 6283 &main_prog->func_info, in reloc_prog_func_and_line_info() 6292 if (main_prog->func_info) { in reloc_prog_func_and_line_info() 6946 if (!obj->btf_ext || !prog->func_info) in bpf_program_fixup_func_info() 6970 func_rec = prog->func_info + prog->func_info_rec_size * i; in bpf_program_fixup_func_info() 7525 load_attr.func_info = prog->func_info; in bpf_object_load_prog() [all …]
|
| /tools/testing/selftests/bpf/ |
| 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()
|
| /tools/include/uapi/linux/ |
| A D | bpf.h | 1573 __aligned_u64 func_info; /* func info */ member 6634 __aligned_u64 func_info; member
|