/tools/perf/tests/ |
D | pe-file-parsing.c | 27 struct build_id bid; in run_dir() local 39 ret = filename__read_build_id(filename, &bid); in run_dir() 42 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir() 51 ret = filename__read_build_id(debugfile, &bid); in run_dir() 54 TEST_ASSERT_VAL("Wrong build_id", !memcmp(bid.data, expect_build_id, in run_dir()
|
D | sdt.c | 31 struct build_id bid; in build_id_cache__add_file() local 34 err = filename__read_build_id(filename, &bid); in build_id_cache__add_file() 40 build_id__sprintf(&bid, sbuild_id); in build_id_cache__add_file()
|
/tools/perf/util/ |
D | symbol-minimal.c | 34 static int read_build_id(void *note_data, size_t note_len, struct build_id *bid, in read_build_id() argument 37 size_t size = sizeof(bid->data); in read_build_id() 67 memcpy(bid->data, ptr, sz); in read_build_id() 68 memset(bid->data + sz, 0, size - sz); in read_build_id() 69 bid->size = sz; in read_build_id() 89 int filename__read_build_id(const char *filename, struct build_id *bid) in filename__read_build_id() argument 161 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id() 163 ret = bid->size; in filename__read_build_id() 212 ret = read_build_id(buf, buf_size, bid, need_swap); in filename__read_build_id() 214 ret = bid->size; in filename__read_build_id() [all …]
|
D | build-id.c | 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() [all …]
|
D | dso.c | 175 build_id__sprintf(&dso->bid, build_id_hex); in dso__read_binary_type_filename() 1331 void dso__set_build_id(struct dso *dso, struct build_id *bid) in dso__set_build_id() argument 1333 dso->bid = *bid; in dso__set_build_id() 1337 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid) in dso__build_id_equal() argument 1339 if (dso->bid.size > bid->size && dso->bid.size == BUILD_ID_SIZE) { in dso__build_id_equal() 1344 return !memcmp(dso->bid.data, bid->data, bid->size) && in dso__build_id_equal() 1345 !memchr_inv(&dso->bid.data[bid->size], 0, in dso__build_id_equal() 1346 dso->bid.size - bid->size); in dso__build_id_equal() 1349 return dso->bid.size == bid->size && in dso__build_id_equal() 1350 memcmp(dso->bid.data, bid->data, dso->bid.size) == 0; in dso__build_id_equal() [all …]
|
D | dso.h | 179 struct build_id bid; member 263 void dso__set_build_id(struct dso *dso, struct build_id *bid); 264 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid);
|
D | symbol-elf.c | 564 int filename__read_build_id(const char *filename, struct build_id *bid) in filename__read_build_id() argument 566 size_t size = sizeof(bid->data); in filename__read_build_id() 582 memcpy(bid->data, abfd->build_id->data, abfd->build_id->size); in filename__read_build_id() 583 memset(bid->data + abfd->build_id->size, 0, size - abfd->build_id->size); in filename__read_build_id() 584 err = bid->size = abfd->build_id->size; in filename__read_build_id() 593 int filename__read_build_id(const char *filename, struct build_id *bid) in filename__read_build_id() argument 595 size_t size = sizeof(bid->data); in filename__read_build_id() 612 err = elf_read_build_id(elf, bid->data, size); in filename__read_build_id() 614 bid->size = err; in filename__read_build_id() 625 int sysfs__read_build_id(const char *filename, struct build_id *bid) in sysfs__read_build_id() argument [all …]
|
D | build-id.h | 22 void build_id__init(struct build_id *bid, const u8 *data, size_t size);
|
D | dsos.c | 87 if (filename__read_build_id(pos->long_name, &pos->bid) > 0) { in __dsos__read_build_ids() 305 build_id__sprintf(&pos->bid, sbuild_id); in __dsos__fprintf_buildid()
|
D | symbol.c | 1781 struct build_id bid; in dso__load() local 1843 if (filename__read_build_id(name, &bid) > 0) in dso__load() 1844 dso__set_build_id(dso, &bid); in dso__load() 2150 struct build_id bid; in dso__find_kallsyms() local 2163 if (sysfs__read_build_id("/sys/kernel/notes", &bid) == 0) in dso__find_kallsyms() 2164 is_host = dso__build_id_equal(dso, &bid); in dso__find_kallsyms() 2180 build_id__sprintf(&dso->bid, sbuild_id); in dso__find_kallsyms()
|
D | symbol.h | 149 int sysfs__read_build_id(const char *filename, struct build_id *bid);
|
D | probe-finder.c | 955 struct build_id bid; in find_probe_point_lazy() local 965 build_id__init(&bid, pf->dbg->build_id, BUILD_ID_SIZE); in find_probe_point_lazy() 966 build_id__sprintf(&bid, sbuild_id); in find_probe_point_lazy()
|
D | probe-event.c | 478 build_id__sprintf(&dso->bid, sbuild_id); in open_from_debuginfod() 1010 struct build_id bid; in __show_line_range() local 1032 build_id__init(&bid, dinfo->build_id, BUILD_ID_SIZE); in __show_line_range() 1033 build_id__sprintf(&bid, sbuild_id); in __show_line_range()
|
D | map.c | 333 build_id__sprintf(&map->dso->bid, sbuild_id); in map__load()
|
D | header.c | 2085 struct build_id bid; in __event_process_build_id() local 2091 build_id__init(&bid, bev->data, size); in __event_process_build_id() 2092 dso__set_build_id(dso, &bid); in __event_process_build_id() 2104 build_id__sprintf(&dso->bid, sbuild_id); in __event_process_build_id()
|
D | synthetic-events.c | 1968 memcpy(&ev.build_id.build_id, pos->bid.data, sizeof(pos->bid.data)); in perf_event__synthesize_build_id()
|
D | annotate.c | 1589 build_id__sprintf(&dso->bid, bf + 15); in symbol__strerror_disassemble()
|
/tools/perf/ |
D | builtin-buildid-cache.c | 177 struct build_id bid; in build_id_cache__add_file() local 182 err = filename__read_build_id(filename, &bid); in build_id_cache__add_file() 189 build_id__sprintf(&bid, sbuild_id); in build_id_cache__add_file() 200 struct build_id bid; in build_id_cache__remove_file() local 206 err = filename__read_build_id(filename, &bid); in build_id_cache__remove_file() 213 build_id__sprintf(&bid, sbuild_id); in build_id_cache__remove_file() 277 struct build_id bid; in dso__missing_buildid_cache() local 280 filename__read_build_id(filename, &bid) == -1) { in dso__missing_buildid_cache() 286 } else if (memcmp(dso->bid.data, bid.data, bid.size)) { in dso__missing_buildid_cache() 303 struct build_id bid; in build_id_cache__update_file() local [all …]
|
D | builtin-inject.c | 526 if (filename__read_build_id(dso->long_name, &dso->bid) > 0) in dso__read_build_id()
|
/tools/perf/bench/ |
D | inject-buildid.c | 82 struct build_id bid; in add_dso() local 87 if (filename__read_build_id(fpath, &bid) < 0) in add_dso()
|
/tools/perf/util/scripting-engines/ |
D | trace-event-python.c | 1083 build_id__sprintf(&dso->bid, sbuild_id); in python_export_dso()
|