Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp723595rwb; Sat, 13 Aug 2022 07:29:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5FIVjNKyR+6KUufgLLuKChbNUsVGJLtyQbsDoG5sFZ8VGmCi7xtftgorLc7lq++jpFIOcv X-Received: by 2002:a05:6402:2792:b0:43f:6873:7497 with SMTP id b18-20020a056402279200b0043f68737497mr8033908ede.175.1660400999579; Sat, 13 Aug 2022 07:29:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660400999; cv=none; d=google.com; s=arc-20160816; b=TEB4jItpQcSWroIKPTm6D5fUyNX+z9W66HoJ+NxJHzYrVP2lXLVpYNbvtPnK/KGy/U q3X4/nbIBBCNV2VCAVzRyrWbFsZzQ5wH1HIQJTT+vQUjnvFaVXcQNEO6uHdNTUuk1EPr f7JH0egGdKM1Ifedfv/zaLieOj/RC4IYlcaep1lNN4Xs5nNK0URmYClN3cR4jiuPRX4j dw1ioqlL3sm3HRgZpazrpuGJfS8KI1MAVdby1f9Ubr+epeK5JdGKqQ8Cr/ifOLqIfuge 7roF4BRAm+GkH2bspzBMTDUM7e/4vcriye20Balh0FkTu68k8YzyqrX8eX2pqfLAZG9k BOgg== 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=+E0k8hootfoswIfOh4pYh7kOzDD2ZwZBXauTpEBfTNY=; b=czDspgQPpYWRXSliLGFnEh+orOcQHQ1Cd0qcAQH5vdb9++U4QPr7Rfp52EtHhz0fUX gLVneC8Xp2FLD6zft86MkwxWFr357Oi8pfc4Ls9zQhlLQAyklEb4yEq6T3g6RFLSZApn hdtaIq+oSH7JpP9jKo3LUe8f2TVWuAXpUdgkGNfVltQfMf+G7TdmqwOlnwalt2kzFeyp r0guwaDY29YnPVHtxLxR5p0kZOTqw0nritK0XHYUz4skKfkrZiNHC1jF0miXBFWng5vs 4OQHP9s6u6r/Mhdqo4Nkh4/vvar1hCBdZ9mxfjzbuhx1NShfkcs5lsSA8eLtQ4quB893 lpEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PckzpwND; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cy6-20020a0564021c8600b0043d4f544304si3684968edb.342.2022.08.13.07.29.27; Sat, 13 Aug 2022 07:29:59 -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=@linaro.org header.s=google header.b=PckzpwND; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239540AbiHMORr (ORCPT + 99 others); Sat, 13 Aug 2022 10:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239445AbiHMORq (ORCPT ); Sat, 13 Aug 2022 10:17:46 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1448B1C909 for ; Sat, 13 Aug 2022 07:17:45 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id q16so3037443pgq.6 for ; Sat, 13 Aug 2022 07:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=+E0k8hootfoswIfOh4pYh7kOzDD2ZwZBXauTpEBfTNY=; b=PckzpwNDmR1DPo9Tpu8HXT3zfLGDm/6xPpFz292MntKjHxmXhueXCyOCsfLR1/UCTp 7PFJC1waq+WOLonucIStJGiwR9/MjuvG5PXxN6gJGZTe667GwG31fovL4+zOab40bmnt 0EyJPyXbwOfGlLW1SNy/OkfrFYszG4MqPf/vjvF8xELi2knDZxJuzbbo4Un/ZYAHePQE 14jEioSIZMQSk7WLOeYXIUQlwKFhUGPz3iDaDywHYIo2Lgl14zmE5mkumy/agVh4LsfE Q8c8jYl6p2pMhRwiuUmOpf/b4yV03vzDaH81aQu9j0ItEuEZQQOW1d5Spr0RUe48aZ9h H9Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=+E0k8hootfoswIfOh4pYh7kOzDD2ZwZBXauTpEBfTNY=; b=0XqjWWAezwa2XBGIyThAm03I1eUMtybVWdCvj9oQfM4GGkdXnxPT4eaeJosjz0gVVx CC8X8tr/GH7ZDX/0NZnoQTx1pnzITR4TXg0hfelzL3t/SOGUczZHkeZ8hTnFmFp4L435 azZyY58C5HqdIzk3H0MtSVCk3yI1JYbSAS4wdTWTMlEaWDQIvbmKdrNHqZeX0EikhaiY iR4fLOqfSpD436NZnz9/jyxEUJ6lLFYDeqE4xOzNeQLaq/t0+JxpbKuw6vrq8UN69CjC DLonFeeYvPwAa6gO+vR4UeZEdmn0a8Ho3uodfzYxdeRryJWVWi02zQwsqF3NZQGQwrUg rv4w== X-Gm-Message-State: ACgBeo1ASzQf+vX/cn0CgsvA9vszPkVJP7Bn+KNiq6lJd0xb70d0QAYs dUiiM8P9sPZKQ5GpQsDwCWAFDrkPdvV9wakv X-Received: by 2002:a63:c1f:0:b0:41a:9b73:a89e with SMTP id b31-20020a630c1f000000b0041a9b73a89emr6897036pgl.342.1660400264394; Sat, 13 Aug 2022 07:17:44 -0700 (PDT) Received: from leoy-huanghe.lan (n058152048222.netvigator.com. [58.152.48.222]) by smtp.gmail.com with ESMTPSA id z6-20020a170903018600b0016d2db82962sm3808367plg.16.2022.08.13.07.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Aug 2022 07:17:43 -0700 (PDT) Date: Sat, 13 Aug 2022 22:17:39 +0800 From: Leo Yan To: Arnaldo Carvalho de Melo Cc: carsten.haitzler@foss.arm.com, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, suzuki.poulose@arm.com, mathieu.poirier@linaro.org, mike.leach@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: <20220813141739.GB687527@leoy-huanghe.lan> 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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Fri, Aug 12, 2022 at 04:02:50PM -0300, Arnaldo Carvalho de Melo wrote: > 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 > > Leo, can you please check if your previous Reviewed-by tags stand for > this new version? Yeah, after applied this patch series on the repo: https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git, branch perf/core; it has merging conflict for the patch 03 "perf test: Add build infra for perf test tools for CoreSight tests". It's good to rebase this patch set on the latest perf/core branch. I compared patch set v5 and v7, confirmed the my comments have been addressed in v7. Carsten also has updated patches' author address, it is same with the address used in SoB, this is the right thing to do (Sorry I missed that). I tested this patch set on my Juno board and observed a regression related with CTI driver, the regression is not relevant with this patch set, I have reported it on CoreSight mailing list. This will be investigated separatly. When played these test cases, I observed a failure for below case; but when I re-run the case again and it passed. # ./perf test -v 78 78: CoreSight / Thread Loop 10 Threads - Check TID : --- start --- test child forked, pid 6233 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.380 MB ./perf-thread_loop-check-tid-10th.data ] Thread IDs 6242 6242 6242 6242 6242 6242 6242 6242 not found in perf AUX data test child finished with -1 ---- end ---- CoreSight / Thread Loop 10 Threads - Check TID: FAILED! You could see the perf data file is abnormally small (0.380 MiB), it should be an issue for perf cs-etm record. I don't think this is an issue for the test case itself, we need to look at this issue later. So with fixing the merging conflict: Tested-by: Leo Yan Reviewed-by: Leo Yan These test cases are for trace data quality, I'd like wait a bit for Mike's green light since he has much better understanding. Thanks, Leo