Home
last modified time | relevance | path

Searched refs:bid (Results 1 – 21 of 21) sorted by relevance

/tools/perf/tests/
Dpe-file-parsing.c27 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()
Dsdt.c31 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/
Dsymbol-minimal.c34 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 …]
Dbuild-id.c101 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 …]
Ddso.c175 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 …]
Ddso.h179 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);
Dsymbol-elf.c564 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 …]
Dbuild-id.h22 void build_id__init(struct build_id *bid, const u8 *data, size_t size);
Ddsos.c87 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()
Dsymbol.c1781 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()
Dsymbol.h149 int sysfs__read_build_id(const char *filename, struct build_id *bid);
Dprobe-finder.c955 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()
Dprobe-event.c478 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()
Dmap.c333 build_id__sprintf(&map->dso->bid, sbuild_id); in map__load()
Dheader.c2085 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()
Dsynthetic-events.c1968 memcpy(&ev.build_id.build_id, pos->bid.data, sizeof(pos->bid.data)); in perf_event__synthesize_build_id()
Dannotate.c1589 build_id__sprintf(&dso->bid, bf + 15); in symbol__strerror_disassemble()
/tools/perf/
Dbuiltin-buildid-cache.c177 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 …]
Dbuiltin-inject.c526 if (filename__read_build_id(dso->long_name, &dso->bid) > 0) in dso__read_build_id()
/tools/perf/bench/
Dinject-buildid.c82 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/
Dtrace-event-python.c1083 build_id__sprintf(&dso->bid, sbuild_id); in python_export_dso()