/linux/lib/ |
A D | buildid.c | 16 static int parse_build_id_buf(unsigned char *build_id, in parse_build_id_buf() argument 31 memcpy(build_id, in parse_build_id_buf() 35 memset(build_id + nhdr->n_descsz, 0, in parse_build_id_buf() 52 unsigned char *build_id, in parse_build_id() argument 65 return parse_build_id_buf(build_id, size, note_start, note_size); in parse_build_id() 85 !parse_build_id(page_addr, build_id, size, in get_build_id_32() 110 !parse_build_id(page_addr, build_id, size, in get_build_id_64() 126 int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, in build_id_parse() argument 155 ret = get_build_id_32(page_addr, build_id, size); in build_id_parse() 157 ret = get_build_id_64(page_addr, build_id, size); in build_id_parse() [all …]
|
/linux/tools/perf/util/ |
A D | build-id.h | 14 struct build_id { struct 25 void build_id__init(struct build_id *bid, const u8 *data, size_t size); argument 26 int build_id__sprintf(const struct build_id *build_id, char *bf); 27 bool build_id__is_defined(const struct build_id *bid);
|
A D | genelf.c | 78 char build_id[20]; member 107 size_t sz = sizeof(note->build_id); in gen_build_id() 114 sret = read(fd, note->build_id, sz); in gen_build_id() 119 memset(note->build_id, 0, sz); in gen_build_id() 130 if (sizeof(note->build_id) < SHA_DIGEST_LENGTH) in gen_build_id() 133 SHA1(code, csize, (unsigned char *)note->build_id); in gen_build_id() 143 if (sizeof(note->build_id) < 16) in gen_build_id() 149 MD5_Final((unsigned char *)note->build_id, &context); in gen_build_id() 462 bnote.desc.descsz = sizeof(bnote.build_id); in jit_write_elf()
|
A D | build-id.c | 96 .build_id = perf_event__process_build_id, 100 int build_id__sprintf(const struct build_id *build_id, char *bf) in build_id__sprintf() argument 103 const u8 *raw = build_id->data; in build_id__sprintf() 108 for (i = 0; i < build_id->size; ++i) { in build_id__sprintf() 120 struct build_id bid; in sysfs__sprintf_build_id() 137 struct build_id bid; in filename__sprintf_build_id() 309 static int write_buildid(const char *name, size_t name_len, struct build_id *bid, in write_buildid() 813 static int build_id_cache__add_b(const struct build_id *bid, in build_id_cache__add_b() 944 void build_id__init(struct build_id *bid, const u8 *data, size_t size) in build_id__init() 951 bool build_id__is_defined(const struct build_id *bid) in build_id__is_defined()
|
A 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() 89 int filename__read_build_id(const char *filename, struct build_id *bid) in filename__read_build_id() 225 int sysfs__read_build_id(const char *filename, struct build_id *bid) in sysfs__read_build_id() 344 struct build_id bid; in dso__load_sym()
|
A D | symbol.h | 26 struct build_id; 159 int filename__read_build_id(const char *filename, struct build_id *id); 160 int sysfs__read_build_id(const char *filename, struct build_id *bid);
|
A D | dso.h | 180 struct build_id bid; 264 void dso__set_build_id(struct dso *dso, struct build_id *bid); 265 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid);
|
A D | symbol-elf.c | 542 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() 557 if (!abfd->build_id || abfd->build_id->size > size) in read_build_id() 560 memcpy(bid->data, abfd->build_id->data, abfd->build_id->size); in read_build_id() 561 memset(bid->data + abfd->build_id->size, 0, size - abfd->build_id->size); in read_build_id() 562 err = bid->size = abfd->build_id->size; in read_build_id() 571 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() 636 int sysfs__read_build_id(const char *filename, struct build_id *bid) in sysfs__read_build_id() 874 u8 build_id[BUILD_ID_SIZE]; in symsrc__init() local 875 struct build_id bid; in symsrc__init() 878 size = elf_read_build_id(elf, build_id, BUILD_ID_SIZE); in symsrc__init() [all …]
|
A D | map.h | 107 struct build_id; 111 struct build_id *bid, char *filename, struct thread *thread);
|
A D | record.h | 54 bool build_id; member
|
A D | tool.h | 68 event_op2 build_id, member
|
A D | synthetic-events.c | 369 struct build_id bid; in perf_record_mmap2__read_build_id() 378 memcpy(event->build_id, bid.data, sizeof(bid.data)); in perf_record_mmap2__read_build_id() 2081 memcpy(&ev.build_id.build_id, pos->bid.data, sizeof(pos->bid.data)); in perf_event__synthesize_build_id() 2082 ev.build_id.header.type = PERF_RECORD_HEADER_BUILD_ID; in perf_event__synthesize_build_id() 2083 ev.build_id.header.misc = misc; in perf_event__synthesize_build_id() 2084 ev.build_id.pid = machine->pid; in perf_event__synthesize_build_id() 2085 ev.build_id.header.size = sizeof(ev.build_id) + len; in perf_event__synthesize_build_id() 2086 memcpy(&ev.build_id.filename, pos->long_name, pos->long_name_len); in perf_event__synthesize_build_id()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | stacktrace_build_id.c | 67 char build_id[64]; in test_stacktrace_build_id() local 77 sprintf(build_id + 2 * j, "%02x", in test_stacktrace_build_id() 78 id_offs[i].build_id[j] & 0xff); in test_stacktrace_build_id() 79 if (strstr(buf, build_id) != NULL) in test_stacktrace_build_id()
|
A D | stacktrace_build_id_nmi.c | 109 char build_id[64]; in test_stacktrace_build_id_nmi() local 119 sprintf(build_id + 2 * j, "%02x", in test_stacktrace_build_id_nmi() 120 id_offs[i].build_id[j] & 0xff); in test_stacktrace_build_id_nmi() 121 if (strstr(buf, build_id) != NULL) in test_stacktrace_build_id_nmi()
|
/linux/tools/perf/ |
A D | perf-archive.sh | 35 while read build_id ; do 36 linkname=$PERF_BUILDID_DIR.build-id/${build_id:0:2}/${build_id:2}
|
A D | builtin-buildid-cache.c | 178 struct build_id bid; in build_id_cache__add_file() 201 struct build_id bid; in build_id_cache__remove_file() 278 struct build_id bid; in dso__missing_buildid_cache() 304 struct build_id bid; in build_id_cache__update_file()
|
/linux/tools/build/feature/ |
A D | test-libbfd-buildid.c | 7 return abfd && (!abfd->build_id || abfd->build_id->size > 0x506564726f); in main()
|
/linux/include/linux/ |
A D | buildid.h | 9 int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, 11 int build_id_parse_buf(const void *buf, unsigned char *build_id, u32 buf_size);
|
/linux/drivers/hwmon/ |
A D | sch5627.c | 363 int err, build_code, build_id, hwmon_rev, val; in sch5627_probe() local 409 build_id = sch56xx_read_virtual_reg16(data->addr, in sch5627_probe() 411 if (build_id < 0) in sch5627_probe() 412 return build_id; in sch5627_probe() 444 build_code, build_id, hwmon_rev); in sch5627_probe() 453 (build_code << 24) | (build_id << 8) | hwmon_rev, in sch5627_probe()
|
/linux/tools/lib/perf/include/perf/ |
A D | event.h | 39 __u8 build_id[20]; member 222 __u8 build_id[24]; member 415 struct perf_record_header_build_id build_id; member
|
/linux/drivers/soc/qcom/ |
A D | socinfo.c | 115 char build_id[SMEM_SOCINFO_BUILD_ID_LENGTH]; member 357 seq_printf(seq, "%s\n", socinfo->build_id); in qcom_show_build_id() 424 QCOM_OPEN(build_id, qcom_show_build_id); 572 DEBUGFS_ADD(info, build_id); in socinfo_debugfs_init()
|
/linux/tools/perf/scripts/python/ |
A D | export-to-postgresql.py | 1003 def dso_table(dso_id, machine_id, short_name, long_name, build_id, *x): argument 1006 build_id = toserverstr(build_id) 1009 n3 = len(build_id) 1011 value = struct.pack(fmt, 5, 8, dso_id, 8, machine_id, n1, short_name, n2, long_name, n3, build_id)
|
/linux/tools/perf/tests/ |
A D | pe-file-parsing.c | 27 struct build_id bid; in run_dir()
|
A D | sdt.c | 31 struct build_id bid; in build_id_cache__add_file()
|
/linux/drivers/net/phy/ |
A D | aquantia_main.c | 475 u8 fw_major, fw_minor, build_id, prov_id; in aqr107_chip_info() local 489 build_id = FIELD_GET(VEND1_GLOBAL_RSVD_STAT1_FW_BUILD_ID, val); in aqr107_chip_info() 493 fw_major, fw_minor, build_id, prov_id); in aqr107_chip_info()
|