Lines Matching refs:dso
81 struct bench_dso *dso = &dsos[nr_dsos]; in add_dso() local
90 dso->name = realpath(fpath, NULL); in add_dso()
91 if (dso->name == NULL) in add_dso()
94 dso->ino = nr_dsos++; in add_dso()
123 struct bench_dso *dso = &dsos[i]; in release_dso() local
125 free(dso->name); in release_dso()
131 static u64 dso_map_addr(struct bench_dso *dso) in dso_map_addr() argument
133 return 0x400000ULL + dso->ino * 8192ULL; in dso_map_addr()
172 static ssize_t synthesize_mmap(struct bench_data *data, struct bench_dso *dso, u64 timestamp) in synthesize_mmap() argument
179 len += roundup(strlen(dso->name) + 1, 8) + bench_id_hdr_size; in synthesize_mmap()
190 event.mmap2.ino = dso->ino; in synthesize_mmap()
192 strcpy(event.mmap2.filename, dso->name); in synthesize_mmap()
194 event.mmap2.start = dso_map_addr(dso); in synthesize_mmap()
218 static ssize_t synthesize_sample(struct bench_data *data, struct bench_dso *dso, u64 timestamp) in synthesize_sample() argument
224 .ip = dso_map_addr(dso), in synthesize_sample()
365 struct bench_dso *dso = &dsos[idx]; in inject_build_id() local
368 pr_debug2(" [%d] injecting: %s\n", i+1, dso->name); in inject_build_id()
369 if (synthesize_mmap(data, dso, timestamp) < 0) in inject_build_id()
373 if (synthesize_sample(data, dso, timestamp + k * 1000) < 0) in inject_build_id()