Lines Matching defs:dso
75 * Helper for collect_dso that adds the given file as a dso to dso_list
82 struct bench_dso *dso = &dsos[nr_dsos];
91 dso->name = realpath(fpath, NULL);
92 if (dso->name == NULL)
95 dso->ino = nr_dsos++;
124 struct bench_dso *dso = &dsos[i];
126 zfree(&dso->name);
132 static u64 dso_map_addr(struct bench_dso *dso)
134 return 0x400000ULL + dso->ino * 8192ULL;
173 static ssize_t synthesize_mmap(struct bench_data *data, struct bench_dso *dso, u64 timestamp)
180 len += roundup(strlen(dso->name) + 1, 8) + bench_id_hdr_size;
191 event.mmap2.ino = dso->ino;
193 strcpy(event.mmap2.filename, dso->name);
195 event.mmap2.start = dso_map_addr(dso);
219 static ssize_t synthesize_sample(struct bench_data *data, struct bench_dso *dso, u64 timestamp)
225 .ip = dso_map_addr(dso),
366 struct bench_dso *dso = &dsos[idx];
369 pr_debug2(" [%d] injecting: %s\n", i+1, dso->name);
370 if (synthesize_mmap(data, dso, timestamp) < 0)
374 if (synthesize_sample(data, dso, timestamp + k * 1000) < 0)