]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: save subprogram name in bpf_subprog_info
authorEduard Zingerman <eddyz87@gmail.com>
Fri, 10 Apr 2026 20:55:53 +0000 (13:55 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Apr 2026 22:01:56 +0000 (15:01 -0700)
commitcf3ee1ecf3466ddb978a58df9d5b638e7dff673d
treeeaa351c104f50d22c9ea7c24eceff39eb7d2a0b5
parent33dfc521c20d02375c8696dcace04037d2a865e6
bpf: save subprogram name in bpf_subprog_info

Subprogram name can be computed from function info and BTF, but it is
convenient to have the name readily available for logging purposes.
Update comment saying that bpf_subprog_info->start has to be the first
field, this is no longer true, relevant sites access .start field
by it's name.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20260410-patch-set-v4-2-5d4eecb343db@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf_verifier.h
kernel/bpf/verifier.c