]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/buildid: rename build_id_parse() into build_id_parse_nofault()
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 29 Aug 2024 17:42:27 +0000 (10:42 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 11 Sep 2024 16:58:30 +0000 (09:58 -0700)
commit45b8fc3096542a53bfd245a9ad8ef870384b4897
treeaa3e8ebc9186ed39d591841f629451762240801c
parent4e9d360c4cdf2dc11a30fd5caf39e8c31f0896cb
lib/buildid: rename build_id_parse() into build_id_parse_nofault()

Make it clear that build_id_parse() assumes that it can take no page
fault by renaming it and current few users to build_id_parse_nofault().

Also add build_id_parse() stub which for now falls back to non-sleepable
implementation, but will be changed in subsequent patches to take
advantage of sleepable context. PROCMAP_QUERY ioctl() on
/proc/<pid>/maps file is using build_id_parse() and will automatically
take advantage of more reliable sleepable context implementation.

Reviewed-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240829174232.3133883-6-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/buildid.h
kernel/bpf/stackmap.c
kernel/events/core.c
lib/buildid.c