From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754679AbbILLEZ (ORCPT ); Sat, 12 Sep 2015 07:04:25 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:34038 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbbILLEX (ORCPT ); Sat, 12 Sep 2015 07:04:23 -0400 Date: Sat, 12 Sep 2015 12:04:21 +0100 From: Matt Fleming To: Jiri Olsa Cc: Arnaldo Carvalho de Melo , Ingo Molnar , linux-kernel@vger.kernel.org, Andi Kleen , Vince Weaver , Peter Zijlstra , Kanaka Juvva , Vikas Shivappa , Matt Fleming Subject: Re: [PATCH 2/3] perf tests: Add arch tests Message-ID: <20150912110421.GH2796@codeblueprint.co.uk> References: <1441479742-15402-1-git-send-email-matt@codeblueprint.co.uk> <1441479742-15402-3-git-send-email-matt@codeblueprint.co.uk> <20150907122954.GH5806@krava.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150907122954.GH5806@krava.brq.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 argc, const char *argv[]) > > { > > int i; > > @@ -237,7 +229,11 @@ static int run_test(struct test *test) > > return err; > > } > > > > -#define for_each_test(t) for (t = &tests[0]; t->func; t++) > > +static unsigned int ___j; /* This is obviously not thread-safe */ > > + > > +#define for_each_test(t) \ > > + for (___j = 0; ___j < ARRAY_SIZE(tests); ___j++) \ > > + for (t = &tests[___j][0]; t->func; t++) > > > > could you also split the change on adding support for arch_tests > and another actually moving affected tests? Sure that makes sense. -- Matt Fleming, Intel Open Source Technology Center