/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | build_id.c | 7 static char build_id[BPF_BUILD_ID_SIZE]; variable 23 printf("%02hhx", (unsigned)stack[i].build_id[j]); in print_stack() 66 ASSERT_EQ(memcmp(stack[0].build_id, build_id, build_id_sz), 0, "build_id_match"); in subtest_nofault() 101 ASSERT_EQ(memcmp(stack[0].build_id, build_id, build_id_sz), 0, "build_id_match"); in subtest_sleepable() 109 build_id_sz = read_build_id("uprobe_multi", build_id, sizeof(build_id)); in serial_test_build_id()
|
/linux/lib/ |
H A D | buildid.c | 163 static int parse_build_id(struct freader *r, unsigned char *build_id, __u32 *size, in parse_build_id() argument 200 memcpy(build_id, data, desc_sz); in parse_build_id() 201 memset(build_id + desc_sz, 0, BUILD_ID_SIZE_MAX - desc_sz); in parse_build_id() 214 static int get_build_id_32(struct freader *r, unsigned char *build_id, __u32 *size) in get_build_id_32() argument 242 !parse_build_id(r, build_id, size, READ_ONCE(phdr->p_offset), in get_build_id_32() 250 static int get_build_id_64(struct freader *r, unsigned char *build_id, __u32 *size) in get_build_id_64() argument 279 !parse_build_id(r, build_id, size, READ_ONCE(phdr->p_offset), in get_build_id_64() 290 static int __build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, in __build_id_parse() argument 322 ret = get_build_id_32(&r, build_id, size); in __build_id_parse() 324 ret = get_build_id_64(&r, build_id, size); in __build_id_parse() [all …]
|
/linux/tools/perf/util/ |
H A D | build-id.h | 14 struct build_id { struct 23 void build_id__init(struct build_id *bid, const u8 *data, size_t size); argument 24 int build_id__sprintf(const struct build_id *build_id, char *bf); 25 bool build_id__is_defined(const struct build_id *bid);
|
H A D | genelf.c | 74 char build_id[20]; member 103 size_t sz = sizeof(note->build_id); in gen_build_id() 110 sret = read(fd, note->build_id, sz); in gen_build_id() 115 memset(note->build_id, 0, sz); in gen_build_id() 126 if (sizeof(note->build_id) < SHA_DIGEST_LENGTH) in gen_build_id() 127 errx(1, "build_id too small for SHA1"); in gen_build_id() 129 SHA1(code, csize, (unsigned char *)note->build_id); in gen_build_id() 139 if (sizeof(note->build_id) < 16) in gen_build_id() 140 errx(1, "build_id too small for MD5"); in gen_build_id() 149 EVP_DigestFinal_ex(mdctx, (unsigned char *)note->build_id, NUL in gen_build_id() [all...] |
H A D | build-id.c | 70 int build_id__sprintf(const struct build_id *build_id, char *bf) in build_id__sprintf() argument 73 const u8 *raw = build_id->data; in build_id__sprintf() 78 for (i = 0; i < build_id->size; ++i) { in build_id__sprintf() 90 struct build_id bid; in sysfs__sprintf_build_id() 107 struct build_id bid; in filename__sprintf_build_id() 202 /* Check if the given build_id cache is valid on current running system */ 251 /* Check if old style build_id cache */ in __dso__build_id_filename() 273 static int write_buildid(const char *name, size_t name_len, struct build_id *bid, in write_buildid() 764 static int build_id_cache__add_b(const struct build_id *bi [all...] |
H 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() 227 int sysfs__read_build_id(const char *filename, struct build_id *bid) in sysfs__read_build_id() 346 struct build_id bid; in dso__load_sym()
|
H A D | symbol.h | 27 struct build_id; 143 int filename__read_build_id(const char *filename, struct build_id *id); 144 int sysfs__read_build_id(const char *filename, struct build_id *bid);
|
H A D | synthetic-events.h | 12 struct build_id; 55 const struct build_id *bid, 65 const struct build_id *bid,
|
H A D | synthetic-events.c | 370 struct build_id bid; in perf_record_mmap2__read_build_id() 404 memcpy(event->build_id, bid.data, sizeof(bid.data)); in perf_record_mmap2__read_build_id() 2234 const struct build_id *bid, in perf_event__synthesize_build_id() 2240 len = sizeof(ev.build_id) + strlen(filename) + 1; in perf_event__synthesize_build_id() 2245 ev.build_id.size = min(bid->size, sizeof(ev.build_id.build_id)); in perf_event__synthesize_build_id() 2246 memcpy(ev.build_id.build_id, bid->data, ev.build_id.size); in perf_event__synthesize_build_id() 2247 ev.build_id.header.type = PERF_RECORD_HEADER_BUILD_ID; in perf_event__synthesize_build_id() 2248 ev.build_id.header.misc = misc | PERF_RECORD_MISC_BUILD_ID_SIZE; in perf_event__synthesize_build_id() 2249 ev.build_id.pid = machine->pid; in perf_event__synthesize_build_id() 2250 ev.build_id.header.size = len; in perf_event__synthesize_build_id() [all …]
|
H A D | debuginfo.c | 63 dwfl_module_build_id(dbg->mod, &dbg->build_id, &dummy); in debuginfo__init_offline_dwarf() 106 struct build_id bid; in debuginfo__new()
|
H A D | dso.h | 186 struct build_id bid; in DECLARE_RC_STRUCT() 303 static inline struct build_id *dso__bid(struct dso *dso) in dso__bid() 308 static inline const struct build_id *dso__bid_const(const struct dso *dso) in dso__bid_const() 678 void dso__set_build_id(struct dso *dso, struct build_id *bid); 679 bool dso__build_id_equal(const struct dso *dso, struct build_id *bid);
|
H A D | debuginfo.h | 18 const unsigned char *build_id; member
|
H A D | symbol-elf.c | 938 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() 953 if (!abfd->build_id || abfd->build_id->size > size) in read_build_id() 956 memcpy(bid->data, abfd->build_id->data, abfd->build_id->size); in read_build_id() 957 memset(bid->data + abfd->build_id->size, 0, size - abfd->build_id->size); in read_build_id() 958 err = bid->size = abfd->build_id->size; in read_build_id() 967 static int read_build_id(const char *filename, struct build_id *bid) in read_build_id() 999 int filename__read_build_id(const char *filename, struct build_id *bi 1270 u8 build_id[BUILD_ID_SIZE]; symsrc__init() local [all...] |
/linux/include/linux/ |
H A D | buildid.h | 10 int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, __u32 *size); 11 int build_id_parse_nofault(struct vm_area_struct *vma, unsigned char *build_id, __u32 *size); 12 int build_id_parse_buf(const void *buf, unsigned char *build_id, u32 buf_size);
|
/linux/tools/build/feature/ |
H A D | test-libbfd-buildid.c | 7 return abfd && (!abfd->build_id || abfd->build_id->size > 0x506564726f); in main()
|
/linux/tools/perf/ |
H A D | perf-archive.sh | 100 while read build_id ; do 101 linkname=$PERF_BUILDID_DIR.build-id/${build_id:0:2}/${build_id:2}
|
H 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() 306 struct build_id bid; in build_id_cache__update_file()
|
H A D | builtin-inject.c | 706 const char *build_id, *dso_name; in perf_inject__parse_known_build_ids() local 708 build_id = skip_spaces(pos->s); in perf_inject__parse_known_build_ids() 709 dso_name = strchr(build_id, ' '); in perf_inject__parse_known_build_ids() 721 if (!isxdigit(build_id[2 * ix]) || in perf_inject__parse_known_build_ids() 722 !isxdigit(build_id[2 * ix + 1])) { in perf_inject__parse_known_build_ids() 738 const char *build_id, *dso_name; in perf_inject__lookup_known_build_id() local 740 build_id = skip_spaces(pos->s); in perf_inject__lookup_known_build_id() 741 dso_name = strchr(build_id, ' '); in perf_inject__lookup_known_build_id() 747 dso__bid(dso)->data[ix] = (hex(build_id[2 * ix]) << 4 | in perf_inject__lookup_known_build_id() 748 hex(build_id[2 * ix + 1])); in perf_inject__lookup_known_build_id() [all …]
|
/linux/drivers/hwmon/ |
H A D | sch5627.c | 524 int build_code, build_id, hwmon_rev, val; in sch5627_probe() local 570 build_id = sch56xx_read_virtual_reg16(data->addr, in sch5627_probe() 572 if (build_id < 0) in sch5627_probe() 573 return build_id; in sch5627_probe() 602 build_code, build_id, hwmon_rev); in sch5627_probe() 611 (build_code << 24) | (build_id << 8) | hwmon_rev, in sch5627_probe()
|
/linux/kernel/bpf/ |
H A D | stackmap.c | 127 static int fetch_build_id(struct vm_area_struct *vma, unsigned char *build_id, bool may_fault) in fetch_build_id() argument 129 return may_fault ? build_id_parse(vma, build_id, NULL) in fetch_build_id() 130 : build_id_parse_nofault(vma, build_id, NULL); in fetch_build_id() 161 memset(id_offs[i].build_id, 0, BUILD_ID_SIZE_MAX); in stack_map_get_build_id_offset() 171 memcpy(id_offs[i].build_id, prev_build_id, BUILD_ID_SIZE_MAX); in stack_map_get_build_id_offset() 175 if (!vma || fetch_build_id(vma, id_offs[i].build_id, may_fault)) { in stack_map_get_build_id_offset() 178 memset(id_offs[i].build_id, 0, BUILD_ID_SIZE_MAX); in stack_map_get_build_id_offset() 185 prev_build_id = id_offs[i].build_id; in stack_map_get_build_id_offset()
|
/linux/tools/testing/selftests/bpf/ |
H A D | trace_helpers.c | 405 parse_build_id_buf(const void *note_start, Elf32_Word note_size, char *build_id) in parse_build_id_buf() argument 415 memcpy(build_id, note_start + note_offs + in parse_build_id_buf() 417 memset(build_id + nhdr->n_descsz, 0, BPF_BUILD_ID_SIZE - nhdr->n_descsz); in parse_build_id_buf() 433 int read_build_id(const char *path, char *build_id, size_t size) in read_build_id() argument 471 err = parse_build_id_buf(data + phdr->p_offset, phdr->p_memsz, build_id); in read_build_id()
|
H A D | trace_helpers.h | 42 int read_build_id(const char *path, char *build_id, size_t size);
|
/linux/drivers/net/ethernet/sfc/ |
H A D | efx_devlink.c | 246 unsigned int build_id; in efx_devlink_info_running_v2() local 319 build_id = MCDI_DWORD(outbuf, GET_VERSION_V2_OUT_MCFW_BUILD_ID); in efx_devlink_info_running_v2() 321 " (%x) %s", build_id, in efx_devlink_info_running_v2() 338 build_id = MCDI_DWORD(outbuf, GET_VERSION_V2_OUT_SUCFW_CHIP_ID); in efx_devlink_info_running_v2() 344 build_id, &build_date); in efx_devlink_info_running_v2()
|
/linux/tools/lib/perf/include/perf/ |
H A D | event.h | 39 __u8 build_id[20]; member 302 __u8 build_id[24]; member 504 struct perf_record_header_build_id build_id; member
|
/linux/tools/perf/scripts/python/ |
H A D | export-to-postgresql.py | 1006 def dso_table(dso_id, machine_id, short_name, long_name, build_id, *x): argument 1009 build_id = toserverstr(build_id) 1012 n3 = len(build_id) 1014 value = struct.pack(fmt, 5, 8, dso_id, 8, machine_id, n1, short_name, n2, long_name, n3, build_id)
|