Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp196974rdb; Thu, 21 Dec 2023 06:52:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7q1hzePcAgJbP/mhqG3A5lPG/IGdjrkkvJGQxH2jvyr56gQBN4TjacLK0ZnUyTiQHp3xg X-Received: by 2002:a17:902:db12:b0:1d3:efef:d84f with SMTP id m18-20020a170902db1200b001d3efefd84fmr2803204plx.48.1703170345674; Thu, 21 Dec 2023 06:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703170345; cv=none; d=google.com; s=arc-20160816; b=izaepBzHS37olT0IaobXTPj3yTQOB/ZtlM8uqJpCCiiA91xNVjAR8h8ADsGf5ywZKg UzwZdsjZsPpaGDoD919oZ76r+98DSSiccaunI2IKHAAKJm0KZD9mG+QjeXL0a6lx2Y0J UYKeGwOKuWyXdWFGURkPku99h4mPzTSm42N90Kwivaqg8uhaWbNVvSJ+ggyo4C9cIss6 sxMyPba+TCs5KbpY3ipAkoaBwzP8dw0OSHLB1Hi5Ii5d7WJ1MQolw+g09N/suB051EtE ULiiMVqbO1CyLhib8+EgF2LvtLqd/Nua/geNuVtOj7jpEtiPaWyNN29B34PCsjAzM4qW Br4g== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7E0l/L8nVuavVnXr+aRtwhRXPQi7+D2p+B85CF2u3hk=; fh=ABWBaMehZP2Os1+EK5Q829Rni/ThTUOddiItMakPv7A=; b=cMy6SrhcpjPtTaTmZawFFeizMg3HWrSS87nCv8n1EXgFnM9IKQj8f3Cu4XXii30CtK wDS5Ppib9YwsIGgKywjQcsK8BNO+chKEDgUGMuTwQuq8/8DQX8fEUNhep1ZKnrVARyvc 7qd3LTetDwY83DxMZ5vXmudrl+x2hOCx8GFXU+KJOiL3I61x/XJyXl1gqbOizJrCz+mG 4Vmj94+QgkXcMdcZ+uEsBOP7nuPC7TUDggRaeUK6h2CcxGu328p8ug1GBmH3iQ002jhX 7LatXCiKXsoduD7DcArwmLNqG3u8TDLLq0Pog81Ycj9Wg+jAkReloX1aiI++vlbWvS2B gpxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Rf3VqILF; spf=pass (google.com: domain of linux-kernel+bounces-8591-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u13-20020a17090341cd00b001d3628f8964si1702899ple.56.2023.12.21.06.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 06:52:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8591-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Rf3VqILF; spf=pass (google.com: domain of linux-kernel+bounces-8591-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8591-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.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 37D1128761E for ; Thu, 21 Dec 2023 14:52:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C55B360A5; Thu, 21 Dec 2023 14:52:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Rf3VqILF" X-Original-To: linux-kernel@vger.kernel.org Received: from m15.mail.163.com (m15.mail.163.com [45.254.50.220]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BD4F3608D for ; Thu, 21 Dec 2023 14:52:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=7E0l/ L8nVuavVnXr+aRtwhRXPQi7+D2p+B85CF2u3hk=; b=Rf3VqILFBG8MpYgafdTOu hLCuKZ37nfZwPpTtCwCgsn8epjUGPBf5NMTtEyNfCSmjcRFkmDzwxlJL86HS3CYH J8xjNAOi8WBu8Hi252s6jJ8zvPbObaflvokwxNnyDfdCLxmwfybbAG3xbVQY3d4b r+OCBlKostKb5fqFIxJ7Yw= Received: from localhost.localdomain (unknown [223.74.158.200]) by zwqz-smtp-mta-g1-2 (Coremail) with SMTP id _____wDnT1jMUIRlefexBw--.44752S2; Thu, 21 Dec 2023 22:50:55 +0800 (CST) From: Junwen Wu To: laoar.shao@gmail.com Cc: bristot@redhat.com, bsegall@google.com, dietmar.eggemann@arm.com, juri.lelli@redhat.com, linux-kernel@vger.kernel.org, mgorman@suse.de, mingo@redhat.com, peterz@infradead.org, rostedt@goodmis.org, vincent.guittot@linaro.org, vschneid@redhat.com, wudaemon@163.com Subject: Re: [PATCH v1] sched/rt: Fix rt task's sched latency statistics error in sched_stat_wait trace_point Date: Thu, 21 Dec 2023 14:50:51 +0000 Message-Id: <20231221145051.852562-1-wudaemon@163.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wDnT1jMUIRlefexBw--.44752S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjfUn189UUUUU X-CM-SenderInfo: 5zxgtvxprqqiywtou0bp/1tbisBRNbWV4G7fD8gAAsE >Ah, you are right. > >> I this we can use if (p && p != rq->curr) /*Mark the end of the wait period if dequeueing task*/ > >Agreed. > >> because schedstats is not supported for rt group,we only need to update rt_se that is realy task. >> -- >> Best regards >> ok, I send PATCH v2 later -- Best regards