From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 6325543C05E for ; Tue, 9 Jun 2026 14:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781016052; cv=none; b=CFLysxHDabXxmhTqZUBsiiQ6aNItpmBCZg6keiaxJ7w+zSuxQtrfxWrFrPXtol9b5AweFUfSGhLdP6gcfj4v74KxlqMJis/fzHxwV9fYhwcZHf9c5rPvFayUt7Cil6YzEVBPWNPHkFzm6AvqhqqXYU3qjzaQjjhaE8qicMpYx1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781016052; c=relaxed/simple; bh=QxiXQQoGhuE0v0FKgjfs2qmeul36mpIzc28JU+Z4ydA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=avDIsQjq/0WMpELBo15YPrbnOPW65hC+AYgbmEWqV2QigTRlH2eFOJJrMAFldmjdwZHNG5/AgQmS1SzYdr2DH1ijgqwYMVYYgK4NE1v2OvbCGTi+zhxNj8Qrq/mtUXhewhph1PLr4UUc7VJNThnVXmtQGe0IRf9o8cNX8Xm8Ti8= 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=ZdwpKl7e; arc=none smtp.client-ip=209.85.128.48 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="ZdwpKl7e" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-490ae94a89eso47982605e9.1 for ; Tue, 09 Jun 2026 07:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1781016049; x=1781620849; 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=qIDogTCAxtWe2C3a6zQaBCMJ4/zJw46qDk4EjlSKYTU=; b=ZdwpKl7exdNp/Csonqpi6Xg6/QjeIL+sAMapEscdsQFQl27aXBYA01ivRQQMQX3+0/ n3KMuSajn0vqi7bQM0J0edMkNzh0wEipRHmu7OQd1dmg2UCkkpSP41IqcGFc62hXqnbP yAaZNXYC6DunqCXJzEHbeUPlTlCcKZ+RxLTGKUvUHwrooLYazXmmdqQpdIyq88a9UM6r 0oSelhgLmrQAYJYRz+hfFakGWcQlgzb/PTMZk0Z1QkmqKpczAQsG4hUX1qBowh8DN0GT 5u18eddxNw84lFs1x8ylduJwhg59wTR1I9q+l0MhLcu87mm3dT1mEfCisz/IgCZQjAJC TllQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781016049; x=1781620849; 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=qIDogTCAxtWe2C3a6zQaBCMJ4/zJw46qDk4EjlSKYTU=; b=pb+Ss8MtMCCfvUcV1ZGXLLngKTYP2UfOlD5mHV883aioH7FzRIrXLYdTLbx4MpyWGG VEBNR69SBLFSXBN5XFsTWBkmrlX4SV/+iX8Vqd9UplF2GF3KTErausCchNZo/D7YblqJ d5tdx5dbCXMQgeb++mC/hmAij1BWy/YdFz16tZ8C2oP49Uwd3WL0E5n8p5OrdR98fPsO q1W9CqfY/0xriuotCNLvM4uPLXb2ZYxpTkiGZm/ZDH6LiBVcljlWkG4kA2l7mAHb5CKC jf/T4Z7NE81iV2DkadR0SKnZznqcUFcNEJLpebcqxMO5z5/87mlcIxkGhi4cdS3zRv9p GKpw== X-Forwarded-Encrypted: i=1; AFNElJ/tffBg6t8La9qLGCfvzKVwHNkVH4oGL1Cqf1ynLwM+TrY6AO5N1Lkb7QKTdNsjjD7C2GUHbSkrgbiLRFo=@vger.kernel.org X-Gm-Message-State: AOJu0YxzYjPM13If3TMLwgqz8q1UXilzh7l50vAh8ZjEE7KPXJMTr6HU JLpv7NXZWAxqw7slKq5hc5AE1tIsjZN6vUaQWbhCraB9FV7eRkGRXVUer/sxuYzE3DrySdO7r4m FQZOnwPk= X-Gm-Gg: Acq92OEImQNBiHHe+M6xv7l4QwIkJSW4kiek4tDFh/4tBYPhiXETzwk/4x6j8iDduPg KCBF53LNryFfqBcKcSzdoIdyPnRW4E1Z7TL2V7WHcDfrGr6jZ14oxsZM/YIKHQu/5wWW+1MZdJ0 nGNsRFFAEE6cD0fEM7/vogWAm15o0pL+uD62gXV1kKhCSbjh+bW6kb2yLtFIcDDGg6NKLcc/nhH gh9TFDj8E40KTzmDUO+oKoQPVp30gErMHDxq/CojUit12uU57P9JK+dKPYLUxei7/31vXYB1cYp dRpQoJBsNBLWmYN7BoinXOZfSFulP2hgdk2jU1bjDgL/Qsvp1BZ2WpTjPFn++vLnBn7AlOk+IOR YIkEzqywW8IcDousXeGFB7iXedNJUFas1d/cnOMDuV3l/es+qt3VS6h7niwoLKzsRyY3YJ6DeWN wSpMDQOIe9elANQ56jQ4FQ4qlwuh+xD/dvjCAlYEKjOBA= X-Received: by 2002:a05:600c:b93:b0:48a:93f8:dd02 with SMTP id 5b1f17b1804b1-490c4e0414emr326755125e9.14.1781016048776; Tue, 09 Jun 2026 07:40:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 07:40:48 -0700 (PDT) From: James Clark Date: Tue, 09 Jun 2026 15:40:23 +0100 Subject: [PATCH v5 18/19] perf test cs-etm: Speed up disassembly 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-18-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 can use exit snapshot to limit the amount of trace to decode here too. Also each call to objdump is quite expensive on kcore so limit it to 2 samples instead of 30. We only want to see if there is no data at all. Reviewed-by: Leo Yan Signed-off-by: James Clark --- tools/perf/tests/shell/test_arm_coresight_disasm.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/tests/shell/test_arm_coresight_disasm.sh b/tools/perf/tests/shell/test_arm_coresight_disasm.sh index f78dfb6bf73e..f2fb1aa92252 100755 --- a/tools/perf/tests/shell/test_arm_coresight_disasm.sh +++ b/tools/perf/tests/shell/test_arm_coresight_disasm.sh @@ -43,9 +43,9 @@ branch_search='[[:space:]](bl|b(\.(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al) ## Test kernel ## if [ "$(id -u)" == 0 ] && [ -e /proc/kcore ]; then echo "Testing kernel disassembly" - perf record -o ${perfdata} -e cs_etm//k --kcore -- touch $file > /dev/null 2>&1 + perf record -o ${perfdata} -e cs_etm//k --kcore -Se -m,64K -- touch $file > /dev/null 2>&1 perf script -i ${perfdata} -s python:${script_path} -- \ - -d --stop-sample=30 -k ${perfdata}/kcore_dir/kcore 2> /dev/null > ${file} + -d --stop-sample=2 -k ${perfdata}/kcore_dir/kcore 2> /dev/null > ${file} grep -q -E ${branch_search} ${file} echo "Found kernel branches" else @@ -55,9 +55,9 @@ fi ## Test user ## echo "Testing userspace disassembly" -perf record -o ${perfdata} -e cs_etm//u -- touch $file > /dev/null 2>&1 +perf record -o ${perfdata} -e cs_etm//u -Se -m,64K -- touch $file > /dev/null 2>&1 perf script -i ${perfdata} -s python:${script_path} -- \ - -d --stop-sample=30 2> /dev/null > ${file} + -d --stop-sample=2 2> /dev/null > ${file} grep -q -E ${branch_search} ${file} echo "Found userspace branches" -- 2.34.1