/openbmc/qemu/scripts/codeconverter/codeconverter/ |
H A D | utils.py | 50 def line_col(s, position: int) -> LineAndColumn: function 62 assert line_col('abc\ndefg\nhijkl', 0) == (1, 1) 63 assert line_col('abc\ndefg\nhijkl', 2) == (1, 3) 64 assert line_col('abc\ndefg\nhijkl', 3) == (1, 4) 65 assert line_col('abc\ndefg\nhijkl', 4) == (2, 1) 66 assert line_col('abc\ndefg\nhijkl', 10) == (3, 2)
|
H A D | patching.py | 68 def line_col(self) -> LineAndColumn: member in FileMatch 69 return self.file.line_col(self.start()) 80 pos = self.line_col() 147 start = self.file.line_col(self.start()) 148 end = self.file.line_col(self.end() - 1) 252 p.start, line_col(s, p.start), 253 p.end, line_col(s, p.end), 257 (p.start, line_col(s, p.start), last, line_col(s, last))) 320 def line_col(self, start: int) -> LineAndColumn: member in FileInfo 322 return line_col(self.original_content, start) [all …]
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 794 BPF_LINE_INFO_LINE_NUM(linfo->line_col), in btf_dump_linfo_plain() 795 BPF_LINE_INFO_LINE_COL(linfo->line_col)); in btf_dump_linfo_plain() 815 if (BPF_LINE_INFO_LINE_NUM(linfo->line_col)) in btf_dump_linfo_json() 817 BPF_LINE_INFO_LINE_NUM(linfo->line_col)); in btf_dump_linfo_json() 819 if (BPF_LINE_INFO_LINE_COL(linfo->line_col)) in btf_dump_linfo_json() 821 BPF_LINE_INFO_LINE_COL(linfo->line_col)); in btf_dump_linfo_json() 899 BPF_LINE_INFO_LINE_NUM(linfo->line_col), in btf_dump_linfo_dotlabel() 900 BPF_LINE_INFO_LINE_COL(linfo->line_col)); in btf_dump_linfo_dotlabel()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | bpf.h | 7136 #define BPF_LINE_INFO_LINE_NUM(line_col) ((line_col) >> 10) argument 7137 #define BPF_LINE_INFO_LINE_COL(line_col) ((line_col) & 0x3ff) argument 7143 __u32 line_col; member
|
/openbmc/linux/include/uapi/linux/ |
H A D | bpf.h | 7133 #define BPF_LINE_INFO_LINE_NUM(line_col) ((line_col) >> 10) argument 7134 #define BPF_LINE_INFO_LINE_COL(line_col) ((line_col) & 0x3ff) argument 7140 __u32 line_col; member
|
/openbmc/linux/Documentation/bpf/ |
H A D | btf.rst | 656 __u32 line_col; /* line number and column number */ 675 #define BPF_LINE_INFO_LINE_NUM(line_col) ((line_col) >> 10) 676 #define BPF_LINE_INFO_LINE_COL(line_col) ((line_col) & 0x3ff)
|
/openbmc/linux/tools/lib/bpf/ |
H A D | libbpf_internal.h | 486 __u32 line_col; member
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf.c | 5597 #define BPF_LINE_INFO_ENC(insn_off, file_off, line_off, line_num, line_col) \ argument 5598 (insn_off), (file_off), (line_off), ((line_num) << 10 | ((line_col) & 0x3ff)) 6687 linfo[i].line_col != expected_linfo->line_col, in test_get_linfo() 6691 linfo[i].line_col, in test_get_linfo() 6694 expected_linfo->line_col)) { in test_get_linfo()
|
/openbmc/linux/kernel/bpf/ |
H A D | verifier.c | 15583 #define MIN_BPF_LINEINFO_SIZE offsetofend(struct bpf_line_info, line_col)
|