From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752270AbbIGMhB (ORCPT ); Mon, 7 Sep 2015 08:37:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35594 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394AbbIGMg6 (ORCPT ); Mon, 7 Sep 2015 08:36:58 -0400 Date: Mon, 7 Sep 2015 14:36:54 +0200 From: Jiri Olsa To: Matt Fleming 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 1/3] perf tests: Introduce iterator function for tests Message-ID: <20150907123654.GI5806@krava.brq.redhat.com> References: <1441479742-15402-1-git-send-email-matt@codeblueprint.co.uk> <1441479742-15402-2-git-send-email-matt@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441479742-15402-2-git-send-email-matt@codeblueprint.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 05, 2015 at 08:02:20PM +0100, Matt Fleming wrote: > From: Matt Fleming > > In preparation for introducing more arrays of tests, e.g. "arch tests" > (architecture-specific tests), abstract the code to iterate over the > list of tests into a helper function. > > This way, code that uses a 'struct test' doesn't need to worry about > how the tests are grouped together and changes to the list of tests > doesn't require changes to the code using it. > > Cc: Peter Zijlstra > Cc: Jiri Olsa > Cc: Arnaldo Carvalho de Melo > Signed-off-by: Matt Fleming Acked-by: Jiri Olsa thanks, jirka