diff options
author | Jiri Olsa <jolsa@kernel.org> | 2021-01-14 14:40:43 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-01-14 19:29:58 -0800 |
commit | 921f88fc891922b325b3668cd026a386571ed602 (patch) | |
tree | a3f43d479a3c524de9bc58c06c0ba886def5b0e3 /include | |
parent | bd7525dacd7e204f8cae061941fb9001c89d6988 (diff) | |
download | lwn-921f88fc891922b325b3668cd026a386571ed602.tar.gz lwn-921f88fc891922b325b3668cd026a386571ed602.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/buildid.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/buildid.h b/include/linux/buildid.h index 08028a212589..40232f90db6e 100644 --- a/include/linux/buildid.h +++ b/include/linux/buildid.h @@ -6,6 +6,7 @@ #define BUILD_ID_SIZE_MAX 20 -int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id); +int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, + __u32 *size); #endif |