Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp266731lqn; Fri, 12 Apr 2024 00:07:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/J5bCSgdjRIrcDGpZwPJQ5grnaqp9CZ076a7AOhLK0fnViMMJ9viiBA/3+sD7TC3+qZSZz4kMtNmG+XlaoJ622IMj4+xsJpES+QVqJQ== X-Google-Smtp-Source: AGHT+IEId+dqM4szTXXKvE1yT24viA28lC9ZZ91HCiovJRBcv3OOPPrrITmF2Q/mSCUqaxKV+S8l X-Received: by 2002:a50:c350:0:b0:56e:df1:53e2 with SMTP id q16-20020a50c350000000b0056e0df153e2mr1317541edb.22.1712905643434; Fri, 12 Apr 2024 00:07:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712905643; cv=pass; d=google.com; s=arc-20160816; b=Az1npdHGp/Kfi/npP9IRshebcP0LfKC2y2sDzpyEbmgPDrWjxsMnUMmDQN+VnHYszn HpyVGFyeClsui/Tl8OiWLGx9iwaucAAJ5Pg8T/ucsXZxOXEz5Z3hSc0eqp5A3Gt3Hg02 2eM3kfn1uSZDnEyg7wkfkIQtUlwZkHe2DWr6FpurnTqCM4muRv9z5bK1O04rk/oS6WmX ycaQnwp4nJLGWnJpBO0cfYGZPZ53us8YmEvnMovWFIuadOw0EtuEF0ZRjuqeQ+FHUBLz UFsLXTqVyPi3KA1sXCOmv/H/M5dWw9LUTNEJwZeWPmzSlOOpOopXD72+mz8tRGfM92ca jcXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=Jfk/kSrf2UgK6u+RucMRC0he8zPgMhq/koPEptCbHpo=; fh=KCXV4q+skpC8LwBKYHS5Ab6203X2wiRFTYSixkDYLhI=; b=c1YaX7ccrZ5qN8jyGXuyFBDOJJBQMb/N0T+HV1pVtBHQK8Kz36ZouzC+xiup6tRlY8 bNIqR8uNBExdVAWfT+9SZwLQT+2NBnjGcsC2/AhwR5rrSl2Cd1vTZecEnayZjEOrXqXb SuxQPAJO/6Ysct2sqxCBt9/VSiSEvY78MQ8wYdaSP3xnmOCL9TQPGiPNP5nMpmGMeMjz VbWVUqy3E2zUSyT65iIw50zKWf+rxemR0LMkXGxN5hh439DCD1oi+JM7LjSbbT001eNJ NEn/sgXo8gNoVm0mRZtvt7rVJ/Kp9aO1ars4ffT569bmJmoAkMf+D4x2bjfE0Cz5fejR eVvQ==; 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-142105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142105-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id u23-20020a50c057000000b0056e0e0be157si1404009edd.223.2024.04.12.00.07.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 00:07:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; 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-142105-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142105-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2D9241F21FE0 for ; Fri, 12 Apr 2024 07:07:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 941BB51C28; Fri, 12 Apr 2024 07:04:25 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B151346426; Fri, 12 Apr 2024 07:04:21 +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=1712905465; cv=none; b=ZJrYrn9q8eRtbdMEF1rpq9krfPNfgRC5ypoB1TIZe8RRCKEs711N8PrVv001E42F65iC+WfaepSOeJxxXwMYSFqLL1rEMeNmfsxpYY4wv6Tu+GRI6JDffREuWSM1sipqqnKB/p0PFq2j0dcLYpGfqr9P9FavbdO6c/K8D2B0J38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712905465; c=relaxed/simple; bh=NPk6rgF1oswR1NiTdymp30Tk9veSCrq0VLLrUxJTn2Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aserABi8FgURGrvNVooGfcNHwghciR4BYBGgvN68ew1w6s6v5rOFvQBAv71rsY/KrMt2kO/fOxEMl271rsvRhpTMAwSUtLI1c+PF3+u02HQxf/eU2pDfGVI2Pi5VnDH9RG5Ho8nargOdQZO/1J6HqFARapgfqyVNUb4n2l8up88= 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 E534B339; Fri, 12 Apr 2024 00:04:49 -0700 (PDT) Received: from [10.162.42.6] (a077893.blr.arm.com [10.162.42.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E9CF63F6C4; Fri, 12 Apr 2024 00:04:15 -0700 (PDT) Message-ID: <5a4023aa-af9b-48d2-84f3-a0b9b30dc54e@arm.com> Date: Fri, 12 Apr 2024 12:34:12 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] perf test: Increase buffer size for Coresight basic tests Content-Language: en-US To: James Clark , linux-perf-users@vger.kernel.org Cc: 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 References: <20240326113749.257250-1-james.clark@arm.com> From: Anshuman Khandual In-Reply-To: <20240326113749.257250-1-james.clark@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/26/24 17:07, James Clark wrote: > 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. This is a valid concern to address, but just wondering how did we arrive at the conclusion that doubling the buffer size i.e making that 8M will solve the problem positively for vast number of kerne build scenarios ? > > 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 &&