Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4387672imw; Tue, 12 Jul 2022 07:09:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vLyLYRGithgGSaFgLD08VEhMox1E+BZDa5GcG/SB8lXZY4JISvmnXZw4aQy4H/ywJ34kR7 X-Received: by 2002:a17:906:5343:b0:722:ea54:fe67 with SMTP id j3-20020a170906534300b00722ea54fe67mr23935055ejo.181.1657634975794; Tue, 12 Jul 2022 07:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657634975; cv=none; d=google.com; s=arc-20160816; b=qdwoZhRc223xxesOKoaBhS2QG/+NNi9A6MtcnaIbIvXBjKRRMEZKAOx0uNT1DzNEbK lkhQpcGaCbtwForGHUvGR+9Pc39MoEhxTAj/aSQCms4T5SCUDjzUgfqVDTChNil3NUxm fcuhKJVyGB/qotx8Rw4xWvLZaJbUCzLB+DrjoQOlHyaS2ifiMj83TLUGzuiLM7F6nraN 2WlN1tlTmr0V55SWwIHBLzR3545TiMpeDKXlHDTOWi14D4KsZyaXTwDx2dPokj8paJGx 7WCoKB5628yGO4iJPAOhATqBvToCMzRQANWHZHADwUXuNHk4pBuC0v/O38qvRAoZEflO fXdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=By/HC8k7kjOfCB92EnX2zQL0QckC7XBEswwz6S4JAYA=; b=ZhA5fsLS5yVrXLCJavJoKjGqtxQvQY2atsuBoWkjW1riFMUeQDVjiEpq0EcKpbluEq 60BBMRXIaJ6EvfDB4r2PZqT1BqcIvJJwrPNcqCznCjaWhfgMXQclG7nuYCnGDgod8T5j 7qgSOVwD/f7FsOQYyEPLvi1T0V8vKtu//avA6NBVv/Fkn+8nXYSfEE1R1BtsQ4s74HXj CNL12ER0n6UK/El53D8LuxXaI/ja/WDVz+FWdZRAKfCIdPsn+gsukJzs4cx1HHq+GN9X taDcWVgcyaSFoqwjh+3EcCJPRL+k8vyJ+AK/mNIE3zTMDn5RYIsFKcO5pb6WwsE1uxrj /ivg== 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 n8-20020aa7c448000000b0043120d5f3adsi13766912edr.135.2022.07.12.07.09.07; Tue, 12 Jul 2022 07:09:35 -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 S233053AbiGLN6Q (ORCPT + 99 others); Tue, 12 Jul 2022 09:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiGLN6P (ORCPT ); Tue, 12 Jul 2022 09:58:15 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9804487F57; Tue, 12 Jul 2022 06:58:14 -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 C77D91596; Tue, 12 Jul 2022 06:58:14 -0700 (PDT) Received: from e126387.arm.com (unknown [10.57.72.222]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3704B3F73D; Tue, 12 Jul 2022 06:58:13 -0700 (PDT) From: carsten.haitzler@foss.arm.com To: linux-kernel@vger.kernel.org Cc: coresight@lists.linaro.org, suzuki.poulose@arm.com, mathieu.poirier@linaro.org, mike.leach@linaro.org, leo.yan@linaro.org, linux-perf-users@vger.kernel.org, acme@kernel.org Subject: A patch series improving data quality of perf test for CoreSight Date: Tue, 12 Jul 2022 14:57:36 +0100 Message-Id: <20220712135750.2212005-1-carsten.haitzler@foss.arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,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 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. 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