Messages in this thread | | | Date | Tue, 03 Jun 2014 07:56:54 -0600 | From | David Ahern <> | Subject | Re: [PATCH 12/13] perf tests: Add test for caching dso file descriptors |
| |
On 6/2/14, 3:18 PM, Jiri Olsa wrote: > +static int dsos__create(int cnt, int size) > +{ > + int i; > + > + dsos = malloc(sizeof(dsos) * cnt); > + TEST_ASSERT_VAL("failed to alloc dsos array", dsos); > + > + for (i = 0; i < cnt; i++) { > + char *file; > + > + file = test_file(size); > + TEST_ASSERT_VAL("failed to get dso file", file); > + > + dsos[i] = dso__new((const char *)file); > + TEST_ASSERT_VAL("failed to get dso", dsos[i]);
typecast is not needed.
David
| |