Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp879383imj; Fri, 15 Feb 2019 08:17:15 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ8Voc55qGwjMhrxQgyavf5j5YCoBH86Vt0CowArlN1IMkcnzgToYHdx1ffdaALmH5pnE8r X-Received: by 2002:a63:fc4d:: with SMTP id r13mr6160471pgk.242.1550247435325; Fri, 15 Feb 2019 08:17:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247435; cv=none; d=google.com; s=arc-20160816; b=T4pIzEzYF2hSRQajP7yynEsDj+2q70F+g+Bg1TxpsmEWOLrsG3r2guNILLNhvnZATj fS8g0WrFeXWpb9aEFwpSxIDnQCyGkmZIwTG2WOz63FAi0t1Hp5aXPh8m0sozcahmFfQV 1x3fKfBydoyPRXqQo0GQ5AFxJrPyareK6KQLpMYZOFDpGf0MD2fs2lWFaVDzhFkaPnJS 8giXTZBM729d6Dk1/bc9LpejK+snQbbiL1CLwf91kSHY23JQJ4ZktCU5PxcWQOzw2NgO HS8ZmOMN3nTJlghdeNgWjQi6nCcR86gpgGOx/TyKJf/YOpPOJjzybVp2pAqJdJ/kkVJm OdoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=LZqeMGz0F06tKp0oBaLAnd47vFr6i3FQ43wlPqLKA1k=; b=I+xA43+IEFiF14XLADCZbwBpGZuDvCYexInMdA2RHTxID14yj7s2HbndS0RXST3xgj lFNSaUOayOyZsYpzRRzUqAefcDjgLh0uWao5dsIhZEeMDItUwMNfm+h3+CibgbVykRRq vewSnW6s13Og4wiwsJ0gexLir04lc5B2FPvaGDLPYvIF6OloydpS6wyuRxuva/ttqe5X 5XjiW/dKQhr8+JA7ekzcnqGq7N8Jpl1LWCJu0rKqN9JklfYUtS97HYjtm0Ectn/c1gT0 Qb3PGpLVshUx8MPG0O0Nt1rkzu1Kav1IXnP36ukh5TqPDeFJKc8SDwicTaCoQHWYQUSz UyQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Sk45vIly; 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 a11si6452150pla.20.2019.02.15.08.16.59; Fri, 15 Feb 2019 08:17:15 -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=Sk45vIly; 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 S2394883AbfBONGN (ORCPT + 99 others); Fri, 15 Feb 2019 08:06:13 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:49366 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728723AbfBONF6 (ORCPT ); Fri, 15 Feb 2019 08:05:58 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190215130556euoutp01a4cb8190393bf89af82ab3762bb1492a~Di2Oqkz0T1614616146euoutp01K for ; Fri, 15 Feb 2019 13:05:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190215130556euoutp01a4cb8190393bf89af82ab3762bb1492a~Di2Oqkz0T1614616146euoutp01K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550235956; bh=LZqeMGz0F06tKp0oBaLAnd47vFr6i3FQ43wlPqLKA1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sk45vIly5rqkECECVvyRYt7qqsI3vstbIvqw95daULfOGX7dIrOVQwswCCvFx25bP r/Q6ns+pzoonl9qKKInjQLmXVjX/jqfKaY/tE2qjCv4CrwEyOKPxZpGzWIHVeZdHP9 5rifenSTvlbiBpnPiB7Obfx1F/gT/VU7eZXAkvT4= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190215130556eucas1p2d91ceba0ece8246c6f8573c32a437060~Di2OC7sE-3185531855eucas1p2F; Fri, 15 Feb 2019 13:05:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 0A.37.04441.339B66C5; Fri, 15 Feb 2019 13:05:55 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190215130555eucas1p219217e3f1d0901f61be78870df0ecf6d~Di2NEN_3M1678616786eucas1p2v; Fri, 15 Feb 2019 13:05:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190215130554eusmtrp138c99b52c3faa5b9091bf2454f84b33f~Di2M1TqB02508925089eusmtrp1l; Fri, 15 Feb 2019 13:05:54 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-10-5c66b933570e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 45.22.04284.239B66C5; Fri, 15 Feb 2019 13:05:54 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190215130554eusmtip23a565ecc7aa967d5bf9bd1910a6dcf95~Di2MPfL-01398613986eusmtip28; Fri, 15 Feb 2019 13:05:54 +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 v2 1/2] trace: events: add devfreq trace event file Date: Fri, 15 Feb 2019 14:05:12 +0100 Message-Id: <1550235913-5189-2-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550235913-5189-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprKKsWRmVeSWpSXmKPExsWy7djP87rGO9NiDC40WVhsnLGe1eL6l+es Fmeb3rBb3GqQsbi8aw6bxefeI4wWa4/cZbe4dGABk8XnDY8ZLW43rmCz2NfxgMni8Jt2Vgce j9kNF1k8WvbdYvc4+G4Pk8f7fVfZPPq2rGL0+LxJLoAtissmJTUnsyy1SN8ugStj8VSugueC Fdd2XmRtYOzi72Lk5JAQMJFo2L2JvYuRi0NIYAWjxIPvp5ggnC+MEnd+rYByPjNK3Ji8lgmm 5dHly2wQieWMEgf3dzHCtTQ+nsfSxcjBwSagJ7FjVSFIg4iAlcSL9ldgO5gFmpkknrUtBKsR FnCW+LkwE6SGRUBVYs7l+SwgNq+Ap0TX9snMEMvkJG6e6wSzOQW8JE5f+ckMMkdCYDq7xM/z m1ghilwk2pqnMkLYwhKvjm9hh7BlJE5P7mGBsIslznasYoOwayTaT+6AqrGWOHz8IivIPcwC mhLrd+lDhB0lzj29xwQSlhDgk7jxVhAkzAxkTto2nRkizCvR0SYEUa0hsaXnAjR4xCSWr5nG DlHiIXGmzRUSOHMZJV6fWMA8gVF+FsKuBYyMqxjFU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Wy78v7SwUz99sLGiiIxBwIlO571JV0wLNFkHX+ scpC11n7VHlOXNqyb9a6SP3pT09m+X4QVjVn9fg6TcSbS3yueHj3ce/g/W6m//ZutLaIDon9 8SpxzmX1ycJzeZf5mjZv2hIeL5LS9NM0UfyYeFT7Sw4lluKMREMt5qLiRAB7jTe8iQIAAA== X-CMS-MailID: 20190215130555eucas1p219217e3f1d0901f61be78870df0ecf6d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190215130555eucas1p219217e3f1d0901f61be78870df0ecf6d X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190215130555eucas1p219217e3f1d0901f61be78870df0ecf6d References: <1550235913-5189-1-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 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..ce83dba --- /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 ? 100 : + (100 * __entry->busy_time) / __entry->total_time) +); +#endif /* _TRACE_DEVFREQ_H */ + +/* This part must be outside protection */ +#include -- 2.7.4