Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp527505lqo; Fri, 10 May 2024 07:11:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYBeoIFiJZQswhdLzd6rhRZzPZgkU9sxuRoesJa74wQVD24bygSe6Ip+CVOkNKVClxWwA0Osii16h03ig0JXWnC81KypbHmZuCVUXE3Q== X-Google-Smtp-Source: AGHT+IFC5AEeTRgeeXqZ2wDUwjyLIztAfHatbsGC2d2/o/tPmJnQqnkOXeXNw6eVpe5VUYpml9H3 X-Received: by 2002:a17:907:25c1:b0:a59:9eee:b1cb with SMTP id a640c23a62f3a-a5a2d30be86mr289285966b.35.1715350318422; Fri, 10 May 2024 07:11:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715350318; cv=pass; d=google.com; s=arc-20160816; b=SlluJntBjDbDCUqriJU0olLJM/M61r0HxlNz9I2Y6XiI6S7cVxS/MR5aFM8xu86Tlk ZEr8FU0xrsjgqVPCjD+Ed8EgvZVdp13bVM80whD9xa48+qvAzXl1amk+dVpsd5isH51q 1Yg0smRyQi6KYUglkqII1N6bFle0ZmUS8UCJSaLnTAgTTHLCJKNlP761O2/JRS7xm392 6WXJeLS8uXDU4E9MQNWWu2Ke/5Ykj3HetbjzBujLwmOwgOafYJAg4lECoRt+SLyo6XNh cVAMfs4u1lCHeUkMx+Yj7ZFLBPOwn6XgVMH2rchcFKil4r8ZU4KDTZ0PgPSOLUf+0ik5 GQ7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kK3xvZiqHNym2xEbq8kUCQ/Og85HcdtE8hIY8Cc+kEk=; fh=8mjkC9se1iN47IrrF4bQW3Y65kH1KuElxr5cep8N84c=; b=rSzA7JbrMmoRkeQdkFVMRYgS2RxWh7+Na0Y5J8XES/fA8EqQq737/dBHwSafXD3VGx iJPRyJUF3p8XAaLxwsk0jGim3EDEQgeG1ZRcKHdMfoWED58mJKRmTY/WVnp8/l5Vuuff 77rLRrcreP4BAaRiXFY23cDBcHUzSJlOKCaUN372GUIHvoGJlKnVKagOpU8G95xjkOWn O7aDax/EpPXu2yFOlwTizUhVDzC1oiT1KImeI/SUSIPPfRFmeCEH2e7gbKKPmvDg5w8w kcxqgXmWiuMlOnYSK/RCOgF5GPwnVyA6gcSRZPwxkvTg2UzM8CNAGSNDH57lFzVZ2rrd iIaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBM92HgL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17c2d0dfsi194617966b.1053.2024.05.10.07.11.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 07:11:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175870-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rBM92HgL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 20E1D1F2428A for ; Fri, 10 May 2024 14:11:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F283A16E890; Fri, 10 May 2024 14:11:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rBM92HgL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2518D14F128; Fri, 10 May 2024 14:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350300; cv=none; b=Zp05bDs/ZH+tHvDBk8RnVjSIVU2J+JiC+TXJKQm7V/+Q3UnLfXRtwL5pqpL5W16f22BltjAmiD9r0Qs+qIRvAfeCXR7siLo7nWse+wTGJWoY8ToENsumkad5kG3oAkm41h1gshS41xNTxwHb7xT9eCkA27woZk3mwg3jfj4lGF0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715350300; c=relaxed/simple; bh=q7yd+LxWVrFgZb4nADozbMwcenuTYYFwIYSo1N9rU/c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qsyVP40BWoQclnHSXBege01N9p4T3yIwZuDJt6G0BlI6IrVyNg91JyY1rN7JH57jD7yeXWl+UphlikDp9+lHmaIHBe5meXuJV9jWcIQghrjQAEmdeRP9gKa7FnZBRr9gJ6vJlxs13lYc0cThPr1QkORz8ElOAc+j96PzwIuN8xk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rBM92HgL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AEE8C113CC; Fri, 10 May 2024 14:11:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715350299; bh=q7yd+LxWVrFgZb4nADozbMwcenuTYYFwIYSo1N9rU/c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rBM92HgLZb8A2EIOPr33caZV87whBXqDUfRwTn+gP5Ujcq37ym5vd9UqTfvaAwf6W 0sazTkmZKe2dxb9hKsf5hatPuKxuUe/zXnXGWHBsyv7fCazmtXT4uy402IWu/8xlM9 eTtNl0L4TCLHrLZMrnI3zCJbTIeDjYReDZ7kNwC08eDpptCOTKrbGrLD2Jl+pjfXu9 JPqWPBE8qz3DFibXSzdUSqV6mwdKNtArF874ycbpdky33Xti5qBWkmftKI5aqN8RVH igZQL7q46FFeyOIAc3WN8SvH9jEw1nPjYvaWDhW5R8Xv9Y9LA/lX/RlgcDxbZ1qq1l oar+U1u8gv4BA== Date: Fri, 10 May 2024 11:11:36 -0300 From: Arnaldo Carvalho de Melo To: Aditya Gupta Cc: Madadi Vineeth Reddy , peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf sched: Rename switches to count and add usage description, options for latency Message-ID: References: <20240328090005.8321-1-vineethr@linux.ibm.com> <3buy7zyybshlphybersfof2acjcbrpxllrcvobizwyse4356nd@7sp74wyxbbfc> 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=us-ascii Content-Disposition: inline In-Reply-To: <3buy7zyybshlphybersfof2acjcbrpxllrcvobizwyse4356nd@7sp74wyxbbfc> On Thu, May 09, 2024 at 02:49:56PM +0530, Aditya Gupta wrote: > Hello vineeth, > > On Thu, Mar 28, 2024 at 02:30:05PM +0530, Madadi Vineeth Reddy wrote: > > Rename 'Switches' to 'Count' and document metrics shown for perf > > sched latency output. Also add options possible with perf sched > > latency. > > > > Initially, after seeing the output of 'perf sched latency', the term > > 'Switches' seemed like it's the number of context switches-in for a > > particular task, but upon going through the code, it was observed that > > it's actually keeping track of number of times a delay was calculated so > > that it is used in calculation of the average delay. > > > > Actually, the switches here is a subset of number of context switches-in > > because there are some cases where the count is not incremented in > > switch-in handler 'add_sched_in_event'. For example when a task is > > switched-in while it's state is not ready to run(!= THREAD_WAIT_CPU). > > > > commit d9340c1db3f5 ("perf sched: Display time in milliseconds, reorganize > > output") changed it from the original count to switches. > > > > So, renamed switches to count to make things a bit more clearer and > > added the metrics description of latency in the document. > > > > Signed-off-by: Madadi Vineeth Reddy > > Makes sense to me. 'Switches' seems to be context switches, so it might > be better kept as 'Count' only. > > Hence, > > Reviewed-by: Aditya Gupta Thanks, applied to perf-tools-next, - Arnaldo - Arnaldo