mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Jiri Olsa](/assets/img/avatar_default.png)
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
12 lines
248 B
C
12 lines
248 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_BUILDID_H
|
|
#define _LINUX_BUILDID_H
|
|
|
|
#include <linux/mm_types.h>
|
|
|
|
#define BUILD_ID_SIZE_MAX 20
|
|
|
|
int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id,
|
|
__u32 *size);
|
|
|
|
#endif
|