Commit | Line | Data |
---|---|---|
bd7525da JO |
1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | #ifndef _LINUX_BUILDID_H | |
3 | #define _LINUX_BUILDID_H | |
4 | ||
5 | #include <linux/mm_types.h> | |
6 | ||
7 | #define BUILD_ID_SIZE_MAX 20 | |
8 | ||
921f88fc JO |
9 | int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, |
10 | __u32 *size); | |
7eaf3cf3 | 11 | int build_id_parse_buf(const void *buf, unsigned char *build_id, u32 buf_size); |
bd7525da | 12 | |
44e8a5e9 | 13 | #if IS_ENABLED(CONFIG_STACKTRACE_BUILD_ID) || IS_ENABLED(CONFIG_CRASH_CORE) |
83cc6fa0 SB |
14 | extern unsigned char vmlinux_build_id[BUILD_ID_SIZE_MAX]; |
15 | void init_vmlinux_build_id(void); | |
22f4e66d SB |
16 | #else |
17 | static inline void init_vmlinux_build_id(void) { } | |
18 | #endif | |
83cc6fa0 | 19 | |
bd7525da | 20 | #endif |