[PATCH 12/13] perf tests: Add test for caching dso file descriptors

2014-06-04 Thread Jiri Olsa
Adding test that setup test_dso_data__fd_limit and test dso data file descriptors are cached appropriately. Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jean Pihet Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra

[PATCH 12/13] perf tests: Add test for caching dso file descriptors

2014-06-04 Thread Jiri Olsa
Adding test that setup test_dso_data__fd_limit and test dso data file descriptors are cached appropriately. Cc: Arnaldo Carvalho de Melo a...@kernel.org Cc: Corey Ashford cjash...@linux.vnet.ibm.com Cc: David Ahern dsah...@gmail.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar

Re: [PATCH 12/13] perf tests: Add test for caching dso file descriptors

2014-06-03 Thread David Ahern
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 =

Re: [PATCH 12/13] perf tests: Add test for caching dso file descriptors

2014-06-03 Thread David Ahern
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 =

[PATCH 12/13] perf tests: Add test for caching dso file descriptors

2014-06-02 Thread Jiri Olsa
Adding test that setup test_dso_data__fd_limit and test dso data file descriptors are cached appropriately. Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: David Ahern Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jean Pihet Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra

[PATCH 12/13] perf tests: Add test for caching dso file descriptors

2014-06-02 Thread Jiri Olsa
Adding test that setup test_dso_data__fd_limit and test dso data file descriptors are cached appropriately. Cc: Arnaldo Carvalho de Melo a...@kernel.org Cc: Corey Ashford cjash...@linux.vnet.ibm.com Cc: David Ahern dsah...@gmail.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar