[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <538DD426.6050504@gmail.com>
Date: Tue, 03 Jun 2014 07:56:54 -0600
From: David Ahern <dsahern@...il.com>
To: Jiri Olsa <jolsa@...nel.org>, linux-kernel@...r.kernel.org
CC: Arnaldo Carvalho de Melo <acme@...nel.org>,
Corey Ashford <cjashfor@...ux.vnet.ibm.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...nel.org>,
Jean Pihet <jean.pihet@...aro.org>,
Namhyung Kim <namhyung@...nel.org>,
Paul Mackerras <paulus@...ba.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists