]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Extract bpf_get_linfo_file_line
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Wed, 8 Apr 2026 02:13:53 +0000 (04:13 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 Apr 2026 01:09:56 +0000 (18:09 -0700)
commitfbb98834a9221de850a3b1afd78a25473685f9b5
tree2da5d45c45db5bb3330def1b4a528f25bcbfbf95
parent5c662b1c1789f51f79ee9c648681abc8410dfa81
bpf: Extract bpf_get_linfo_file_line

Extract bpf_get_linfo_file_line as its own function so that the logic to
obtain the file, line, and line number for a given program can be shared
in subsequent patches.

Reviewed-by: Puranjay Mohan <puranjay@kernel.org>
Acked-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20260408021359.3786905-3-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
kernel/bpf/core.c