Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7509470pxb; Thu, 18 Feb 2021 11:59:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+UsSxNW4sh//FwUkn+WptIXHS8km3rtrcWoVq6yElzqLj50WwIClWa3O7e2UpqG/8OvOw X-Received: by 2002:a17:906:2747:: with SMTP id a7mr5792214ejd.250.1613678380236; Thu, 18 Feb 2021 11:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613678380; cv=none; d=google.com; s=arc-20160816; b=RjkMQyPyq3NQ8PRslW4V2HVIxIA8ohweuHC9JzJcndWoCxsAuzA9aEyQ4TMpkXRZWE OiyZBNDD0i4emRsZLkEculDTfkPl8FOYzm37lXlTj57K1hPQITnKQ8K2odDRTwvFVsJq qrOtKJDCbml1Zjqlpupc+rxM7g7WN51e9XbzytjSMmHrAmXTh1pNq7cClF7xYXRg3b3I 88OvUxjl3viup6ltCMNj9LK7cW8EuOmq+y3jYkQu0hbJz4R+di7Q/Se2vaCbNohGrNqF 29vJs4+FJV9ZDHQKkyCJQ/yjfjVkCkxTF6K2OocotkN4BV/FR/Ieu2IRLCpLW6D5soTL RrFg== 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=5E8KtgczxYZADBq0OhO3F4Mv1eD04HeH905cJDRKPaU=; b=bffyDcraDQzBqy0ZdlHtFL8rn7FmGEdDW2abZ6sm85nR4M+UIfCWJicHIQY2gy9LXn b9CMlB7RNnO1xUheY4WdRlpZ+ejuoX6mBS0snlsLBMIK6jO7ux6Lq32jgvHRSu5LQv0l l1Pk8voFbJttznwuWpEUDoO4p1MejUlt46uD2IiMHQDLzpI8YyNZwXLVFK6rc9a4PqHN SHn9e9yJ/Gj5LKZRUX3IK/Bxg6tJhySTX2ZNYECGa97v+BaGOVnBrX/F3zBUzYrwkSS+ +5eU4YelJs2udDcV2X3xA7tHLwDYNp+W+7NrqZGKkjcr6UPRw9yqLn5hNCPVF/2pknnd TTJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bUX0OEC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gl7si4284383ejb.70.2021.02.18.11.59.15; Thu, 18 Feb 2021 11:59:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bUX0OEC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231213AbhBRT4Q (ORCPT + 99 others); Thu, 18 Feb 2021 14:56:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:58048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230071AbhBRTbj (ORCPT ); Thu, 18 Feb 2021 14:31:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id F0BB364E22; Thu, 18 Feb 2021 19:30:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613676655; bh=lnUB2bONZeJO5S0p4iu2vLKyPBpgxp21eol/4JgnczE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bUX0OEC/R1kLWJddDeZ6/qdwP+N7FS3ddLDaBQg6zQ+MDBTA/BNR1Djir8i5uzPzy /w0LwqdLaCiA9aI4PZRpGkzWpq+GN9Sw7VWrMInTKtP33/rHCQBjtL9lXtY/XB8KQg RPw1qvk/UnxVJUw73hUuQHgeyvaguQny50RPtTgAddoLw23eHG+Z5sVSIzI+uvv4Ol rYGvTGrAawuh+b6prNb30wOWsgP3EDRa3SiCtLNeFdcmyRTzeZ8tJJ9mBlWbU9JCyU AxXlodMkcc6nYFaBigaOb/8wRyGFyTlbUSzNa1PkuKny5CYMJ9GLMr64fYGVLPUaBR Bb+UBZkTrUOkA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id B29CE40CD9; Thu, 18 Feb 2021 16:30:52 -0300 (-03) Date: Thu, 18 Feb 2021 16:30:52 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan Cc: Mathieu Poirier , Suzuki Poulouse , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Basil Eljuse , Naresh Kamboju , Viresh Kumar , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 0/2] perf test: Output sub testing result in cs-etm Message-ID: References: <20210215115944.535986-1-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210215115944.535986-1-leo.yan@linaro.org> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Feb 15, 2021 at 07:59:42PM +0800, Leo Yan escreveu: > The "perf test" can be integrated into testing framework, e.g. Linux > kernel functional testing (LKFT) [1]. We are not satisfied with only > outputting the summarized result for Arm CoreSight testing but lacking > more detailed result for sub testing. > > This patch set is to output sub testing result in cs-etm. Thus the > testing framework can extract the detailed info and generates reports > for which sub cases causes failure. > > This patch set is cleanly applied on perf/core branch with: > > commit 6db59d357e8e ("perf arm64/s390: Fix printf conversion specifier for IP addresses") > > After applied the patches, which is tested on Arm Juno-r2 board with > option '-v', the output result is shown in below; the introduced sub > testing result has the format like: Thanks, applied. - Arnaldo > "CoreSight path testing (CPU0 -> tmc_etf0): PASS". > > > # perf test 73 -v > 73: Check Arm CoreSight trace data recording and synthesized samples: > --- start --- > test child forked, pid 17423 > Recording trace (only user mode) with path: CPU0 => tmc_etf0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU0 -> tmc_etf0): PASS > Recording trace (only user mode) with path: CPU0 => tmc_etr0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU0 -> tmc_etr0): PASS > Recording trace (only user mode) with path: CPU1 => tmc_etf0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU1 -> tmc_etf0): PASS > Recording trace (only user mode) with path: CPU1 => tmc_etr0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU1 -> tmc_etr0): PASS > Recording trace (only user mode) with path: CPU2 => tmc_etf0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU2 -> tmc_etf0): PASS > Recording trace (only user mode) with path: CPU2 => tmc_etr0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU2 -> tmc_etr0): PASS > Recording trace (only user mode) with path: CPU3 => tmc_etf0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU3 -> tmc_etf0): PASS > Recording trace (only user mode) with path: CPU3 => tmc_etr0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU3 -> tmc_etr0): PASS > Recording trace (only user mode) with path: CPU4 => tmc_etf0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU4 -> tmc_etf0): PASS > Recording trace (only user mode) with path: CPU4 => tmc_etr0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU4 -> tmc_etr0): PASS > Recording trace (only user mode) with path: CPU5 => tmc_etf0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU5 -> tmc_etf0): PASS > Recording trace (only user mode) with path: CPU5 => tmc_etr0 > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight path testing (CPU5 -> tmc_etr0): PASS > Recording trace with system wide mode > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight system wide testing: PASS > Recording trace with snapshot mode > Looking at perf.data file for dumping branch samples: > Looking at perf.data file for reporting branch samples: > Looking at perf.data file for instruction samples: > CoreSight snapshot testing: PASS > test child finished with 0 > ---- end ---- > Check Arm CoreSight trace data recording and synthesized samples: Ok > > [1] https://lkft.linaro.org/ > > > Leo Yan (2): > perf test: Suppress logs in cs-etm testing > perf test: Output the sub testing result in cs-etm > > tools/perf/tests/shell/test_arm_coresight.sh | 45 ++++++++++---------- > 1 file changed, 23 insertions(+), 22 deletions(-) > > -- > 2.25.1 > -- - Arnaldo