Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3058553imj; Mon, 18 Feb 2019 18:46:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IZE4fvn0fuFH8T6hnieulITAJVp9kx7N9oPhSTURqvicdoD9xtL6j1CMyEzYQauFvFBCKVC X-Received: by 2002:a17:902:2a66:: with SMTP id i93mr28707612plb.128.1550544393482; Mon, 18 Feb 2019 18:46:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550544393; cv=none; d=google.com; s=arc-20160816; b=dCPvcCg1Vg539E8lMWqz9SHBofzTjGGHCKVLOnseQpIWcdZCE7uyiZawPuHvGfpyW2 mlSvgVsNXicHddbrpbGKqFyMdHct1/RUgfpDyBsYNkhuK/2+EjLUB2XR458BV0mG/5m0 Wi0iI9upzxmMqvRhxjk8T5rWorFd0D999NPCeh33kWcmukS4R6hGJAaC2C3QXBXUhmBk HJbHSFSJnCQmbgSa72hoWrt56f6WrZOiR5aC45eE6KKhjpFtC3+Lcmvhb4LNvp1asxiq lHz7jFr04feEUfctQQ+wbGnhfmuSqpySnFnkXvsT7Dv4z4pxyOi4mlJhHwJFmfIUgXd8 imWg== 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=qC7iJC2HIde6V8Pmd4RzVBfKyMAd5ipCPgkcQSeteSA=; b=yrj0u7/C8/H1Q0BLvu3D4iISayfO/1LOVjNc2ngUXZEwTX197ihPwrEm1obDvS+wNF 8ctX8APmbqic+gasWcvGn3LQk/0TLBI72XyxzgO6kIH/XailsaJk7xUdZKlRSYHuQ56r p0jmu/nvTfW1zm1zNFvwmmkuBkCQ/dLFDpRxlrxohUaTdXZBmHj8GMrHSno29bU3S16K BLPoJLm31UyAavjZd5C01qyDVWr0oQBdDOdte0X6HwUUWv0V7+J1s80O5+WDUTIrLC0i 1ekDW5LxtgynXNWzSgzR7tlr1TIN5fVBTKtHPxVXDfayQSUaqg4yw53NepHYrdJKM0th 0SbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Plxw257f; 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 f35si14498825plh.399.2019.02.18.18.46.18; Mon, 18 Feb 2019 18:46:33 -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=Plxw257f; 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 S1732082AbfBSA0H (ORCPT + 99 others); Mon, 18 Feb 2019 19:26:07 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:30918 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbfBSA0H (ORCPT ); Mon, 18 Feb 2019 19:26:07 -0500 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190219002558epoutp01c9867c29a71ff2efe910fe69357b84a3~EnD1W1OXR2025220252epoutp019 for ; Tue, 19 Feb 2019 00:25:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190219002558epoutp01c9867c29a71ff2efe910fe69357b84a3~EnD1W1OXR2025220252epoutp019 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550535959; bh=qC7iJC2HIde6V8Pmd4RzVBfKyMAd5ipCPgkcQSeteSA=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Plxw257fLydoiAhjEs0gEzPTGrmAUC6bAYOr5aW/yuYI2pQugbmhmyLg8sLrqdzzs F2UhL52hAoyRzGGHZ1fi8PSPvNyiN5Mx4yeGonz/yG/Wcr8FInbqOeRSLs1zbI+AAK EyTPMOgu1/EB8+jScjoxUh08ldzIyXmz7AZDX9KE= Received: from epsmges1p2.samsung.com (unknown [182.195.40.155]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20190219002554epcas1p111187c547a93cb8911793b5ad8070ca1~EnDxQ88Ks0947409474epcas1p1F; Tue, 19 Feb 2019 00:25:54 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 17.B4.04173.11D4B6C5; Tue, 19 Feb 2019 09:25:53 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20190219002552epcas1p44a53a3c532069cc1f7fdaf4d9d3d0372~EnDvwcEJ12168021680epcas1p4T; Tue, 19 Feb 2019 00:25:52 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190219002552epsmtrp11caee6d17de12d5d3671117895f60d54~EnDvvE6x50844508445epsmtrp1f; Tue, 19 Feb 2019 00:25:52 +0000 (GMT) X-AuditID: b6c32a36-a2c1c9c00000104d-ad-5c6b4d117762 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 9B.F4.03971.01D4B6C5; Tue, 19 Feb 2019 09:25:52 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190219002552epsmtip213843b19091e0736e0f14a007f33fc40~EnDvfpjGZ0449204492epsmtip2L; Tue, 19 Feb 2019 00:25:52 +0000 (GMT) Subject: Re: [PATCH v3 1/2] trace: events: add devfreq trace event file 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, mka@chromium.org, rostedt@goodmis.org, mingo@redhat.com From: Chanwoo Choi Organization: Samsung Electronics Message-ID: Date: Tue, 19 Feb 2019 09:25:52 +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: <1550514069-9237-2-git-send-email-l.luba@partner.samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFJsWRmVeSWpSXmKPExsWy7bCmnq6gb3aMwbx5chYbZ6xntTjb9Ibd 4laDjMXlXXPYLD73HmG0WHvkLrvFpQMLmCw+b3jMaHG7cQWbxb6OB0wWh9+0szpwe8xuuMji 0bLvFrvHwXd7mDze77vK5tG3ZRWjx+dNcgFsUdk2GamJKalFCql5yfkpmXnptkrewfHO8aZm Boa6hpYW5koKeYm5qbZKLj4Bum6ZOUDnKSmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVIL UnIKLAv0ihNzi0vz0vWS83OtDA0MjEyBChOyM+ZOKC+4KFLx5fY3xgbG/wJdjJwcEgImEnOu T2fqYuTiEBLYwShx6dM1VgjnE6NE+9EvUM43Rol3E2YwwrRcv/uaGcQWEtjLKNG1xwjCfs8o 8bjHo4uRg0NYwF1izowEkLCIQJrE2/a7YBuYBQ4wSjxauYIdJMEmoCWx/8UNNhCbX0BR4uqP x2DzeQXsJPomPWcCsVkEVC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L4lXL18w QSxTl/gz7xIzhC0ucevJfKi4vETz1tnMExiFZyFpn4WkZRaSlllIWhYwsqxilEwtKM5Nzy02 LDDMSy3XK07MLS7NS9dLzs/dxAiOPS3NHYyXl8QfYhTgYFTi4V2wPCtGiDWxrLgy9xCjBAez kgjvIs/sGCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8T/OORQoJpCeWpGanphakFsFkmTg4pRoY pzRwTzhwTCeBg1HwiVfgy2u8q6Q6j6SZV23fVvH/yYsP3ss8ruw90zmHOWXVhF2nC/zC7Lhy Xsh8v3hiiujHaB8N7+nO1obuTlePGp+47G/utWPtD+s9Z2dcqZ/bHx75c+Vso1sKD/vUamQZ Ly+TXa2wWfnVrhWd05+Y17+W1bpZIhZwqJJroRJLcUaioRZzUXEiAA2Afpi5AgAA X-CMS-MailID: 20190219002552epcas1p44a53a3c532069cc1f7fdaf4d9d3d0372 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190218182129eucas1p236fc8ccddd9a8cde25c15f7545276885 References: <1550514069-9237-1-git-send-email-l.luba@partner.samsung.com> <1550514069-9237-2-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. 19. 오전 3:21, Lukasz Luba wrote: > 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 | 40 ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 41 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..cf5b877 > --- /dev/null > +++ b/include/trace/events/devfreq.h > @@ -0,0 +1,40 @@ > +/* 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(struct devfreq *devfreq), > + > + TP_ARGS(devfreq), > + > + 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(&devfreq->dev)) > + ), > + > + TP_fast_assign( > + __entry->freq = devfreq->previous_freq; > + __entry->busy_time = devfreq->last_status.busy_time; > + __entry->total_time = devfreq->last_status.total_time; > + __entry->polling_ms = devfreq->profile->polling_ms; > + __assign_str(dev_name, dev_name(&devfreq->dev)); > + ), > + > + 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 ? 0 : > + (100 * __entry->busy_time) / __entry->total_time) > +); > +#endif /* _TRACE_DEVFREQ_H */ > + > +/* This part must be outside protection */ > +#include > I think that it is necessary for devfreq. Looks good to me. Reviewed-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics