From patchwork Thu Feb 14 18:57:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10813489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A02A417D5 for ; Thu, 14 Feb 2019 18:58:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F29B2F0C2 for ; Thu, 14 Feb 2019 18:58:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8304B2F0D9; Thu, 14 Feb 2019 18:58:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FA162F0D7 for ; Thu, 14 Feb 2019 18:58:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405090AbfBNS6P (ORCPT ); Thu, 14 Feb 2019 13:58:15 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:34933 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726361AbfBNS6N (ORCPT ); Thu, 14 Feb 2019 13:58:13 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190214185811euoutp028874b49d8576b93ec41d15659caae30f~DUAf2EUJQ2862528625euoutp02j for ; Thu, 14 Feb 2019 18:58:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190214185811euoutp028874b49d8576b93ec41d15659caae30f~DUAf2EUJQ2862528625euoutp02j DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550170691; bh=Y7/qZ97VhxjVPdA+gdtH/9yafH9YPYnkq+6rqLhlND0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dHumlW9jcKGomU82s22GKEoB8pf0OXCO0b1M8lBNVgN9NNZjtCSw7jyeLiBRCRmWB AZBMHtMeEAAuh6Z/IvdyPOLD/ExTE62g6qwMXd64xCSL0wpEN2ANVnyql3ytl7QXWQ dTcpQwgGW/198FmSI7P/ZrZAOc9oq60zED1BAxz4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190214185810eucas1p124ec6052e0a48c73b3172ac1db6db391~DUAe1yIDP0094600946eucas1p1G; Thu, 14 Feb 2019 18:58:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 89.13.04294.24AB56C5; Thu, 14 Feb 2019 18:58:10 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190214185809eucas1p219acc085fd241f3f685e52cb5534f905~DUAd3wI530153101531eucas1p2S; Thu, 14 Feb 2019 18:58:09 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190214185809eusmtrp1f183bb048c087ce19773be04609e50b4~DUAdpBZiz1152911529eusmtrp1f; Thu, 14 Feb 2019 18:58:09 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-bd-5c65ba42c0b5 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C5.C0.04128.14AB56C5; Thu, 14 Feb 2019 18:58:09 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190214185808eusmtip2bbbcf6ba06c11b146aec4fae67ce2525~DUAdDZRX00484004840eusmtip2v; Thu, 14 Feb 2019 18:58:08 +0000 (GMT) From: Lukasz Luba To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: b.zolnierkie@samsung.com, myungjoo.ham@samsung.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, mka@chromium.org, rostedt@goodmis.org, mingo@redhat.com, Lukasz Luba Subject: [PATCH 1/2] trace: events: add devfreq trace event file Date: Thu, 14 Feb 2019 19:57:55 +0100 Message-Id: <1550170676-14173-2-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550170676-14173-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGKsWRmVeSWpSXmKPExsWy7djP87pOu1JjDHb8l7fYOGM9q8X1L89Z Lc42vWG3uNUgY3F51xw2i8+9Rxgt1h65y25x6cACJovPGx4zWtxuXMFmsa/jAZPF4TftrA48 HrMbLrJ4tOy7xe5x8N0eJo/3+66yefRtWcXo8XmTXABbFJdNSmpOZllqkb5dAlfGnI0XmAr6 hCrmnXnF1sA4k7+LkZNDQsBE4vzWw2xdjFwcQgIrGCX2/v7KCJIQEvjCKHHhgRtE4jOjxOsP f1hgOla9f8MCkVjOKLF94QJGCAeo4/CVm0AOBwebgJ7EjlWFIA0iAlYSL9pfsYPUMAs0M0k8 a1vIAlIjLOAg8WiWOkgNi4CqxIxtXWwgNq+Al8SM3f+glslJ3DzXyQxicwp4S2zsmgR2qoTA dHaJc5/6oIpcJE6/XswGYQtLvDq+hR3ClpE4PbkHqqZY4mzHKqiaGon2kzugaqwlDh+/yApy D7OApsT6XfoQYUeJndfnsIGEJQ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3tDU0NzC0tDc2NzYzEJJnPe8QWWUkEB6YklqdmpqQWoR TB8TB6dUA+M03q02B5bkvar4nZJQtvnGpgqBgt3+Wkt9jBYtKGRvSA5wOM2sqNSt0hD06tLE qMUFqbleade8JV2qG0Udax7eum72RPZbZjV7W9I3/lRDiR47yedsrz0qbhdb/1/7UklIf/mc qLBa91RbtuTfSl2ruiZWbzA9UP1vxd082WXqm1dFFy26rcRSnJFoqMVcVJwIABzoyvCMAgAA X-CMS-MailID: 20190214185809eucas1p219acc085fd241f3f685e52cb5534f905 X-Msg-Generator: CA X-RootMTR: 20190214185809eucas1p219acc085fd241f3f685e52cb5534f905 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190214185809eucas1p219acc085fd241f3f685e52cb5534f905 References: <1550170676-14173-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The patch adds a new file for with trace events for devfreq framework. They are used for performance analysis of the framework. It also contains updates in MAINTAINERS file adding new entry for devfreq maintainers. Signed-off-by: Lukasz Luba --- MAINTAINERS | 1 + include/trace/events/devfreq.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 include/trace/events/devfreq.h diff --git a/MAINTAINERS b/MAINTAINERS index 41ce5f4..9c44076 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4447,6 +4447,7 @@ S: Maintained F: drivers/devfreq/ F: include/linux/devfreq.h F: Documentation/devicetree/bindings/devfreq/ +F: include/trace/events/devfreq.h DEVICE FREQUENCY EVENT (DEVFREQ-EVENT) M: Chanwoo Choi diff --git a/include/trace/events/devfreq.h b/include/trace/events/devfreq.h new file mode 100644 index 0000000..d6990dc --- /dev/null +++ b/include/trace/events/devfreq.h @@ -0,0 +1,42 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#undef TRACE_SYSTEM +#define TRACE_SYSTEM devfreq + +#if !defined(_TRACE_DEVFREQ_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_DEVFREQ_H + +#include +#include + +TRACE_EVENT(devfreq_monitor, + TP_PROTO(const char *dev_name, unsigned long freq, + unsigned int polling_ms, unsigned long busy_time, + unsigned long total_time), + + TP_ARGS(dev_name, freq, polling_ms, busy_time, total_time), + + TP_STRUCT__entry( + __field(unsigned long, freq) + __field(unsigned long, busy_time) + __field(unsigned long, total_time) + __field(unsigned int, polling_ms) + __string(dev_name, dev_name) + ), + + TP_fast_assign( + __entry->freq = freq; + __entry->busy_time = busy_time; + __entry->total_time = total_time; + __entry->polling_ms = polling_ms; + __assign_str(dev_name, dev_name); + ), + + TP_printk("dev_name=%s freq=%lu polling_ms=%u load=%lu", + __get_str(dev_name), __entry->freq, __entry->polling_ms, + __entry->total_time == 0 ? 100 : + (100 * __entry->busy_time) / __entry->total_time) +); +#endif /* _TRACE_DEVFREQ_H */ + +/* This part must be outside protection */ +#include From patchwork Thu Feb 14 18:57:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10813493 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A8D1413A4 for ; Thu, 14 Feb 2019 18:58:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97A522F0C2 for ; Thu, 14 Feb 2019 18:58:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88DF22F0D9; Thu, 14 Feb 2019 18:58:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 214752F0C2 for ; Thu, 14 Feb 2019 18:58:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726361AbfBNS6Q (ORCPT ); Thu, 14 Feb 2019 13:58:16 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:34939 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2395561AbfBNS6O (ORCPT ); Thu, 14 Feb 2019 13:58:14 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190214185813euoutp02f0f426d5dd5e171c5a8864c07c897316~DUAhS9QM_3092130921euoutp02B for ; Thu, 14 Feb 2019 18:58:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190214185813euoutp02f0f426d5dd5e171c5a8864c07c897316~DUAhS9QM_3092130921euoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550170693; bh=1XGfectv7Qhst73Pj0qkueIcxP2sGHCSap0xJGIuUQ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QRmEbLhAdCkG1kGLsTDJV6bKgtdmZtSi4I1hk0gcjsXE34e0fUX5z9oyz1087ufea YLAWPUXeHP4EK56ljPk701u2JfO2k4t68vaYm9Wr9kxX5oXWjacFlpyk4ijaMNRHXL jPQV9I/xNE77qvcujUg23rNccrxBRXOlJHN6n34s= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190214185812eucas1p1de476846c8dff4cf20370c9003d61461~DUAgD6Q-A0095100951eucas1p12; Thu, 14 Feb 2019 18:58:12 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id E8.0D.04441.34AB56C5; Thu, 14 Feb 2019 18:58:11 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190214185811eucas1p1e2f44d59495296fbfed42f28a2c897a0~DUAfKf6ab2268922689eucas1p1a; Thu, 14 Feb 2019 18:58:11 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190214185810eusmtrp2de591659e4c021b358c0500c7033aefe~DUAe70Y2X1343513435eusmtrp2p; Thu, 14 Feb 2019 18:58:10 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-a1-5c65ba439946 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 11.39.04284.24AB56C5; Thu, 14 Feb 2019 18:58:10 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190214185810eusmtip2f8953a34cc755688e361a12bc5e3763b~DUAeOUJ5v0560105601eusmtip2M; Thu, 14 Feb 2019 18:58:10 +0000 (GMT) From: Lukasz Luba To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: b.zolnierkie@samsung.com, myungjoo.ham@samsung.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, mka@chromium.org, rostedt@goodmis.org, mingo@redhat.com, Lukasz Luba Subject: [PATCH 2/2] drivers: devfreq: add tracing for scheduling work Date: Thu, 14 Feb 2019 19:57:56 +0100 Message-Id: <1550170676-14173-3-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550170676-14173-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Trac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F51xw2i8+9Rxgt1h65y25x6cACJovPGx4zWtxuXMFmsa/jAZPF4TftrA48 HrMbLrJ4tOy7xe5x8N0eJo/3+66yefRtWcXo8XmTXABblJ5NUX5pSapCRn5xia1StKGFkZ6h pYWekYmlnqGxeayVkamSvp1NSmpOZllqkb5dgl7Gmtl/2QreclScmfOdrYFxE3sXIyeHhICJ xL6+bsYuRi4OIYGljBInHlxihEiISUzatx2qSFjiz7UuNoiiT4wS96Z2MHcxcnCwCehJ7FhV CFIjImAj8X7uGRaQGmaBfiaJpiUdrCAJYQE3ibZzc1hB6lkEVCVuPtQDCfMKeEl82X+dFWK+ nMTNc53MIDangLfExq5JbCC2EFDN/TsPWCcw8i1gZFjFKJJaWpybnltsqFecmFtcmpeul5yf u4kRGOzbjv3cvIPx0sbgQ4wCHIxKPLwrMlJjhFgTy4orcw8xSnAwK4nwvt4GFOJNSaysSi3K jy8qzUktPsRoCnTTRGYp0eR8YCTmlcQbmhqaW1gamhubG5tZKInznjeojBISSE8sSc1OTS1I LYLpY+LglGpg9Lt/bCmf6BSlh798IxNlvj5deW5bm6XBPmXuYM/TM7bF7pad+vSBesn6r12n 5Z+ZfvjbIrt0/dt5Dv++HqoM+HrOjOvJff8ZHL02covfarkkLlzDofc7nLPVd1Fliv3mnfa+ SntNA80XdE4Kdg7i2L4xPX/zzIK/iUsCJjou0N7t9ySe6260tBJLcUaioRZzUXEiADTKUJeM AgAA X-CMS-MailID: 20190214185811eucas1p1e2f44d59495296fbfed42f28a2c897a0 X-Msg-Generator: CA X-RootMTR: 20190214185811eucas1p1e2f44d59495296fbfed42f28a2c897a0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190214185811eucas1p1e2f44d59495296fbfed42f28a2c897a0 References: <1550170676-14173-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add basic tracing of the devfreq workqueue and delayed work. It aims to capture changes of the polling intervals and device state. Reviewed-by: Chanwoo Choi 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 0ae3de7..c9714fd 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -29,6 +29,9 @@ #include #include "governor.h" +#define CREATE_TRACE_POINTS +#include + static struct class *devfreq_class; /* @@ -394,6 +397,11 @@ static void devfreq_monitor(struct work_struct *work) queue_delayed_work(devfreq_wq, &devfreq->work, msecs_to_jiffies(devfreq->profile->polling_ms)); mutex_unlock(&devfreq->lock); + + trace_devfreq_monitor(dev_name(&devfreq->dev), devfreq->previous_freq, + devfreq->profile->polling_ms, + devfreq->last_status.busy_time, + devfreq->last_status.total_time); } /**