Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1312970pxb; Thu, 16 Sep 2021 05:00:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8IUYU66nn9YC+DVi2MHmNJgTo72TTRdEbfXPFN7Qi9IQpu+jqAH0DZsDxHdBjV8TK6bQn X-Received: by 2002:a92:ce85:: with SMTP id r5mr3479092ilo.159.1631793638900; Thu, 16 Sep 2021 05:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631793638; cv=none; d=google.com; s=arc-20160816; b=xtRPTI+CxjIk2JH2JWuua18oGuha1s2S7VAwOnRExWwPJdoP/0uRDUQht/ssK+Rm6X NVN/cI8Pcs7bShU9a0YElGIz8UlzKlCS/xXtF9Qmhn3SfMPo7/s9DqWB+eOA8Vp9mYs1 Wxoo8319zmLK6lTP3tDcMSKJHA+ONxUVC4FUQsVDhw1n6Uj58WeQfSCP5OMVQ0ZPyA9f WVLkVC/HWbpPyhYk1A+A5SS50NQpeGpZTIQrS+K+gJZ9z0WR5DDza3ZwmQSX7InI5Gb9 76CiaYkpmKgZgeXtVBGC2nDFcQrz8k7JQ+CqIF2lW8XlYje+rWyrORE0C6y2hwWY4ObN rKxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=yVnYm8U0Vave4AV6/8VUVq42aW96+VGtV3hZmDXyZYg=; b=AAeCpNfaf2kRfwMqWqB8v9UvVGbs0bwooIPjXfAHuco7e9t4fBdCvzxRb6Lhw4B/bM 6ufxOADNlXgL8NsuA9V5Sh0inBJCd2UiQ9LjmdRx2JwDMzo2uR9hMRiu6l9LyNDxJBbp xO81ezPbpmtnlIoxeAgTAV/6Nw0ZkSVZg4cjmZ0oVgL7CD8dxhn4hm/Dsg1QxANCE+gu M06X2BjCg6glBdVyYQRf+/qHhsIyY2AwBEXFPgB2uZsR/SIgOL71T33Msb/XVW90yOpM TSNyJCT3TMRDcYyPwzvtcA/7OcJTKfKmXm7x56t6YKTqtxygT6x4UELJksxeZ8Ycec23 WXyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=G1yqf5uJ; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si2969908jaj.63.2021.09.16.05.00.27; Thu, 16 Sep 2021 05:00:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=G1yqf5uJ; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238872AbhIPMA6 (ORCPT + 99 others); Thu, 16 Sep 2021 08:00:58 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47546 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238657AbhIPMAu (ORCPT ); Thu, 16 Sep 2021 08:00:50 -0400 Date: Thu, 16 Sep 2021 11:59:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1631793568; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yVnYm8U0Vave4AV6/8VUVq42aW96+VGtV3hZmDXyZYg=; b=G1yqf5uJV3qRPoZwxWxErIN2Rb2RqZ6QSAul9FiTa9WSiosjV/763Syf7WZn9szoBJlzDv 2G6t/+sAio0+s7ofdke+HO0RRo94dLabH7EjEJ0+BkwA5mUmjtfnDPRWa7R/Jo8VyzQa+O +BRjEXzDRCoPIhpRTwqlbxzY4w5sGoDSI1VWUKVswdwkjkFTpGK+1hoTp3qNUAmiU80GuM p4ZRGXWZFA5k0IFCB0RmtdAj3G3DBThT6CjXkZlnhj8BsGtZJ9A64FGYzJLP7xbPU86QhS ywYxh6ZUqjoRKiOBXW/RsEClkyiSRXhDqPaeuQ2lMRj+mE9oJYU6MeoQ2LEH8g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1631793568; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yVnYm8U0Vave4AV6/8VUVq42aW96+VGtV3hZmDXyZYg=; b=Uyvt3fmkCuZ7PEQyBvQG57P4vnOPDw4YXBBGwf1q5R/XIUPmXcxQSdHVsRS3JhCuRTY91a ztkdFa4shTPe4XAQ== From: "tip-bot2 for Yafang Shao" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/dl: Support sched_stat_runtime tracepoint for deadline sched class Cc: Yafang Shao , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210905143547.4668-8-laoar.shao@gmail.com> References: <20210905143547.4668-8-laoar.shao@gmail.com> MIME-Version: 1.0 Message-ID: <163179356772.25758.9198635373218689234.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: db4570a26807a7a955a5dc58e0bea3fc2b1d7c23 Gitweb: https://git.kernel.org/tip/db4570a26807a7a955a5dc58e0bea3fc2b1d7c23 Author: Yafang Shao AuthorDate: Sun, 05 Sep 2021 14:35:46 Committer: Peter Zijlstra CommitterDate: Wed, 15 Sep 2021 17:49:00 +02:00 sched/dl: Support sched_stat_runtime tracepoint for deadline sched class The runtime of a DL task has already been there, so we only need to add a tracepoint. One difference between fair task and DL task is that there is no vruntime in dl task. To reuse the sched_stat_runtime tracepoint, '0' is passed as vruntime for DL task. The output of this tracepoint for DL task as follows, top-36462 [047] d.h. 6083.452103: sched_stat_runtime: comm=top pid=36462 runtime=409898 [ns] vruntime=0 [ns] Signed-off-by: Yafang Shao Signed-off-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20210905143547.4668-8-laoar.shao@gmail.com --- kernel/sched/deadline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 51dd309..73fb33e 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -1268,6 +1268,8 @@ static void update_curr_dl(struct rq *rq) schedstat_set(curr->stats.exec_max, max(curr->stats.exec_max, delta_exec)); + trace_sched_stat_runtime(curr, delta_exec, 0); + curr->se.sum_exec_runtime += delta_exec; account_group_exec_runtime(curr, delta_exec);