/tools/perf/ |
D | builtin-buildid-cache.c | 166 u8 build_id[BUILD_ID_SIZE]; in build_id_cache__add_file() local 169 if (filename__read_build_id(filename, &build_id, sizeof(build_id)) < 0) { in build_id_cache__add_file() 174 build_id__sprintf(build_id, sizeof(build_id), sbuild_id); in build_id_cache__add_file() 184 u8 build_id[BUILD_ID_SIZE]; in build_id_cache__remove_file() local 189 if (filename__read_build_id(filename, &build_id, sizeof(build_id)) < 0) { in build_id_cache__remove_file() 194 build_id__sprintf(build_id, sizeof(build_id), sbuild_id); in build_id_cache__remove_file() 230 u8 build_id[BUILD_ID_SIZE]; in dso__missing_buildid_cache() local 233 filename__read_build_id(filename, build_id, in dso__missing_buildid_cache() 234 sizeof(build_id)) != sizeof(build_id)) { in dso__missing_buildid_cache() 240 } else if (memcmp(dso->build_id, build_id, sizeof(dso->build_id))) { in dso__missing_buildid_cache() [all …]
|
D | perf-archive.sh | 35 while read build_id ; do 36 linkname=$PERF_BUILDID_DIR.build-id/${build_id:0:2}/${build_id:2}
|
D | builtin-inject.c | 378 if (filename__read_build_id(dso->long_name, dso->build_id, in dso__read_build_id() 379 sizeof(dso->build_id)) > 0) { in dso__read_build_id() 753 .build_id = perf_event__repipe_op2_synth, in cmd_inject()
|
D | builtin-mem.c | 344 .build_id = perf_event__process_build_id, in cmd_mem()
|
D | builtin-report.c | 692 .build_id = perf_event__process_build_id, in cmd_report()
|
D | builtin-script.c | 2077 .build_id = perf_event__process_build_id, in cmd_script()
|
/tools/perf/tests/ |
D | sdt.c | 26 u8 build_id[BUILD_ID_SIZE]; in build_id_cache__add_file() local 29 err = filename__read_build_id(filename, &build_id, sizeof(build_id)); in build_id_cache__add_file() 35 build_id__sprintf(build_id, sizeof(build_id), sbuild_id); in build_id_cache__add_file()
|
/tools/perf/util/ |
D | build-id.c | 78 .build_id = perf_event__process_build_id, 82 int build_id__sprintf(const u8 *build_id, int len, char *bf) in build_id__sprintf() argument 85 const u8 *raw = build_id; in build_id__sprintf() 100 u8 build_id[BUILD_ID_SIZE]; in sysfs__sprintf_build_id() local 108 ret = sysfs__read_build_id(notes, build_id, sizeof(build_id)); in sysfs__sprintf_build_id() 112 return build_id__sprintf(build_id, sizeof(build_id), sbuild_id); in sysfs__sprintf_build_id() 117 u8 build_id[BUILD_ID_SIZE]; in filename__sprintf_build_id() local 120 ret = filename__read_build_id(pathname, build_id, sizeof(build_id)); in filename__sprintf_build_id() 123 else if (ret != sizeof(build_id)) in filename__sprintf_build_id() 126 return build_id__sprintf(build_id, sizeof(build_id), sbuild_id); in filename__sprintf_build_id() [all …]
|
D | genelf.c | 77 char build_id[20]; member 106 size_t sz = sizeof(note->build_id); in gen_build_id() 113 sret = read(fd, note->build_id, sz); in gen_build_id() 118 memset(note->build_id, 0, sz); in gen_build_id() 129 if (sizeof(note->build_id) < SHA_DIGEST_LENGTH) in gen_build_id() 132 SHA1(code, csize, (unsigned char *)note->build_id); in gen_build_id() 142 if (sizeof(note->build_id) < 16) in gen_build_id() 148 MD5_Final((unsigned char *)note->build_id, &context); in gen_build_id() 367 bnote.desc.descsz = sizeof(bnote.build_id); in jit_write_elf()
|
D | dso.c | 107 build_id__sprintf(dso->build_id, in dso__read_binary_type_filename() 108 sizeof(dso->build_id), in dso__read_binary_type_filename() 1134 void dso__set_build_id(struct dso *dso, void *build_id) in dso__set_build_id() argument 1136 memcpy(dso->build_id, build_id, sizeof(dso->build_id)); in dso__set_build_id() 1140 bool dso__build_id_equal(const struct dso *dso, u8 *build_id) in dso__build_id_equal() argument 1142 return memcmp(dso->build_id, build_id, sizeof(dso->build_id)) == 0; in dso__build_id_equal() 1152 if (sysfs__read_build_id(path, dso->build_id, in dso__read_running_kernel_build_id() 1153 sizeof(dso->build_id)) == 0) in dso__read_running_kernel_build_id() 1171 if (sysfs__read_build_id(filename, dso->build_id, in dso__kernel_module_get_build_id() 1172 sizeof(dso->build_id)) == 0) in dso__kernel_module_get_build_id() [all …]
|
D | symbol-minimal.c | 218 int sysfs__read_build_id(const char *filename, void *build_id, size_t size) in sysfs__read_build_id() argument 241 ret = read_build_id(buf, buf_size, build_id, size, false); in sysfs__read_build_id() 338 unsigned char build_id[BUILD_ID_SIZE]; in dso__load_sym() local 345 if (filename__read_build_id(ss->name, build_id, BUILD_ID_SIZE) > 0) { in dso__load_sym() 346 dso__set_build_id(dso, build_id); in dso__load_sym()
|
D | build-id.h | 14 int build_id__sprintf(const u8 *build_id, int len, char *bf);
|
D | tool.h | 56 event_op2 build_id, member
|
D | dso.h | 165 u8 build_id[BUILD_ID_SIZE]; member 234 void dso__set_build_id(struct dso *dso, void *build_id); 235 bool dso__build_id_equal(const struct dso *dso, u8 *build_id);
|
D | header.c | 1455 dso__set_build_id(dso, &bev->build_id); in __event_process_build_id() 1468 build_id__sprintf(dso->build_id, sizeof(dso->build_id), in __event_process_build_id() 1486 u8 build_id[PERF_ALIGN(BUILD_ID_SIZE, sizeof(u64))]; in perf_header__read_build_ids_abi_quirk() member 1517 memcpy(bev.build_id, old_bev.build_id, sizeof(bev.build_id)); in perf_header__read_build_ids_abi_quirk() 2203 FEAT_OPP(HEADER_BUILD_ID, build_id), 3313 memcpy(&ev.build_id.build_id, pos->build_id, sizeof(pos->build_id)); in perf_event__synthesize_build_id() 3314 ev.build_id.header.type = PERF_RECORD_HEADER_BUILD_ID; in perf_event__synthesize_build_id() 3315 ev.build_id.header.misc = misc; in perf_event__synthesize_build_id() 3316 ev.build_id.pid = machine->pid; in perf_event__synthesize_build_id() 3317 ev.build_id.header.size = sizeof(ev.build_id) + len; in perf_event__synthesize_build_id() [all …]
|
D | event.h | 215 u8 build_id[PERF_ALIGN(BUILD_ID_SIZE, sizeof(u64))]; member 495 struct build_id_event build_id; member
|
D | symbol-elf.c | 504 int sysfs__read_build_id(const char *filename, void *build_id, size_t size) in sysfs__read_build_id() argument 531 if (read(fd, build_id, sz) == (ssize_t)sz) { in sysfs__read_build_id() 532 memset(build_id + sz, 0, size - sz); in sysfs__read_build_id() 733 u8 build_id[BUILD_ID_SIZE]; in symsrc__init() local 735 if (elf_read_build_id(elf, build_id, BUILD_ID_SIZE) < 0) { in symsrc__init() 740 if (!dso__build_id_equal(dso, build_id)) { in symsrc__init()
|
D | symbol.c | 1401 unsigned char build_id[BUILD_ID_SIZE]; in dso__load() local 1464 filename__read_build_id(dso->long_name, build_id, BUILD_ID_SIZE) > 0) in dso__load() 1465 dso__set_build_id(dso, build_id); in dso__load() 1719 build_id__sprintf(dso->build_id, sizeof(dso->build_id), sbuild_id); in dso__find_kallsyms()
|
D | map.c | 297 build_id__sprintf(map->dso->build_id, in map__load() 298 sizeof(map->dso->build_id), in map__load()
|
D | session.c | 398 if (tool->build_id == NULL) in perf_tool__fill_defaults() 399 tool->build_id = process_event_op2_stub; in perf_tool__fill_defaults() 1337 return tool->build_id(tool, event, session); in perf_session__process_user_event()
|
D | annotate.c | 1228 build_id__sprintf(dso->build_id, in symbol__strerror_disassemble() 1229 sizeof(dso->build_id), bf + 15); in symbol__strerror_disassemble()
|
D | data-convert-bt.c | 1470 .build_id = perf_event__process_build_id, in bt_convert__perf2ctf()
|
/tools/perf/scripts/python/ |
D | export-to-postgresql.py | 689 def dso_table(dso_id, machine_id, short_name, long_name, build_id, *x): argument 692 n3 = len(build_id) 694 value = struct.pack(fmt, 5, 8, dso_id, 8, machine_id, n1, short_name, n2, long_name, n3, build_id)
|
/tools/perf/util/scripting-engines/ |
D | trace-event-python.c | 636 build_id__sprintf(dso->build_id, sizeof(dso->build_id), sbuild_id); in python_export_dso()
|
/tools/perf/Documentation/ |
D | perf.data-file-format.txt | 85 uint8_t build_id[24];
|