Lines Matching refs:bid
937 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() argument
939 size_t size = sizeof(bid->data); in read_build_id()
955 memcpy(bid->data, abfd->build_id->data, abfd->build_id->size); in read_build_id()
956 memset(bid->data + abfd->build_id->size, 0, size - abfd->build_id->size); in read_build_id()
957 err = bid->size = abfd->build_id->size; in read_build_id()
966 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() argument
968 size_t size = sizeof(bid->data); in read_build_id()
985 err = elf_read_build_id(elf, bid->data, size); in read_build_id()
987 bid->size = err; in read_build_id()
998 int filename__read_build_id(const char *filename, struct build_id *bid) in filename__read_build_id() argument
1024 err = read_build_id(filename, bid); in filename__read_build_id()
1031 int sysfs__read_build_id(const char *filename, struct build_id *bid) in sysfs__read_build_id() argument
1033 size_t size = sizeof(bid->data); in sysfs__read_build_id()
1056 if (read(fd, bid->data, sz) == (ssize_t)sz) { in sysfs__read_build_id()
1057 memset(bid->data + sz, 0, size - sz); in sysfs__read_build_id()
1058 bid->size = sz; in sysfs__read_build_id()
1270 struct build_id bid; in symsrc__init() local
1279 build_id__init(&bid, build_id, size); in symsrc__init()
1280 if (!dso__build_id_equal(dso, &bid)) { in symsrc__init()