Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-12 Thread Matt Fleming
On Mon, 07 Sep, at 02:29:54PM, Jiri Olsa wrote: > On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: > > SNIP > > > > > +static struct test *tests[] = { > > + generic_tests, > > + arch_tests, > > +}; > > + > > static bool perf_test__matches(struct test *test, int curr, int

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-12 Thread Matt Fleming
On Mon, 07 Sep, at 02:28:14PM, Jiri Olsa wrote: > On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: > > SNIP > > > }; > > > > +static struct test *tests[] = { > > + generic_tests, > > + arch_tests, > > +}; > > + > > static bool perf_test__matches(struct test *test, int curr,

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-12 Thread Matt Fleming
On Mon, 07 Sep, at 02:23:53PM, Jiri Olsa wrote: > On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: > > SNIP > > > diff --git a/tools/perf/tests/builtin-test.c > > b/tools/perf/tests/builtin-test.c > > index 8cf0601d1662..a1b2265eaf55 100644 > > --- a/tools/perf/tests/builtin-test.c

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-12 Thread Matt Fleming
On Mon, 07 Sep, at 02:23:53PM, Jiri Olsa wrote: > On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: > > SNIP > > > diff --git a/tools/perf/tests/builtin-test.c > > b/tools/perf/tests/builtin-test.c > > index 8cf0601d1662..a1b2265eaf55 100644 > > --- a/tools/perf/tests/builtin-test.c

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-12 Thread Matt Fleming
On Mon, 07 Sep, at 02:29:54PM, Jiri Olsa wrote: > On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: > > SNIP > > > > > +static struct test *tests[] = { > > + generic_tests, > > + arch_tests, > > +}; > > + > > static bool perf_test__matches(struct test *test, int curr, int

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-12 Thread Matt Fleming
On Mon, 07 Sep, at 02:28:14PM, Jiri Olsa wrote: > On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: > > SNIP > > > }; > > > > +static struct test *tests[] = { > > + generic_tests, > > + arch_tests, > > +}; > > + > > static bool perf_test__matches(struct test *test, int curr,

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-07 Thread Jiri Olsa
On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: SNIP > > +static struct test *tests[] = { > + generic_tests, > + arch_tests, > +}; > + > static bool perf_test__matches(struct test *test, int curr, int argc, const > char *argv[]) > { > int i; > @@ -237,7 +229,11

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-07 Thread Jiri Olsa
On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: SNIP > }; > > +static struct test *tests[] = { > + generic_tests, > + arch_tests, > +}; > + > static bool perf_test__matches(struct test *test, int curr, int argc, const > char *argv[]) > { > int i; > @@ -237,7

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-07 Thread Jiri Olsa
On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: SNIP > diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c > index 8cf0601d1662..a1b2265eaf55 100644 > --- a/tools/perf/tests/builtin-test.c > +++ b/tools/perf/tests/builtin-test.c > @@ -14,10 +14,17 @@ >

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-07 Thread Jiri Olsa
On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: SNIP > > +static struct test *tests[] = { > + generic_tests, > + arch_tests, > +}; > + > static bool perf_test__matches(struct test *test, int curr, int argc, const > char *argv[]) > { > int i; > @@ -237,7 +229,11

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-07 Thread Jiri Olsa
On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: SNIP > diff --git a/tools/perf/tests/builtin-test.c b/tools/perf/tests/builtin-test.c > index 8cf0601d1662..a1b2265eaf55 100644 > --- a/tools/perf/tests/builtin-test.c > +++ b/tools/perf/tests/builtin-test.c > @@ -14,10 +14,17 @@ >

Re: [PATCH 2/3] perf tests: Add arch tests

2015-09-07 Thread Jiri Olsa
On Sat, Sep 05, 2015 at 08:02:21PM +0100, Matt Fleming wrote: SNIP > }; > > +static struct test *tests[] = { > + generic_tests, > + arch_tests, > +}; > + > static bool perf_test__matches(struct test *test, int curr, int argc, const > char *argv[]) > { > int i; > @@ -237,7

[PATCH 2/3] perf tests: Add arch tests

2015-09-05 Thread Matt Fleming
From: Matt Fleming Tests that only make sense for some architectures currently live in the same place as the generic tests. Move out the x86-specific tests into tools/perf/arch/x86/tests and define an 'arch_tests' array, which is the list of tests that only apply to the build architecture. The

[PATCH 2/3] perf tests: Add arch tests

2015-09-05 Thread Matt Fleming
From: Matt Fleming Tests that only make sense for some architectures currently live in the same place as the generic tests. Move out the x86-specific tests into tools/perf/arch/x86/tests and define an 'arch_tests' array, which is the list of tests that only apply to the