brintos

brintos / linux-shallow public Read only

0
0
Text · 713 B · 25f8f73 Raw
22 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _LINUX_BUILDID_H3#define _LINUX_BUILDID_H4 5#include <linux/types.h>6 7#define BUILD_ID_SIZE_MAX 208 9struct vm_area_struct;10int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, __u32 *size) HWJS_SUSPENDS;11int build_id_parse_nofault(struct vm_area_struct *vma, unsigned char *build_id, __u32 *size) HWJS_SUSPENDS;12int build_id_parse_buf(const void *buf, unsigned char *build_id, u32 buf_size) HWJS_SUSPENDS;13 14#if IS_ENABLED(CONFIG_STACKTRACE_BUILD_ID) || IS_ENABLED(CONFIG_VMCORE_INFO)15extern unsigned char vmlinux_build_id[BUILD_ID_SIZE_MAX];16void init_vmlinux_build_id(void);17#else18static inline void init_vmlinux_build_id(void) { }19#endif20 21#endif22