summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2026-08-16 03:57:39 +0200
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-08-17 11:58:23 +0200
commit6bd520a6e3b66010e6e87ef77a1756c6b6ce30b1 (patch)
tree0a5cd9bc49db3dacd0f2e01a55f478ab5ea62235 /tools/perf/scripts/python
parentb03bb4a597f91403b6397bb792f5bb4ef4032dd6 (diff)
bpf: Preserve source attribution without source text
GCC emits BTF line records with a file name and line number, but leaves the source line string empty. bpf_diag_source() currently treats that empty string as if the complete line record were unavailable, so diagnostics fall back to an instruction number and discard the function, file, and line attribution. Print the available source location before deciding whether source context can be rendered. When source text is absent, omit only the source context and retain the diagnostic annotation and instruction context. Fixes: b9c5d822f677 ("bpf: Add source and instruction diagnostic context") Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Acked-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/bpf/20260816015746.2632990-12-memxor@gmail.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions