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