From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B77AD42DFEA for ; Tue, 9 Jun 2026 14:40:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781016046; cv=none; b=onylZdDzszosPmsEyyYFcEaaLQ33TEBybo8jr0rwOz6FB5GxzfO4YbuzjL/d0zIQkxcj1TAb38Prr855KUg8/tF8TZjjfJWEoEnxdQs1IqsGMCNZJivZk+E6PbI5X9a8CxQutRj8c3btxxCywOoq30AnC2vrK9vP3dCpYg9EazM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781016046; c=relaxed/simple; bh=FSMtqVRVy7D3pvypIs3gLf7OFxrFfmQrY4e2IbRbIqU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dv41qiX6Cul8Zt6RpjhGftZ4OwXAfADSE98sNa+E6+2SE5VdzOXiq3rxEzLB8hDbrC+wV5FnAZIIYkNmcGcBKzBzIY1V2XrNoQvXg7SemVT+GWRrvv87m3jk3Xoyriu0Ftt1FblKG2IErsVgM6GMIqwAHQR+1PbdCQwqT6+lLl4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=z53EiAEP; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="z53EiAEP" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-45ef1629ff4so3878747f8f.0 for ; Tue, 09 Jun 2026 07:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781016043; x=1781620843; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Ng7BXZAmfD6H6DnpoBma7BIsuVaWOeOAye3IPeJCbwg=; b=z53EiAEP14qyNAbzHYVk4LMZC23WNrFWujlu8v/9L+pEXX31BIN72EBlrDudaAOimC sig/ouiNGs8JU5BPUJAaLWaEUQzVCtICMR0fzHfjYoJRwApxVAqFChL9fci24TeDQJUs bG+dYAKniHeJPQxN8TLxTs5Eu2kTBgLGUBvvWpOC6vc1QTLwocihA7YGzY/SNpRDcDNz 7sf+0DI2c7Wl0U9T03nQXovT7TzMIS6wdtphcN+nQZqxFQO1q+R05Ac3Sx/zZLrniPX2 daZB5gnqUfxGNLyBQV6YGYTGnBd5b5cdxHeFKqE+ZM+fnxoUHthxsgTW8oF2U0lF3Thc YtYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781016043; x=1781620843; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Ng7BXZAmfD6H6DnpoBma7BIsuVaWOeOAye3IPeJCbwg=; b=tFCMBwRSre/gVrL8QjXhWLu26hGM60lSrvPJPze+nsa40ZAFLpEQtFxTBSLW6fih0h 1ItZOkIKf6sDWFMOJJc4+smKGowZzDMxy5Sjm7K+HwUfwlhVIq8u0a7koCfaZtw+GNTt 7hW8s+anpr94OXW1RGEoTvHifM8gsYazq90+T4ICgAgNe3VM4VDyNYgElR0VKZ8KnhhB bIGytivnR4pVSEPjxGfdbvv88AXuBZnfGESpEiA8wbQS2BfEzH1io4cBsAsFtM3JVjDQ iyMCucU3Yh568aESnGXaxlPh1Qowx8I6ge0o3yj9jMVlfAH5A1EefDcPr/x0sfnCMqSr F4Gg== X-Forwarded-Encrypted: i=1; AFNElJ95IFTIhUiqNWi9RDwNhfuXJ/utNhr83hDbQs4r/g+XXgAV+ZCIzf0X6v0kUvfWg4c/zbSb9IowGDZ0bsY=@vger.kernel.org X-Gm-Message-State: AOJu0YwJurkqfcdkZOmkdBKSHR3DENnbc4+rebU+RwDlTFfGgrDBdJ73 gXfJUYfe7vW7XQ1x1AjXIVSlYR27OQoOB507FRsDF5q0AzNkoC1b2aMrizHKJZBLyBI= X-Gm-Gg: Acq92OGe6tObyRcXKfe4z2LqIoGUPr5x4MPb60g31rNHTMN27dd2TSyuj5fQfJuzjkv X+6fW5WIiZ/NuC95TRLVMxeB92vODnafROjxr/UtugDIcUartB/bVPJFBpUrcVOLt7eiE7SpLri M+gs0/Q7QhMEajd0pyDo3LDv7h07/y3qIeVnTaM6NN6HNGGwF5tAVGH0HnEXP/fgn/+CC9ZzIHD WEY4VUb2k+jFDQMld/DH9AvZMRIE8R8G42nVU9pc1JBXKo7rUOdKLrik4hUmgYjhjQ+My1fQEai Xe/qceZyRWJf9f2SVKi2wF8QX0miJ2XD56eIQDQFArygaTyYnhZjj8ocvnoB6NgsiHHi+44lGix dRvJoR+r8mr8fiTlQNeh+lqyQcwgfigEXLKm/bqV3TS11GmHgKgyWcSTVF9O2NftU1sEOMxO/wt Pm/kB9TuYUUAIWT4hXKkMVrutTSGRteJfX+ca/l/4rgZo= X-Received: by 2002:a05:600c:8b0d:b0:490:b9ce:a73c with SMTP id 5b1f17b1804b1-490c55662b1mr334065995e9.31.1781016043268; Tue, 09 Jun 2026 07:40:43 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490bc3c1149sm428411935e9.4.2026.06.09.07.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 07:40:42 -0700 (PDT) From: James Clark Date: Tue, 09 Jun 2026 15:40:19 +0100 Subject: [PATCH v5 14/19] perf test cs-etm: Speed up basic test Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260609-james-cs-context-tracking-fix-v5-14-d53a7d096a19@linaro.org> References: <20260609-james-cs-context-tracking-fix-v5-0-d53a7d096a19@linaro.org> In-Reply-To: <20260609-james-cs-context-tracking-fix-v5-0-d53a7d096a19@linaro.org> To: Suzuki K Poulose , Mike Leach , Leo Yan , Arnaldo Carvalho de Melo , Namhyung Kim , Jiri Olsa , Ian Rogers , Amir Ayupov , Jonathan Corbet , Shuah Khan , Paschalis Mpeis Cc: coresight@lists.linaro.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , linux-doc@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 Like the name says, this should be the most basic test possible. Kernel recording is slow and already has coverage on the systemwide test. Perf report output also has coverage elsewhere. 'ls' also produces more trace than 'true'. We only want to test if the combination of recording options works at all, so fix all of these things to make it as fast as possible. Reviewed-by: Leo Yan Signed-off-by: James Clark --- tools/perf/tests/shell/test_arm_coresight.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tools/perf/tests/shell/test_arm_coresight.sh b/tools/perf/tests/shell/test_arm_coresight.sh index da2f599393e2..83295a8fe179 100755 --- a/tools/perf/tests/shell/test_arm_coresight.sh +++ b/tools/perf/tests/shell/test_arm_coresight.sh @@ -179,10 +179,9 @@ arm_cs_etm_snapshot_test() { arm_cs_etm_basic_test() { echo "Recording trace with '$*'" - perf record -o ${perfdata} "$@" -m,8M -- ls > /dev/null 2>&1 + perf record -o ${perfdata} "$@" -- true > /dev/null 2>&1 - perf_script_branch_samples ls && - perf_report_instruction_samples ls + perf_script_branch_samples true err=$? arm_cs_report "CoreSight basic testing with '$*'" $err @@ -246,12 +245,12 @@ arm_cs_etm_snapshot_test # Test all combinations of per-thread, system-wide and normal mode with # and without timestamps -arm_cs_etm_basic_test -e cs_etm/timestamp=0/ --per-thread -arm_cs_etm_basic_test -e cs_etm/timestamp=1/ --per-thread -arm_cs_etm_basic_test -e cs_etm/timestamp=0/ -a -arm_cs_etm_basic_test -e cs_etm/timestamp=1/ -a -arm_cs_etm_basic_test -e cs_etm/timestamp=0/ -arm_cs_etm_basic_test -e cs_etm/timestamp=1/ +arm_cs_etm_basic_test -e cs_etm/timestamp=0/u --per-thread +arm_cs_etm_basic_test -e cs_etm/timestamp=1/u --per-thread +arm_cs_etm_basic_test -e cs_etm/timestamp=0/u -a +arm_cs_etm_basic_test -e cs_etm/timestamp=1/u -a +arm_cs_etm_basic_test -e cs_etm/timestamp=0/u +arm_cs_etm_basic_test -e cs_etm/timestamp=1/u arm_cs_etm_sparse_cpus_test -- 2.34.1