From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 985B4410D36 for ; Tue, 2 Jun 2026 14:27:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780410457; cv=none; b=GCDQNyMP3aSF8aBDClGi9CjfaCxruRFyN6eJaWT316Oxj6TfxAoW6OLk4AleZqVOjEiJszn8worN3jUJijKT77Wate/59XU6xzedMPJvwo0JKFOqeAK5RxK2n7RKzGfqfy1dXMIfnCRtLvq+bKrSBtxVrjlxYDVDuvTMcUIQmNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780410457; c=relaxed/simple; bh=/bo6v3kFcoolHnOpj+EbZhoQzm7A8RsOcpjrkQcAFBE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Shj2CJKoMc5n3MZREwpdwSHg/3PvQeTu+yEDh+Rv0GNbWTLPGxhxbe5hELXisI88bdAPn5SI5V0wrJO3wfF81IyKV0+cDCqVgZlBscfITHyFaL5ahwsqjwEH/WlLm86vIcUpPN6uQNUuINzLFVXA2+y3LfOJXlWNlXaFxZfNMGs= 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=JPOQsZQs; arc=none smtp.client-ip=209.85.128.53 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="JPOQsZQs" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-490a7876f8cso25823425e9.3 for ; Tue, 02 Jun 2026 07:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1780410454; x=1781015254; 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=3o0yW6uQ1LnJTQVmIzRpXA5Z0rqK8P+8rneFQb3y1o4=; b=JPOQsZQsfIUXYbQPn89gHhysBzQ2N5OF+SvDTucZePHwbPOyvy3LqhPX7KPeM5wv2Q e1jEmvqAzFgnOBBy5qEbB+xKehXqr9udaQITBmZhUKMQTmWARBTxhxXybMNsn0bAo/MX Cql618RLjOLQHGOn+LLcBCq5mZItwPKhEDNGMaU64zQFYI0d0z6qFETUCRfn6QKmUbLr 3MEuB6BaMKTBkrcWdfn+o/m8i581dlcbwR46nnO0VB4TaGEAoH5C0yh6hPXIuYeLdAr4 1W8p5tq/DIgG8VxjG07ywWziywQFLpEgJf2lq02Nbr3QPqhOgBeosEW+AMoMRX7Ixwe1 W7cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780410454; x=1781015254; 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=3o0yW6uQ1LnJTQVmIzRpXA5Z0rqK8P+8rneFQb3y1o4=; b=Darx5qUQ8v7mY8sqK3fJOT63S4n+Mt+esn59+d4WlpKxGrgL4yimHmRC8laBWn80m0 O9Yrbj2RD+l2SRLC2WHY5454clYBBhveq1X1g5XJUY1W+UGtwjYtuc/AoNqXjyt1aqeZ fLVQlXFB09PY6onyZoNvXX8KSOzIXYMo7LeIkTyJS+GRx9QaUw3OPpzv6891r0e4v7+r xC+sdeuYOWmRUFX2DZkA57TfU+7Ra99ERFfTNj7goHV6MjHIunxuxZbzvDJwzqgIN3dx wkoA7ZQ1QVugzJId7DlS2yPXEal7tDrvX7XoNoJHyTRMU2imDjE2sMJ5nAYEVwFpVnj4 eVIA== X-Forwarded-Encrypted: i=1; AFNElJ+5+oBiDD8x2isCtmREqOds8dgbHH2SKHmnKqhbeP/hDogdr8b1MRi4ZVL3Ch1NO1yYJ1LikyPYMY4LF+M=@vger.kernel.org X-Gm-Message-State: AOJu0YxhAVufZW/vtGEOF9QoV6Zqr4VG+OUwKw+T9MYiXOwgCHJvV0vJ zk4lQZ/sY/Dziw7Ht4h2fPke8oCsq2GzNbgKnMcUCZa9OzXY0dHChvYKjPbCa+uzXmk= X-Gm-Gg: Acq92OH+UOw6BF4j2sJy0E+Yb8vkiBismJdFQGRXEF5XQWVw0zow170Rhr8riHSRPd7 fRdk0IsUlUr2K/3ontnUnpJqMVkyQ8M2xzthqKec7+m6psS5GODEDlb8AmqEXxKy6NI2hIDs+c+ 4dqWdHTODn50FVL3vjZn/npVinNtXhnApZNy+nSyao3OSQVn+LwE1EmxCDZwe6695mGRmM8bkLt cCb4T32781VKN3irnvR467ovf+WRxoTb3fLhUJ6AH/4JCieV+uum9jv0Batje8sf8dI7ZAAkS3J UTABqTc0mj55/u6g+8XaM+LN1kM8G27a5rImuEwjVVFfTayh/BSwUkEVS42Wq/TeizS4wvN9777 rkTUSA2QTFE0kMY2qyKqKCQyxjI4HjIeXT37ZpfowAZZixzgYOY+ib5U18JW5Df0F6tI1h/TvRU kR/uat3re01FP1y9jHTqcgcvxaheC+K5lguvh4ubum4bs= X-Received: by 2002:a05:600c:2242:b0:490:5321:2466 with SMTP id 5b1f17b1804b1-490a2941ea3mr195165935e9.20.1780410454099; Tue, 02 Jun 2026 07:27:34 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490b0e18e1csm66771965e9.4.2026.06.02.07.27.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 07:27:33 -0700 (PDT) From: James Clark Date: Tue, 02 Jun 2026 15:26:55 +0100 Subject: [PATCH v2 13/18] 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: <20260602-james-cs-context-tracking-fix-v2-13-85b5ce6f55c6@linaro.org> References: <20260602-james-cs-context-tracking-fix-v2-0-85b5ce6f55c6@linaro.org> In-Reply-To: <20260602-james-cs-context-tracking-fix-v2-0-85b5ce6f55c6@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. 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