Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp451537imw; Wed, 13 Jul 2022 01:20:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t8rCpDhJfqDQwKaYx75MF77uu6ipHOscAe34LOOuKyc9KVDj4aTzBKZ2RTC0f40QVVi4Om X-Received: by 2002:a17:902:9004:b0:16a:6808:e602 with SMTP id a4-20020a170902900400b0016a6808e602mr2057364plp.94.1657700431254; Wed, 13 Jul 2022 01:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657700431; cv=none; d=google.com; s=arc-20160816; b=OXReq8acAVMujoxxO03tw/I2Iaq+3YJzrq9IcND6NDHed3cQNTfD8Fbehq4UWsndsy Ga+H13OWdStm2+UdkNxm1eRerR4UffQPPQrklu7n0shc6JNr1FcSlNY7SD56hVasgD/O LLbRRUMPr9lCzdWZDOzGariu4A6mkZx7ez3sYSAKbqoAsavhxcWd1SoFx4iVyr+XwLrD ugN1Mvb+Yg8WKWO/ia19GGQda8dNo5RZTSNxAB+dOtva7Odh3BvYEKbtC3fdGJzcYZi3 b8+WbYZWsdIITjAT3mbLSB/LmXEvwYQ9ud8rvQkj3o5EXbFVkf5YEKZNvNyHiNtutLzc xXHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=FMvTu9mXfXh5wUNFza4Tw5L3OXb0dzgah1mwM/qk2zY=; b=sRiSR50Mkcmw8mc3N1oXCvDshDpGge6hxTSct5juElPxI5PUxohj5NRLjHzFKyyEtZ 7+XvMA4v7vcIXSgmY4qtYRGFRlacuZrW38pfHQomDDK0C3iD3Fh+Z1eMNPLNO2H+7C+I lSHRM0Si9mjRonKYOBf+WJ72LvsDkyDKr5CRqqNDmkSUEEpf+ik2qUy3mcVWvjjywv2y E1S+C9Wpbyq0kdp0gxP+ThIUwztoQfJiW5PkZVagp1sNeYkBMoxWRDf84c26bvUoI3t9 nujzhG8gddWdbYz7MELH37B6tPtOpOuWqj86XUpDtl0FS/NVegF/56DoB2S8CAcWUiIU a86Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 13-20020a17090a098d00b001ed40b70436si1512421pjo.155.2022.07.13.01.20.19; Wed, 13 Jul 2022 01:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235507AbiGMIR4 (ORCPT + 99 others); Wed, 13 Jul 2022 04:17:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234523AbiGMIRi (ORCPT ); Wed, 13 Jul 2022 04:17:38 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C2ACEEA9E; Wed, 13 Jul 2022 01:14:20 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4E1181424; Wed, 13 Jul 2022 01:14:17 -0700 (PDT) Received: from [10.57.86.222] (unknown [10.57.86.222]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 99C673F792; Wed, 13 Jul 2022 01:14:15 -0700 (PDT) Message-ID: <524ce022-fbdb-418d-d924-a9c510f3a769@arm.com> Date: Wed, 13 Jul 2022 09:14:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: A patch series improving data quality of perf test for CoreSight To: carsten.haitzler@foss.arm.com, linux-kernel@vger.kernel.org Cc: coresight@lists.linaro.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, leo.yan@linaro.org, linux-perf-users@vger.kernel.org, acme@kernel.org References: <20220712135750.2212005-1-carsten.haitzler@foss.arm.com> From: Suzuki K Poulose In-Reply-To: <20220712135750.2212005-1-carsten.haitzler@foss.arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Carsten On 12/07/2022 14:57, carsten.haitzler@foss.arm.com wrote: > This is a prelude to adding more tests to shell tests and in order to > support putting those tests into subdirectories, I need to change the > test code that scans/finds and runs them. Please could you add versioning to your series and a changelog of what changed from one version to the other ? That way, it is easier for the reviewers to understand and spend their time effectively on the newer changes. If you are using git format-patch, you could use -v for the version number in all your patches. e.g, https://lkml.kernel.org/r/20220414064457.12052-1-mike.leach@linaro.org nit on Subject: This could be: perf: test: Add trace data quality tests for CoreSight where "perf" is the linux subsystem you are targeting and "test" is the specific area you are contributing. That helps the reviewers to filter the series in a mailing list with hundreds of emails. > > To support subdirs I have to recurse so it's time to refactor the code to > allow this and centralize the shell script finding into one location and > only one single scan that builds a list of all the found tests in memory > instead of it being duplicated in 3 places. > > This code also optimizes things like knowing the max width of desciption > strings (as we can do that while we scan instead of a whole new pass > of opening files). It also more cleanly filters scripts to see only > *.sh files thus skipping random other files in directories like *~ > backup files, other random junk/data files that may appear and the > scripts must be executable to make the cut (this ensures the script > lib dir is not seen as scripts to run). This avoids perf test running > previous older versions of test scripts that are editor backup files > as well as skipping perf.data files that may appear and so on. > > Signed-off-by: Carsten Haitzler > It is also a good idea to have the diffstat of the series in the cover letter to give the people an idea of where the changes are touching. git format-patch automatically gives you this if you add --cover-letter option. Suzuki >