Home
last modified time | relevance | path

Searched refs:line_info (Results 1 – 20 of 20) sorted by relevance

/linux-6.6.21/Documentation/bpf/
Dbtf.rst562 * BPF_OBJ_GET_INFO_BY_FD: btf, func_info, line_info
631 During prog_load, func_info and line_info can be passed to kernel with proper
643 __aligned_u64 line_info; /* line info */
646 The func_info and line_info are an array of below, respectively.::
660 line_info_rec_size is the size of each line_info record. Passing the record
668 Below are requirements for line_info:
669 * the first insn in each func must have a line_info record pointing to it.
670 * the line_info insn_off is in strictly increasing order.
672 For line_info, the line number and column number are defined as below:
729 The .BTF.ext section encodes func_info, line_info and CO-RE relocations
[all …]
/linux-6.6.21/tools/lib/bpf/
Dlinker.c129 struct btf_ext_sec_data line_info; member
208 free(sec->line_info.recs); in bpf_linker__free()
2472 rec_sz = obj->btf_ext->line_info.rec_size; in linker_append_btf_ext()
2473 for_each_btf_ext_sec(&obj->btf_ext->line_info, ext_sec) { in linker_append_btf_ext()
2484 if (dst_sec->line_info.rec_sz == 0) in linker_append_btf_ext()
2485 dst_sec->line_info.rec_sz = rec_sz; in linker_append_btf_ext()
2486 if (dst_sec->line_info.rec_sz != rec_sz) { in linker_append_btf_ext()
2491 for_each_btf_ext_rec(&obj->btf_ext->line_info, ext_sec, i, src_rec) { in linker_append_btf_ext()
2492 dst_rec = add_btf_ext_rec(&dst_sec->line_info, src_rec); in linker_append_btf_ext()
2783 if (sec->line_info.rec_cnt) { in finalize_btf_ext()
[all …]
Dbpf.c237 const char *func_info, *line_info; in bpf_prog_load() local
301 line_info = OPTS_GET(opts, line_info, NULL); in bpf_prog_load()
303 attr.line_info = ptr_to_u64(line_info); in bpf_prog_load()
340 linfo = alloc_zero_tailing_info(line_info, in bpf_prog_load()
349 attr.line_info = ptr_to_u64(linfo); in bpf_prog_load()
Dgen_loader.c939 int prog_load_attr, license_off, insns_off, func_info, line_info, core_relos; in bpf_gen__prog_load() local
966 line_info = add_data(gen, load_attr->line_info, in bpf_gen__prog_load()
987 emit_rel_store(gen, attr_field(prog_load_attr, line_info), line_info); in bpf_gen__prog_load()
Dbpf_prog_linfo.c130 memcpy(prog_linfo->raw_linfo, (void *)(long)info->line_info, data_sz); in bpf_prog_linfo__new()
Dbpf.h91 const void *line_info; member
Dlibbpf_internal.h449 struct btf_ext_info line_info; member
Dlibbpf.c452 void *line_info; member
707 zfree(&prog->line_info); in bpf_program__unload()
2859 ext_segs[1] = &obj->btf_ext->line_info; in bpf_object__init_btf()
6137 goto line_info; in reloc_prog_func_and_line_info()
6162 line_info: in reloc_prog_func_and_line_info()
6164 if (main_prog != prog && !main_prog->line_info) in reloc_prog_func_and_line_info()
6167 err = adjust_prog_btf_ext_info(obj, prog, &obj->btf_ext->line_info, in reloc_prog_func_and_line_info()
6168 &main_prog->line_info, in reloc_prog_func_and_line_info()
6177 if (main_prog->line_info) { in reloc_prog_func_and_line_info()
6922 load_attr.line_info = prog->line_info; in bpf_object_load_prog()
Dbtf.c2765 .ext_info = &btf_ext->line_info, in btf_ext_setup_line_info()
2826 free(btf_ext->line_info.sec_idxs); in btf_ext__free()
4991 seg = &btf_ext->line_info; in btf_ext_visit_str_offs()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbtf.c5611 __u32 line_info[MAX_NR_RAW_U32]; member
5648 .line_info = { BTF_END_RAW },
5679 .line_info = { BTF_END_RAW },
5711 .line_info = { BTF_END_RAW },
5743 .line_info = { BTF_END_RAW },
5762 .line_info = {
5788 .line_info = {
5817 .line_info = {
5844 .line_info = {
5870 .line_info = {
[all …]
/linux-6.6.21/tools/perf/util/
Dbpf-utils.c55 offsetof(struct bpf_prog_info, line_info),
/linux-6.6.21/sound/pci/mixart/
Dmixart_core.h110 struct mixart_analog_hw_info line_info; member
/linux-6.6.21/tools/bpf/bpftool/Documentation/
Dbpftool-prog.rst108 If the programs have line_info available, the source line will
121 If the prog has line_info available, the source line will
/linux-6.6.21/drivers/tty/
Damiserial.c1366 static inline void line_info(struct seq_file *m, int line, in line_info() function
1418 line_info(m, 0, &serial_state); in rs_proc_show()
Dsynclink_gt.c1165 static inline void line_info(struct seq_file *m, struct slgt_info *info) in line_info() function
1240 line_info(m, info); in synclink_gt_proc_show()
/linux-6.6.21/tools/include/uapi/linux/
Dbpf.h1437 __aligned_u64 line_info; /* line info */ member
6431 __aligned_u64 line_info; member
/linux-6.6.21/include/uapi/linux/
Dbpf.h1437 __aligned_u64 line_info; /* line info */ member
6431 __aligned_u64 line_info; member
/linux-6.6.21/tools/bpf/bpftool/
Dprog.c149 holder.line_info = ptr_to_u64(ptr); in prep_prog_info()
/linux-6.6.21/kernel/bpf/
Dsyscall.c4538 user_linfo = u64_to_user_ptr(info.line_info); in bpf_prog_get_info_by_fd()
Dverifier.c15601 ulinfo = make_bpfptr(attr->line_info, uattr.is_kernel); in check_btf_line()