Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2101191rwb; Fri, 12 Aug 2022 12:04:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Qp2oZUnATkXZrVElhzlslILnaBpS8j2xflazuB2MVeE246HvzbHk3v671hSYQY452bsWE X-Received: by 2002:a17:907:86a1:b0:731:5567:3648 with SMTP id qa33-20020a17090786a100b0073155673648mr3464055ejc.339.1660331049931; Fri, 12 Aug 2022 12:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660331049; cv=none; d=google.com; s=arc-20160816; b=uPfiaRMpYcBwTYrCcRLjLyEZxW3av8/rXQmdmmcSDwO0HLjur7/tp3nuMJfrdviq+V 43m73txVWY8G+0G4kuR7Y3jLg4MIo55nyhKyCfcra9+tv9fQtrItR9vEVV3/x2y4+PxK ZbwK7emT4yBuZ94hzhNKd5lOSaSmBAnf4+RzioTm3IwgkZo0JuGpIRHz0OKoExWuazgH t0PtkqutmjE6G0gylizPOfrd1jhkpVtdQW/3cqZAoNFochNsDf7/as/v609vNWLKkXah PLSVol5wukKWrMM6kv2sdiCpbL79JvWN5yHMc0AInDfLDybiC037dDL9AVLMUdgIImAu mI5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WqLnmCCqBxVlPEqKhCqIWeMJYRmzDCG/gOQW2RXpkG4=; b=gmI8PiTK5iE6F78T1iDWDgsXQbUY263viP/ficTA4MO11Wyp85UcEHayxmd/TwQKGq 02LK8toQkeXNO6Z/dvKEGcJbzVIZeBQrZLBp/No7PHBBm6WetO91MrsIsY96QNf69sP7 lrPoY8ewZFhRsH5aDOCx6cyqRBk19MTm7nrJ9ZOjQjkhuVdlDRlvNcAyId0zjwxoKNWJ /grskO7Q45Upw9CtQ1tDynRVK8f1plgUtbkJEVeg0G7kkPfa/07xQlcWkFq3F2s34dVI 8Gwqy6EqGQH5n8GcbUWIQ5WRhP+IIgmjcqSwi+nhxExnMgCZYeBsfc7kdpZtL2TxcxSi ZdZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i5MP15QQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a170906328200b007304c70ead7si2122834ejw.586.2022.08.12.12.03.43; Fri, 12 Aug 2022 12:04:09 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i5MP15QQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237447AbiHLSvb (ORCPT + 99 others); Fri, 12 Aug 2022 14:51:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235743AbiHLSvZ (ORCPT ); Fri, 12 Aug 2022 14:51:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F8F9DF3E; Fri, 12 Aug 2022 11:51:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 804ED61772; Fri, 12 Aug 2022 18:51:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82DD6C433D6; Fri, 12 Aug 2022 18:51:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660330281; bh=YR7NW+wHr3+3/rhyK6p8ND4n2BTHUheITVMUyS5T/0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i5MP15QQAKz8QoVzMCZef/gA7vYZnyApvSbAnYkkQDz8VeSLB5TlhFT+i5Dx99Omr Vi2r3okFt1D/bbYVA0k/2fbrdJwrmk3Qge//e0D2n2HX1gt8AqQPpqLOat8eLGoOU6 m5N0AWhj1dLRWq6kx/jCTF3hdfI3s0lbor6kTHeGwbgyZqwJjmHfFc1RzjRJoSxnII D39+833NACgXQZlOs5FXeNNTK2KnyASTiWSHfZYENSFxESY13tz7KR0GqVpJDOJFzy iA7X5Jz/NaeeJUdqnB+29tLvsFuAwCB4WDL4wxgeD+PtGvX9HI+wA3Ysy3HYesbJzH kVWWK+U2s1mdg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 402564035A; Fri, 12 Aug 2022 15:51:17 -0300 (-03) Date: Fri, 12 Aug 2022 15:51:17 -0300 From: Arnaldo Carvalho de Melo To: carsten.haitzler@foss.arm.com Cc: linux-kernel@vger.kernel.org, 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 Subject: Re: [PATCH v7 00/14] perf: test: Add trace data quality tests for CoreSight Message-ID: References: <20220812121641.336465-1-carsten.haitzler@foss.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220812121641.336465-1-carsten.haitzler@foss.arm.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Em Fri, Aug 12, 2022 at 01:16:27PM +0100, carsten.haitzler@foss.arm.com escreveu: > From: Carsten Haitzler > > 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 On the next series, please add to the cover letter a summary of what changed on each repost. Thanks, - Arnaldo > > Carsten Haitzler (14): > perf test: Refactor shell tests allowing subdirs > perf test: Add CoreSight shell lib shared code for future tests > perf test: Add build infra for perf test tools for CoreSight tests > perf test: Add asm pureloop test tool > perf test: Add asm pureloop test shell script > perf test: Add git ignore for perf data generated by the CoreSight > tests > perf test: Add memcpy thread test tool > perf test: Add memcpy thread test shell script > perf test: Add thread loop test tool > perf test: Add thread loop test shell scripts > perf test: Add unroll thread test tool > perf test: Add unroll thread test shell script > perf test: Add git ignore for tmp and output files of CoreSight tests > perf test: Add relevant documentation about CoreSight testing > > .../trace/coresight/coresight-perf.rst | 158 +++++++++++++ > MAINTAINERS | 1 + > tools/perf/.gitignore | 6 +- > .../perf/Documentation/perf-arm-coresight.txt | 5 + > tools/perf/Makefile.config | 2 + > tools/perf/Makefile.perf | 17 +- > tools/perf/tests/Build | 1 + > tools/perf/tests/builtin-test-list.c | 207 ++++++++++++++++++ > tools/perf/tests/builtin-test-list.h | 12 + > tools/perf/tests/builtin-test.c | 152 ++----------- > tools/perf/tests/shell/coresight/Makefile | 30 +++ > .../tests/shell/coresight/Makefile.miniconfig | 14 ++ > .../tests/shell/coresight/asm_pure_loop.sh | 18 ++ > .../shell/coresight/asm_pure_loop/.gitignore | 1 + > .../shell/coresight/asm_pure_loop/Makefile | 34 +++ > .../coresight/asm_pure_loop/asm_pure_loop.S | 28 +++ > .../shell/coresight/memcpy_thread/.gitignore | 1 + > .../shell/coresight/memcpy_thread/Makefile | 33 +++ > .../coresight/memcpy_thread/memcpy_thread.c | 79 +++++++ > .../shell/coresight/memcpy_thread_16k_10.sh | 18 ++ > .../shell/coresight/thread_loop/.gitignore | 1 + > .../shell/coresight/thread_loop/Makefile | 33 +++ > .../shell/coresight/thread_loop/thread_loop.c | 86 ++++++++ > .../coresight/thread_loop_check_tid_10.sh | 19 ++ > .../coresight/thread_loop_check_tid_2.sh | 19 ++ > .../coresight/unroll_loop_thread/.gitignore | 1 + > .../coresight/unroll_loop_thread/Makefile | 33 +++ > .../unroll_loop_thread/unroll_loop_thread.c | 74 +++++++ > .../shell/coresight/unroll_loop_thread_10.sh | 18 ++ > tools/perf/tests/shell/lib/coresight.sh | 132 +++++++++++ > 30 files changed, 1094 insertions(+), 139 deletions(-) > create mode 100644 Documentation/trace/coresight/coresight-perf.rst > create mode 100644 tools/perf/Documentation/perf-arm-coresight.txt > create mode 100644 tools/perf/tests/builtin-test-list.c > create mode 100644 tools/perf/tests/builtin-test-list.h > create mode 100644 tools/perf/tests/shell/coresight/Makefile > create mode 100644 tools/perf/tests/shell/coresight/Makefile.miniconfig > create mode 100755 tools/perf/tests/shell/coresight/asm_pure_loop.sh > create mode 100644 tools/perf/tests/shell/coresight/asm_pure_loop/.gitignore > create mode 100644 tools/perf/tests/shell/coresight/asm_pure_loop/Makefile > create mode 100644 tools/perf/tests/shell/coresight/asm_pure_loop/asm_pure_loop.S > create mode 100644 tools/perf/tests/shell/coresight/memcpy_thread/.gitignore > create mode 100644 tools/perf/tests/shell/coresight/memcpy_thread/Makefile > create mode 100644 tools/perf/tests/shell/coresight/memcpy_thread/memcpy_thread.c > create mode 100755 tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh > create mode 100644 tools/perf/tests/shell/coresight/thread_loop/.gitignore > create mode 100644 tools/perf/tests/shell/coresight/thread_loop/Makefile > create mode 100644 tools/perf/tests/shell/coresight/thread_loop/thread_loop.c > create mode 100755 tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh > create mode 100755 tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh > create mode 100644 tools/perf/tests/shell/coresight/unroll_loop_thread/.gitignore > create mode 100644 tools/perf/tests/shell/coresight/unroll_loop_thread/Makefile > create mode 100644 tools/perf/tests/shell/coresight/unroll_loop_thread/unroll_loop_thread.c > create mode 100755 tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh > create mode 100644 tools/perf/tests/shell/lib/coresight.sh > > -- > 2.32.0 -- - Arnaldo