Home
last modified time | relevance | path

Searched refs:build_id (Results 1 – 25 of 26) sorted by relevance

12

/tools/perf/
Dbuiltin-buildid-cache.c166 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 …]
Dperf-archive.sh35 while read build_id ; do
36 linkname=$PERF_BUILDID_DIR.build-id/${build_id:0:2}/${build_id:2}
Dbuiltin-inject.c378 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()
Dbuiltin-mem.c344 .build_id = perf_event__process_build_id, in cmd_mem()
Dbuiltin-report.c692 .build_id = perf_event__process_build_id, in cmd_report()
Dbuiltin-script.c2077 .build_id = perf_event__process_build_id, in cmd_script()
/tools/perf/tests/
Dsdt.c26 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/
Dbuild-id.c78 .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 …]
Dgenelf.c77 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()
Ddso.c107 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 …]
Dsymbol-minimal.c218 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()
Dbuild-id.h14 int build_id__sprintf(const u8 *build_id, int len, char *bf);
Dtool.h56 event_op2 build_id, member
Ddso.h165 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);
Dheader.c1455 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 …]
Devent.h215 u8 build_id[PERF_ALIGN(BUILD_ID_SIZE, sizeof(u64))]; member
495 struct build_id_event build_id; member
Dsymbol-elf.c504 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()
Dsymbol.c1401 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()
Dmap.c297 build_id__sprintf(map->dso->build_id, in map__load()
298 sizeof(map->dso->build_id), in map__load()
Dsession.c398 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()
Dannotate.c1228 build_id__sprintf(dso->build_id, in symbol__strerror_disassemble()
1229 sizeof(dso->build_id), bf + 15); in symbol__strerror_disassemble()
Ddata-convert-bt.c1470 .build_id = perf_event__process_build_id, in bt_convert__perf2ctf()
/tools/perf/scripts/python/
Dexport-to-postgresql.py689 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/
Dtrace-event-python.c636 build_id__sprintf(dso->build_id, sizeof(dso->build_id), sbuild_id); in python_export_dso()
/tools/perf/Documentation/
Dperf.data-file-format.txt85 uint8_t build_id[24];

12