Lines Matching defs:build_id

159 static int parse_build_id(struct freader *r, unsigned char *build_id, __u32 *size,
196 memcpy(build_id, data, desc_sz);
197 memset(build_id + desc_sz, 0, BUILD_ID_SIZE_MAX - desc_sz);
210 static int get_build_id_32(struct freader *r, unsigned char *build_id, __u32 *size)
238 !parse_build_id(r, build_id, size, READ_ONCE(phdr->p_offset),
246 static int get_build_id_64(struct freader *r, unsigned char *build_id, __u32 *size)
275 !parse_build_id(r, build_id, size, READ_ONCE(phdr->p_offset),
286 static int __build_id_parse(struct file *file, unsigned char *build_id,
314 ret = get_build_id_32(&r, build_id, size);
316 ret = get_build_id_64(&r, build_id, size);
325 * @build_id: buffer to store build id, at least BUILD_ID_SIZE long
333 int build_id_parse_nofault(struct vm_area_struct *vma, unsigned char *build_id, __u32 *size)
338 return __build_id_parse(vma->vm_file, build_id, size, false /* !may_fault */);
344 * @build_id: buffer to store build id, at least BUILD_ID_SIZE long
352 int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, __u32 *size)
357 return __build_id_parse(vma->vm_file, build_id, size, true /* may_fault */);
363 * @build_id: buffer to store build id, at least BUILD_ID_SIZE long
371 int build_id_parse_file(struct file *file, unsigned char *build_id, __u32 *size)
373 return __build_id_parse(file, build_id, size, true /* may_fault */);
380 * @build_id: Build ID parsed from @buf, at least BUILD_ID_SIZE_MAX long
384 int build_id_parse_buf(const void *buf, unsigned char *build_id, u32 buf_size)
391 err = parse_build_id(&r, build_id, NULL, 0, buf_size);