bpf: Add size arg to build_id_parse function
authorJiri Olsa <jolsa@kernel.org>
Thu, 14 Jan 2021 13:40:43 +0000 (14:40 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Jan 2021 03:29:58 +0000 (19:29 -0800)
commit921f88fc891922b325b3668cd026a386571ed602
treea3f43d479a3c524de9bc58c06c0ba886def5b0e3
parentbd7525dacd7e204f8cae061941fb9001c89d6988
bpf: Add size arg to build_id_parse function

It's possible to have other build id types (other than default SHA1).
Currently there's also ld support for MD5 build id.

Adding size argument to build_id_parse function, that returns (if defined)
size of the parsed build id, so we can recognize the build id type.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210114134044.1418404-3-jolsa@kernel.org
include/linux/buildid.h
kernel/bpf/stackmap.c
lib/buildid.c