From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 A8E9A3EFD2E for ; Tue, 9 Jun 2026 14:40:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781016042; cv=none; b=O0dJeYmx/l0VBQrDt8bVdviVjSKir/HP7SiVBOvkADXXdP5wO0RAjj32yOyIIkH+CGSxG7qNbGgF7p5eyUsl+U23NqHPTlBFCdiIpccSaZpuU6KhtkUEEeCba+gqZaVf0nVXx3pQK2iGfYeYmaXFyoCEByr9kefF+7fTM+kvlNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781016042; c=relaxed/simple; bh=zBP33YW94/R1hHZYuHZFRO5gh0N+cAj5cBmAyLWmp6U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=utADR3lOmmVoSnQMuwK7AjXNV37Oe7lpYOhWkzkrG01cyCVpnbfoqVLkX2A+365l3nYmpS4gfgHt6HQZWEEvqID+t8bOSP029T7Yn2bq2QLsr82dc8mnfT6TWk5YKMvAPzG10wv0PQm8jlvIPFIW6ktghLXgqmH9mq/7T0GSf1Q= 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=ON6/WnuJ; arc=none smtp.client-ip=209.85.128.41 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="ON6/WnuJ" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-490cdae130cso15249495e9.0 for ; Tue, 09 Jun 2026 07:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781016039; x=1781620839; 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=2h78YxBKDueLh+9yt6/S9EMI77LVr/N7bEn44d3CK8g=; b=ON6/WnuJ+egoWFBEjRQTvWu3qxjBCxHJv3TEjg1K18U7ejrhN1HX3GZ96GNanYW9vZ OgsCLf4J5AmfxBRqwj8YOK+CirU1Xlfr+PKkyshS9w24R0TpL8kgTMqrOUVa9oNzPN8M YjRDFN8IPjok3sA1aIO8Ia6DE3XN3PFSWTiZEu3L0jSoTQIfGUT3tZa6NL5lNwUX9E7c yrNBezgexByfDAYEUF2Pi/JxrTyeYIN5O22ou8bz1oS1tTj9xkfOwnoVFGuSysHA8suZ z0652kZm0jk1VF3Q5UXmjzbaMKBHvfVKUVTtdSsH0Y/MkmZiqqndTWuJTflusNLwi7Ir frpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781016039; x=1781620839; 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=2h78YxBKDueLh+9yt6/S9EMI77LVr/N7bEn44d3CK8g=; b=ARboPzwZK9A4na7pT7q9JYlcBdhnDgFpjyoqBeerdL029Yj1vsDuz88zN1eey9Vt7R /Vfp7mVqGDknqZYGsN5LJ7iqFvKcTtGiZYYblkpD7qoQ9mtjQhdCX7p/sXZY2csR7a9O GJxHcdGCp+eRQfD2CTq9Tl1bz441xDHVnufhfVRpSKriCb2fhTbVeZzPm3HlNThm1Wk2 Uj6KC2Go7O6qHsUNJRfFgQp7ohbpi3W690GnkebDX5iR4xypqpVN7aQsZqVyf/MFLyqL 4iRlFRo8xVbWZ7K6eOVBt/yzYmi4IqgUj/Xp01H+HJArcUkOF0kymqw8WvkCV/CMhgkv 4hIA== X-Forwarded-Encrypted: i=1; AFNElJ9+fO8Pp2HqllSZIoQK8PJC62uhoIoa1obDDZMt7CJu0RBC2UKhYfbNAKZEx8e735CLZut0KPHbtIMXgVQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwP1Ic1Kf24RdEln13syyIRHzheRuK2PLKjZo/HR8TDc/JjeN1q kHWS5HxIL5a1FBggDHthNeWdQRgiUB6FSdAOVBrhoKN8mRBI15FFu91DIrazOPU1BBo= X-Gm-Gg: Acq92OGI+pwgpv3tOKhJzQLWYQlp3i944ju1Gpb2ooYiKM/uRqxf6Fds5VX5E+iQ84q jOrm89k4sy+ya+yXFfpQcovgJ5/GJl7XLx4SL6sZr6inJqo0idapz5V6ttlys/idi5/NN2vSFpi zCWNRvSMEzNgyBZo8+gJ+YZju0nJu7umwPYIhQWbOf07nsjPshEVRh5vesAyGDnsd7QjoqWhERI CuYiPLShyiZINvOYL4YumCbEtRxCKdojHPDA89YXMFY0yvuiBHSg2h7EY0WdL7MIorersUMQYpC 5ssinvyVK1UtfLI7NlspTBM7Cu/DlKdzkUjb4qafq8QwKuAyuNGE/KF1vqHU5gH89ql1pTllOL6 c3kQb3u3Fc+QDIsI7fiILbMp+3sqdyaOsYffl83OBJv3GGmHXrmXYzoUH871nIrCnGZ918iPAS9 9yt5ehkE0VszZHoJwx6HBTFdcgCUtOE0hgkGpCPcM5pLQ= X-Received: by 2002:a05:600c:8285:b0:490:b1b8:95f5 with SMTP id 5b1f17b1804b1-490c25c2ae1mr347668055e9.15.1781016039067; Tue, 09 Jun 2026 07:40:39 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 07:40:38 -0700 (PDT) From: James Clark Date: Tue, 09 Jun 2026 15:40:16 +0100 Subject: [PATCH v5 11/19] perf test cs-etm: Remove duplicate branch tests 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-11-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 We already test branch output in perf script mode, but then retest it in Perf report mode. This is more of a test of Perf itself than Coresight because Perf uses the same samples to generate both outputs. Also we're already testing instruction output in Perf report mode. Remove this test for a speedup. On the systemwide test also remove the Perf report test because systemwide mode records a lot more data so running multiple tests on it has a big runtime impact. Reviewed-by: Leo Yan Signed-off-by: James Clark --- tools/perf/tests/shell/test_arm_coresight.sh | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/tools/perf/tests/shell/test_arm_coresight.sh b/tools/perf/tests/shell/test_arm_coresight.sh index bbf89e944e7b..39553702c1f3 100755 --- a/tools/perf/tests/shell/test_arm_coresight.sh +++ b/tools/perf/tests/shell/test_arm_coresight.sh @@ -52,17 +52,6 @@ perf_script_branch_samples() { grep -E " +$1 +[0-9]+ .* +branches:(.*:)? +" > /dev/null 2>&1 } -perf_report_branch_samples() { - echo "Looking at perf.data file for reporting branch samples:" - - # Below is an example of the branch samples reporting: - # 73.04% 73.04% touch libc-2.27.so [.] _dl_addr - # 7.71% 7.71% touch libc-2.27.so [.] getenv - # 2.59% 2.59% touch ld-2.27.so [.] strcmp - perf report --stdio -i ${perfdata} 2>&1 | \ - grep -E " +[0-9]+\.[0-9]+% +[0-9]+\.[0-9]+% +$1 " > /dev/null 2>&1 -} - perf_report_instruction_samples() { echo "Looking at perf.data file for instruction samples:" @@ -123,7 +112,6 @@ arm_cs_iterate_devices() { record_touch_file $device_name $2 && perf_script_branch_samples touch && - perf_report_branch_samples touch && perf_report_instruction_samples touch err=$? @@ -154,9 +142,7 @@ arm_cs_etm_system_wide_test() { # System-wide mode should include perf samples so test for that # instead of ls - perf_script_branch_samples perf && - perf_report_branch_samples perf && - perf_report_instruction_samples perf + perf_script_branch_samples perf err=$? arm_cs_report "CoreSight system wide testing" $err @@ -179,7 +165,6 @@ arm_cs_etm_snapshot_test() { wait $PERFPID perf_script_branch_samples dd && - perf_report_branch_samples dd && perf_report_instruction_samples dd err=$? @@ -191,7 +176,6 @@ arm_cs_etm_basic_test() { perf record -o ${perfdata} "$@" -m,8M -- ls > /dev/null 2>&1 perf_script_branch_samples ls && - perf_report_branch_samples ls && perf_report_instruction_samples ls err=$? -- 2.34.1