#include <linux/buildid.h>
#include <linux/cache.h>
#include <linux/elf.h>
#include <linux/kernel.h>
#include <linux/pagemap.h>
#define BUILD_ID …
static int parse_build_id_buf(unsigned char *build_id,
__u32 *size,
const void *note_start,
Elf32_Word note_size)
{ … }
static inline int parse_build_id(const void *page_addr,
unsigned char *build_id,
__u32 *size,
const void *note_start,
Elf32_Word note_size)
{ … }
static int get_build_id_32(const void *page_addr, unsigned char *build_id,
__u32 *size)
{ … }
static int get_build_id_64(const void *page_addr, unsigned char *build_id,
__u32 *size)
{ … }
int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id,
__u32 *size)
{ … }
int build_id_parse_buf(const void *buf, unsigned char *build_id, u32 buf_size)
{ … }
#if IS_ENABLED(CONFIG_STACKTRACE_BUILD_ID) || IS_ENABLED(CONFIG_VMCORE_INFO)
unsigned char vmlinux_build_id[BUILD_ID_SIZE_MAX] __ro_after_init;
void __init init_vmlinux_build_id(void)
{ … }
#endif