Lines Matching refs:bid
101 char *bid = bf; in build_id__sprintf() local
108 sprintf(bid, "%02x", *raw); in build_id__sprintf()
110 bid += 2; in build_id__sprintf()
113 return (bid - bf) + 1; in build_id__sprintf()
119 struct build_id bid; in sysfs__sprintf_build_id() local
127 ret = sysfs__read_build_id(notes, &bid); in sysfs__sprintf_build_id()
131 return build_id__sprintf(&bid, sbuild_id); in sysfs__sprintf_build_id()
136 struct build_id bid; in filename__sprintf_build_id() local
139 ret = filename__read_build_id(pathname, &bid); in filename__sprintf_build_id()
143 return build_id__sprintf(&bid, sbuild_id); in filename__sprintf_build_id()
276 build_id__sprintf(&dso->bid, sbuild_id); in dso__build_id_filename()
301 static int write_buildid(const char *name, size_t name_len, struct build_id *bid, in write_buildid() argument
312 memcpy(&b.data, bid->data, bid->size); in write_buildid()
313 b.size = (u8) bid->size; in write_buildid()
361 err = write_buildid(name, name_len, &pos->bid, machine->pid, in machine__write_buildid_table()
775 static int build_id_cache__add_b(const struct build_id *bid, in build_id_cache__add_b() argument
781 build_id__sprintf(bid, sbuild_id); in build_id_cache__add_b()
847 return build_id_cache__add_b(&dso->bid, name, dso->nsinfo, in dso__cache_build_id()
909 void build_id__init(struct build_id *bid, const u8 *data, size_t size) in build_id__init() argument
912 memcpy(bid->data, data, size); in build_id__init()
913 bid->size = size; in build_id__init()