Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1205460imj; Thu, 14 Feb 2019 02:59:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IaOVyup/h5hwiWAjLhSafwx3a/WldwPt3ykYphbm2oG0DMdTpCcawFhCytbWLBV5+XzCYjp X-Received: by 2002:a62:520b:: with SMTP id g11mr3411235pfb.53.1550141962649; Thu, 14 Feb 2019 02:59:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550141962; cv=none; d=google.com; s=arc-20160816; b=MvTuHH7i8fESse7yPaFTcBwGA6bxaFX0wXyC7t1fpVVmhRBrAljBYdF10GjdDe3VvJ UbuplwP6RbnzgRRdT8STkRi6sUGD6EwaalmOluKP2ejljr50En5dQIlL0Cq70FwZ1rAC r03celjq29fvoBDPjAjsWrFZnlz4MQItJY8erZ30S8YuHDyq99+gZ6Extb9ZurCjZ3Co 6mUSpdmBnJcF8bPt2Q8laONff4M8Vulpyla5OQ7N5GQfnzGHuI+qlYGohflIssoVstNw +8AqZ1LNGR2y/lJszaRhvFkGAuIYisodDSGLoQavcNBE+eqAHrVhsNGDUVniZZbSzuqx s44Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=0HO1PQiQH2xvFEkmXnfJToRvG1KtTmR163f5bbuWPHE=; b=RSs7dd7K4nt35AkzcyCPN25HDzy80rhxEPZXSAOLOp5k3ngUzSUA3eBYYVXGd415kD 8QNq77sfbMuNytIITjOMawC2ObHL5+sGqEOn9tNUuiQ/uL0s2wk//K24lhSSDWvaTNF/ T34Ayn3HAqYR/2/oy3tr/dZrb7BIlzh1UeiPiHMsDdLd/FvH5x+UKe1dGu4BFGz/G0DO /qJE4MdxPcXPtLP1SY/5y+k/uXMx8KgnRfrsROLxB2onFUx8TJVNkGnR71N2Snft3YJ7 cUTpRlzfwUJ3gEMCFLuybVxmgEhIAk79XyT82sao+kSxbB5VgSEUA8kezCP01Ilet0pe tVTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Cpnw+G4S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22si2103071pgk.46.2019.02.14.02.59.06; Thu, 14 Feb 2019 02:59:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Cpnw+G4S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389405AbfBNE6E (ORCPT + 99 others); Wed, 13 Feb 2019 23:58:04 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:35121 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727874AbfBNE6D (ORCPT ); Wed, 13 Feb 2019 23:58:03 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20190214045800epoutp040e7de015ffa9230ba14da1e7904590cc~DIi6bsnPO0232002320epoutp04q for ; Thu, 14 Feb 2019 04:58:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20190214045800epoutp040e7de015ffa9230ba14da1e7904590cc~DIi6bsnPO0232002320epoutp04q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550120280; bh=0HO1PQiQH2xvFEkmXnfJToRvG1KtTmR163f5bbuWPHE=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Cpnw+G4SUQ1JfgPKWjdbpjFgxkMZdeiJtxz6IYpK5mG+IqhUET+ufk4juqSOjlwSw xBDm6CfpnrYeJugfGtLJK7eFqBidmQijeSe5mnhpqCNpziDnAnL9hk2pWK5MiPwhve 5QSkJLVqMaJrENLOAF4nFiaQtN/V85E+OmJRcF4E= Received: from epsmges1p4.samsung.com (unknown [182.195.40.157]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20190214045757epcas1p1d207c84aed610374a1abc1532da73eca~DIi4Dmd981146411464epcas1p1A; Thu, 14 Feb 2019 04:57:57 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 93.1D.04288.555F46C5; Thu, 14 Feb 2019 13:57:57 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190214045757epcas1p24c4ff27abfa240601455e419050be63f~DIi3sLm-C2040820408epcas1p2I; Thu, 14 Feb 2019 04:57:57 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190214045757epsmtrp2eda7c16e4e38fb81d564fa37888f5719~DIi3qpSPj1405014050epsmtrp2q; Thu, 14 Feb 2019 04:57:57 +0000 (GMT) X-AuditID: b6c32a38-c0fff700000010c0-af-5c64f555fed8 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id A5.40.03971.555F46C5; Thu, 14 Feb 2019 13:57:57 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190214045755epsmtip27d526fed0cdd5b29b1d71e1f1f3b91a0~DIi1shgeV0843108431epsmtip2j; Thu, 14 Feb 2019 04:57:55 +0000 (GMT) Subject: Re: [PATCH v3 7/7] drivers: devfreq: add tracing for scheduling work To: Lukasz Luba , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: b.zolnierkie@samsung.com, myungjoo.ham@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, joel@joelfernandes.org, chris.diamand@arm.com, mka@chromium.org, rostedt@goodmis.org, mingo@redhat.com From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <971cee25-cb3c-97b0-087e-97551dc066ad@samsung.com> Date: Thu, 14 Feb 2019 13:57:54 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1550010238-24002-8-git-send-email-l.luba@partner.samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIJsWRmVeSWpSXmKPExsWy7bCmrm7o15QYg+l9OhYbZ6xntZj26TKL xbIGVYuzTW/YLW41yFhc3jWHzeJz7xFGi7VH7rJbXDqwgMni84bHjBa3G1ewWezreMBkcfhN O6sDr8eaeWsYPWY3XGTxaNl3i91j4aevrB4H3+1h8ni/7yqbR9+WVYwenzfJBXBEZdtkpCam pBYppOYl56dk5qXbKnkHxzvHm5oZGOoaWlqYKynkJeam2iq5+AToumXmAF2spFCWmFMKFApI LC5W0rezKcovLUlVyMgvLrFVSi1IySmwLNArTswtLs1L10vOz7UyNDAwMgUqTMjOOHB8NXPB Gb6KE3+qGxhfcncxcnJICJhILJyxjK2LkYtDSGAHo8S1/ptQzidGiUN/7rJDON8YJV6uucQI 03Lw43JGiMReRone35tZIJz3jBLLN39iAakSFvCXODxrOhOILSKQJvG2/S4TSBGzwEdG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qz8egzXzCthJ7H6+GKyeRUBVYuH/q2ALRAUi JD4+3ccEUSMocXLmExYQm1PAW+LpnYlgNcwC6hJ/5l1ihrDFJW49mc8EYctLNG+dzTyBUXgW kvZZSFpmIWmZhaRlASPLKkbJ1ILi3PTcYsMCw7zUcr3ixNzi0rx0veT83E2M4BjV0tzBeHlJ /CFGAQ5GJR7eCqGUGCHWxLLiytxDjBIczEoivIofgUK8KYmVValF+fFFpTmpxYcYpTlYlMR5 n+YdixQSSE8sSc1OTS1ILYLJMnFwSjUw8vYUaBT8XK8aeiZAR3TVtym/JrlMFemv/KO4i+10 4qzy7MiADxX5D122fxb8USRyT9c18MuuXyGrtySZ737/3f3f1V2vTRi+tr3Ovyji0Tr9354A gWN1wnErGy6ebA16a3XTJXnb7JLiCdelmTV2r1RfIqlzv9tOXWpBffqF7wJKotkSt7/KK7EU ZyQaajEXFScCAIxR6yrNAgAA X-CMS-MailID: 20190214045757epcas1p24c4ff27abfa240601455e419050be63f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190212222438eucas1p27e020c2b36f2e5a2188e4df6fb18488b References: <1550010238-24002-1-git-send-email-l.luba@partner.samsung.com> <1550010238-24002-8-git-send-email-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, On 19. 2. 13. 오전 7:23, Lukasz Luba wrote: > This patch add basic tracing of the devfreq workqueue and delayed work. > It aims to capture changes of the polling intervals and device state. > > Signed-off-by: Lukasz Luba > --- > drivers/devfreq/devfreq.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c > index 29e99ce..c1d0d8c 100644 > --- a/drivers/devfreq/devfreq.c > +++ b/drivers/devfreq/devfreq.c > @@ -29,6 +29,9 @@ > #include > #include "governor.h" > > +#define CREATE_TRACE_POINTS > +#include > + > /* The ~30% load threshold used for load calculation (due to fixed point > * arithmetic) */ > #define LOAD_THRESHOLD_IN_DEVICE_USAGE (300) > @@ -418,6 +421,7 @@ static void devfreq_monitor(struct work_struct *work) > struct devfreq *devfreq = container_of(work, > struct devfreq, work.work); > unsigned int polling_ms; > + const char *df_name = dev_name(&devfreq->dev); nit: You can use 'dev_name(&devfreq->dev)' directly without defining the separate df_name. > > mutex_lock(&devfreq->lock); > polling_ms = devfreq_get_polling_delay(devfreq); > @@ -429,6 +433,10 @@ static void devfreq_monitor(struct work_struct *work) > schedule_delayed_work(&devfreq->work, > msecs_to_jiffies(polling_ms)); > mutex_unlock(&devfreq->lock); > + > + trace_devfreq_monitor(df_name, devfreq->previous_freq, polling_ms, > + devfreq->last_status.busy_time, > + devfreq->last_status.total_time); Regardless of type of work, I think that trace point is necessary for devfreq framework. Reviewed-by: Chanwoo Choi > } > > /** > -- Best Regards, Chanwoo Choi Samsung Electronics