Lines Matching defs:dso
12 #include "dso.h"
105 /* move it from util/dso.c for compatibility */
106 static int dso__data_fd(struct dso *dso, struct machine *machine)
108 int fd = dso__data_get_fd(dso, machine);
111 dso__data_put_fd(dso);
119 struct dso *dso;
127 dso = dso__new((const char *)file);
129 TEST_ASSERT_VAL("Failed to access to dso",
130 dso__data_fd(dso, &machine) >= 0);
139 size = dso__data_read_offset(dso, &machine, data->offset,
158 size = dso__data_read_offset(dso, &machine, 10,
172 dso__put(dso);
202 static struct dso **dsos;
215 TEST_ASSERT_VAL("failed to get dso file", file);
218 TEST_ASSERT_VAL("failed to get dso", dsos[i]);
229 struct dso *dso = dsos[i];
231 unlink(dso->name);
232 dso__put(dso);
257 /* Rest the internal dso open counter limit. */
266 /* and this is now our dso open FDs limit */
272 struct dso *dso = dsos[i];
278 fd = dso__data_fd(dso, &machine);
286 n = dso__data_read_offset(dso, &machine, 0, buf, BUFSIZE);
287 TEST_ASSERT_VAL("failed to read dso", n == BUFSIZE);
294 /* open +1 dso to reach the allowed limit */
331 /* Rest the internal dso open counter limit. */
338 * - create 3 dso objects
341 * - test that the first dso gets closed when we