Lines Matching refs:bid
104 char *bid = bf; in build_id__sprintf() local
111 sprintf(bid, "%02x", *raw); in build_id__sprintf()
113 bid += 2; in build_id__sprintf()
116 return (bid - bf) + 1; in build_id__sprintf()
122 struct build_id bid; in sysfs__sprintf_build_id() local
130 ret = sysfs__read_build_id(notes, &bid); in sysfs__sprintf_build_id()
134 return build_id__sprintf(&bid, sbuild_id); in sysfs__sprintf_build_id()
139 struct build_id bid; in filename__sprintf_build_id() local
142 ret = filename__read_build_id(pathname, &bid); in filename__sprintf_build_id()
146 return build_id__sprintf(&bid, sbuild_id); in filename__sprintf_build_id()
278 build_id__sprintf(&dso->bid, sbuild_id); in __dso__build_id_filename()
305 static int write_buildid(const char *name, size_t name_len, struct build_id *bid, in write_buildid() argument
316 memcpy(&b.data, bid->data, bid->size); in write_buildid()
317 b.size = (u8) bid->size; in write_buildid()
365 err = write_buildid(name, name_len, &pos->bid, machine->pid, in machine__write_buildid_table()
824 static int build_id_cache__add_b(const struct build_id *bid, in build_id_cache__add_b() argument
832 build_id__sprintf(bid, sbuild_id); in build_id_cache__add_b()
889 struct build_id *bid, in filename__read_build_id_ns() argument
896 ret = filename__read_build_id(filename, bid); in filename__read_build_id_ns()
904 struct build_id bid; in dso__build_id_mismatch() local
908 if (filename__read_build_id_ns(name, &bid, dso->nsinfo) >= 0) in dso__build_id_mismatch()
909 ret = !dso__build_id_equal(dso, &bid); in dso__build_id_mismatch()
953 ret = build_id_cache__add_b(&dso->bid, name, dso->nsinfo, in dso__cache_build_id()
1012 void build_id__init(struct build_id *bid, const u8 *data, size_t size) in build_id__init() argument
1015 memcpy(bid->data, data, size); in build_id__init()
1016 bid->size = size; in build_id__init()
1019 bool build_id__is_defined(const struct build_id *bid) in build_id__is_defined() argument
1021 return bid && bid->size ? !!memchr_inv(bid->data, 0, bid->size) : false; in build_id__is_defined()