Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3262246lqp; Tue, 26 Mar 2024 04:38:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV82oVh4+OetfS9RuqSzTkjJS9uvaz0p1GE9VJBRQpagaH7frcgDoOkJpN4pE516VmXnFvm4ynRJRAIo4fF5NfVV2mbVkD1ixQzg6+/rw== X-Google-Smtp-Source: AGHT+IE3RvCJPKep6ReCxIdYKKu7MD5LUB5Ik38GXmAB6lPM6UdnwZlXIEkceTMsyENk4Dnc87JS X-Received: by 2002:a05:6214:19e8:b0:696:2b3e:7813 with SMTP id q8-20020a05621419e800b006962b3e7813mr11698628qvc.17.1711453103636; Tue, 26 Mar 2024 04:38:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711453103; cv=pass; d=google.com; s=arc-20160816; b=WmU27t6gLF9n5yeUYlmrzfjqoGfgIjjFRg4DICTj+BoCX1GsbfOCaDZqGQU5wUBGCi GXWmVe6KTLnbOoq4qzztvbeYDTuFkVa80jwJzw9HUGMTCb8sjQn6TeduIrfJokrb5TqU BwnUQrODFAvOSk6+4+gs11XX3qHHSSZ6GykTTSUzezoAp28SsRjSml1DOKNKEoqm471u s46VUOoUH0y+IiR5Q0Y5e0mGSpYVSdfm4vIM4r3+N+03IEnFAt5iLT+Rt9dBnFH9P4HT yUAIwA0JC1GSharIQ+bzkfT86uqNqp1U1xAuq5W6HSBzNEgLm42yb4RKu42jLQ6bg90t u3Mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=rwc8sVPmvRsP/YPTCzVwkgtiD9oLxwZuh0GAPFiWBKI=; fh=JzObRRaIkRw1sDzTvdWM4YlhFhU+QRRPHSFxmEiFdYQ=; b=M2XpNW3QhmEtmt5KVdemBTPuWXC2QDmd9RN+HEZyx1kOM8EUn6qg4oM/N7E0nevZGr tQArUIuca6SdKk56tl1wiMw/iSBStwIp44FEP5HU4bTwvOb7iTL2KLhA0/CXnMaQQhZq Vj2CJ6p+QWkfHe3snRss83Z79UdsakJNKM0Xo1tLfshc8M2BxEefYXgDkOXdDgh6Y0Yp XbFLXcC9AUyu/YcRcED1qOCRdxNjdIphX+/JE84mqAzMETUqH3e18pQ5OUR6yPeJ6J3y 959/7Tl9HaJAWuvHLA8T1elbtOWWJ/25sFt8cmlFuJIUKaHQbQQVqGzc1EGior7ZRLc1 B4rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-118903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jt12-20020a05621427ec00b00690aaa3de73si7249329qvb.170.2024.03.26.04.38.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 04:38:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-118903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 594051C3CC57 for ; Tue, 26 Mar 2024 11:38:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9EB3259157; Tue, 26 Mar 2024 11:38:15 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1C68548F5; Tue, 26 Mar 2024 11:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711453095; cv=none; b=SdFPqmgJSYe7eRkzR6u1TmbiUqeS60IFij73YwEAC6upZP+YEwtFzq0Ij285VNEcTSxKnu+6a4HW3Uirts2lTGrr6PxfUQ4IVPwGNqiF5sJ8qVCIACljQMlODdbIbtG8GqmVtoi7x6eh+UCuZuaGnGk1vVTWqNM0pvpu4zLy7eA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711453095; c=relaxed/simple; bh=lw2/MHVdNGxwuR1HESLQBQVsZMg/4d22FzVRjET0DfQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ejmkFc/mwjKBFgucWvTlftJCXh+jbHamiKW06T1uqnaRFsLVm3mRSyaJJ2mb08VGyR3dZjcCY1TLBrmTkhkNKgGI0p0ucDf+uPDCpbRJMefsOUr4MMLmCMJqk9gznpYdM+M/iMfcK0jk5P5irnt8L/yVG1vHTQX4plSDg7sQ0V8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 898932F4; Tue, 26 Mar 2024 04:38:45 -0700 (PDT) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D48963F64C; Tue, 26 Mar 2024 04:38:09 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org Cc: James Clark , Suzuki K Poulose , Mike Leach , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] perf test: Increase buffer size for Coresight basic tests Date: Tue, 26 Mar 2024 11:37:49 +0000 Message-Id: <20240326113749.257250-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit These tests record in a mode that includes kernel trace but look for samples of a userspace process. This makes them sensitive to any kernel compilation options that increase the amount of time spent in the kernel. If the trace buffer is completely filled before userspace is reached then the test will fail. Double the buffer size to fix this. The other tests in the same file aren't sensitive to this for various reasons, for example the iterate devices test filters by userspace trace only. But in order to keep coverage of all the modes, increase the buffer size rather than filtering by userspace for the basic tests. Fixes: d1efa4a0a696 ("perf cs-etm: Add separate decode paths for timeless and per-thread modes") Signed-off-by: James Clark --- tools/perf/tests/shell/test_arm_coresight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/test_arm_coresight.sh b/tools/perf/tests/shell/test_arm_coresight.sh index 65dd85207125..3302ea0b9672 100755 --- a/tools/perf/tests/shell/test_arm_coresight.sh +++ b/tools/perf/tests/shell/test_arm_coresight.sh @@ -188,7 +188,7 @@ arm_cs_etm_snapshot_test() { arm_cs_etm_basic_test() { echo "Recording trace with '$*'" - perf record -o ${perfdata} "$@" -- ls > /dev/null 2>&1 + perf record -o ${perfdata} "$@" -m,8M -- ls > /dev/null 2>&1 perf_script_branch_samples ls && perf_report_branch_samples ls && -- 2.34.1