Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1021769lqo; Thu, 9 May 2024 02:20:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhUIzrIu7nqLHdOrKcehvM9qLaOMpc5O3V8k2CrUIxBQ/wMfmlhM2JMj2CG7NwZLUSL057zOhme1lSMj8AXcFdULZDTLi1lWoUtO46qQ== X-Google-Smtp-Source: AGHT+IGyrh82KPONr0qfJCcTAb6Rf5atsY7VxtgA9mXB0HEQnfGgjHE+HWm1Sm0xyVEPlaoUWDmG X-Received: by 2002:a17:902:e551:b0:1eb:b50e:3577 with SMTP id d9443c01a7336-1eeb0992f00mr56624435ad.56.1715246434915; Thu, 09 May 2024 02:20:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715246434; cv=pass; d=google.com; s=arc-20160816; b=hUIFZPyxo7xXV7sZEdJOvPxD+jEw9XJB8HDTcMZujZkNCvST18zg0jQDz7RmxU1UCe HfUan+kJeTZc4pg+5z92323AVQixX361J2GpQ3AMSWMyuKQQkU1NJLidNzgbfxSMZHnV 9c1mpVQc4RsZrIQhB6hZEqtwl6vqK2Sum8WjBh0TRvR1PZrR4Clug/iRHQg+u+D13ttI I6NlboukczpjOdLKu65kilABdbvkQo7IAgqcmbg6g/TD6CfQiFVF0oOW1BaB0eYTLgSt zEhlOGBqj+8RONV2Ec/UVS6qRdhB8m2oxlbXgUow/IcHGpmKinA4KS4TR8WtzlRl+9xw +pFw== 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=6ZQgaWALZN0CtOTRXnpZfUTg6hqELQ8osXjMUy+R0QM=; fh=pQ6k9DvfxfJ59qjH5KZHeh05n1npma2XPluOWrOwfTM=; b=nKD5Z89wtSHsNOfBojmjo6EdSpMvDScQZhXmPcEuS5fOWvcrVYtunhURgWb6LaoNwq NhYKriBD1RIXCM/6vz1NZUSSW6BRS8QCqhvBQjfDRMDjIlPgZqBBeM1BuUExlmCaPAuM Wd9MZWNDNRFbBZjhmcpy1hM8OPZG7yFqh0Bi0OpDKujqxVjylV5iatOQWaztzrKIO2+c RDF/kMWhtRjFg72SZ8DxK4QaNZIW/W4QjhO6+qqCZFY1InaRmrW87csK+Gh9nZHNow8b kCaJs8YbSKfuuOosevuykk6yv7Py3C1gABrF75QhmSk4GaZopjBdg1ixJqGqCIM9ajUi J9Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="YphcUNl/"; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-174344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bf328a4si10791595ad.255.2024.05.09.02.20.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 02:20:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="YphcUNl/"; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-174344-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 798132840D7 for ; Thu, 9 May 2024 09:20:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9993314A618; Thu, 9 May 2024 09:20:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="YphcUNl/" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 860CD14A4F5; Thu, 9 May 2024 09:20:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715246426; cv=none; b=eBS+izAeQCHGigXUuMFP51N8lSF417Vl5UsL8GFsls9NCpc+ZgP0JMKgQ5D9drZ4k7/T46syzwsscpHhq9CFSgJyVQxAx9k3QZ+7Nfy/iUbCFRuoXY6bsBDp8UlKPwExVtXSbLovrZJdZsdi3Vn5QG+NZXnUFOKsFOF/Bw6xWJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715246426; c=relaxed/simple; bh=5rpSr7Ybn4FuugiTBduCab0kHB71LSTX+pO9YxOqoTc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kvIWoroALlftPg3oJrCOPUdUog5xPOyMFo3Du8OlZRn2BrkxZv3KrxIHBU0Gk1Hthah/HJA74yqzFUDTRc4hb89vuhrfepWTk7MXAuCPZfafoJS08zJ9wI5hpmXsWaYnJgXJL6dHTAltG+0QZd2wQCi6qIZnO7c6lR5BLCKdb0Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=YphcUNl/; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44993kQI010776; Thu, 9 May 2024 09:20:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=6ZQgaWALZN0CtOTRXnpZfUTg6hqELQ8osXjMUy+R0QM=; b=YphcUNl/msyenbtnuL8giUj1/AJOWu5KMlsOSoCm37bWR78g3ITIsmwKX4IIMHM2tPgc QdpUD0klmDyN03EhDavxmCVNp9XxcKTmUMvgUJ4oFKr6IR9e5uwtyTm+t5S9OAdfQLIr FNWZCUBNrjXn217wUP6g+o/JhU7GQx/QhGX+iJZMEs2QBge5Y2bXIuT+7BfPrrNYS8Hp EFN7+wZYjqvxLESOogRHZoQWEjIhpcuG0wMWwDXNLR7/hBKQCohC2i4XX6ffDStAIO8R EdE3XPQyFgZIWZU4R2XyGJzsiMK6tK+4DGoRVkSMaVHCJSd0CBQlAk0HPbL78gHtZrCH vQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y0ugp80ys-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 May 2024 09:20:09 +0000 Received: from m0353722.ppops.net (m0353722.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 4499HUMf030711; Thu, 9 May 2024 09:20:09 GMT Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y0ugp80yn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 May 2024 09:20:09 +0000 Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4498S4ED009823; Thu, 9 May 2024 09:20:08 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 3xyshusy15-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 May 2024 09:20:08 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4499K25E25428640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 9 May 2024 09:20:04 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B1E7A20040; Thu, 9 May 2024 09:20:02 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9EFEF2004E; Thu, 9 May 2024 09:19:59 +0000 (GMT) Received: from li-3c92a0cc-27cf-11b2-a85c-b804d9ca68fa.ibm.com (unknown [9.109.199.72]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTPS; Thu, 9 May 2024 09:19:59 +0000 (GMT) Date: Thu, 9 May 2024 14:49:56 +0530 From: Aditya Gupta To: Madadi Vineeth Reddy Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, 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: <3buy7zyybshlphybersfof2acjcbrpxllrcvobizwyse4356nd@7sp74wyxbbfc> References: <20240328090005.8321-1-vineethr@linux.ibm.com> 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: <20240328090005.8321-1-vineethr@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 3O8cVxwZCUAFIwm17-iVxCBqhTHU7hNF X-Proofpoint-ORIG-GUID: lDPzNrU9-GgNAV8nBMSv-DVGGoG2whAT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-09_04,2024-05-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 phishscore=0 bulkscore=0 spamscore=0 priorityscore=1501 clxscore=1011 lowpriorityscore=0 impostorscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405090059 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, Aditya Gupta