Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4355903imj; Tue, 12 Feb 2019 14:32:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IbaZ766wvpEfK5U0dAVrxOY/S6Iabx45NsaEXUtqMS/vMpOGqlkqN/BFPbXQC9xSEWmq756 X-Received: by 2002:a17:902:848d:: with SMTP id c13mr6356656plo.257.1550010750970; Tue, 12 Feb 2019 14:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550010750; cv=none; d=google.com; s=arc-20160816; b=prvE7YE1Vo8hoa+FCXJM0jCb9kgYOuTnrrZmyzOd7eDB6a/7uZeQumLR2WFbQUxPZz /vQ0jTa/mW9fo1R6cQgxYxyPydjsIxT6yDUcv3YqGrKGscUYzTpXvqmID1u6fkwOB5j7 zxPIDVlupuCM6V0PaUf4GdfeElIKHqKmrjvSKFUvttS99ZPWdLdxT+Ftmr2lYu0mZw3a 8B4INQ7hEU2SS59PuKoYuzmK7d27Zxwad78Wv7BjmPaypEkm8JHZoS3yXl1OFBI9GK5A UXsVdh0jp/PWx4uk1eQaPxEbePPwujAsTfGSPzLypmKQdnDYVmx83Tpa/DJzzKu5OGTo kvwg== 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=ytt9HEqMSC9B+2sRfagi8v3hpwU3kimvGDt2IfVYwHA=; b=oHnjSW9x9ccyK47mFOkhNUZAkTwjv9I26XZ17s6vdbai/egyW+KjhSW9g8L9ilSsUI 3gPorpOPchbDb3AU6lIlbrF0gkyQlEJUPC2ij9RwWaKzlSK/c9g1pi1x/IO9LOj2S19Q z5BN+XCfUf7Ks7VxONjio/5hI4HEMJlCuLqXGcSNz0a851QQgmb/wwHgzTMyg+jtmaWb Tql+I/CUPzzeb6s5SEoboG9a/wngGgQc5PFN0FjS2c2kPJkq8JqS3wJd7TYn2jVfixaO sSrbariDPb4kDzGzzq9ZSAE892ioqzGqnsmuX4dc2erp4ADGb8iKbCsoVA2xI3YpDRzW b/ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=IBBtDrkd; 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 o184si1821806pfb.72.2019.02.12.14.32.15; Tue, 12 Feb 2019 14:32:30 -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=IBBtDrkd; 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 S1732805AbfBLWYw (ORCPT + 99 others); Tue, 12 Feb 2019 17:24:52 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:43174 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732626AbfBLWYk (ORCPT ); Tue, 12 Feb 2019 17:24:40 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190212222439euoutp02c11efb689922fdda3c79c37e33c8f9dc~CviMSrJHV0110801108euoutp02i for ; Tue, 12 Feb 2019 22:24:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190212222439euoutp02c11efb689922fdda3c79c37e33c8f9dc~CviMSrJHV0110801108euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550010279; bh=ytt9HEqMSC9B+2sRfagi8v3hpwU3kimvGDt2IfVYwHA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IBBtDrkddYbndUdRDI/xDFU9zW0G6hqyquUnTqj3kwHxIVLNu8Dfo4kxdDlaNQ5ZE s0lne4eh3i68ej2sm5QE4bsLGmXNft8VCIOYPzy6XsSkIGoeaj4WlLKlNVN3Un/k8u HptlyDL/dQqB4SS8Z+TbGLsiDw/07ApxNCAfUa0k= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190212222438eucas1p183bb206d8fa2bc23619893fc1fb57c45~CviLNBi0Z2824728247eucas1p1V; Tue, 12 Feb 2019 22:24:38 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 4D.0F.04806.6A7436C5; Tue, 12 Feb 2019 22:24:38 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190212222437eucas1p198db6fca1f1ba3056d93c57327dd48ed~CviKHO6lT3241732417eucas1p1G; Tue, 12 Feb 2019 22:24:37 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190212222437eusmtrp20828e27ab02dfdc3db19791cfd4abaaf~CviJ4ZLM02980329803eusmtrp2P; Tue, 12 Feb 2019 22:24:37 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-88-5c6347a62d50 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2F.2C.04284.4A7436C5; Tue, 12 Feb 2019 22:24:36 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190212222436eusmtip1ccab2f13f0cf7851b39af0c8b00d7a1a~CviJPSXYI0525605256eusmtip18; Tue, 12 Feb 2019 22:24:36 +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, tkjos@google.com, joel@joelfernandes.org, chris.diamand@arm.com, mka@chromium.org, rostedt@goodmis.org, mingo@redhat.com, Lukasz Luba Subject: [PATCH v3 6/7] trace: events: add devfreq trace event file Date: Tue, 12 Feb 2019 23:23:57 +0100 Message-Id: <1550010238-24002-7-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550010238-24002-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAKsWRmVeSWpSXmKPExsWy7djP87rL3JNjDG4c4rTYOGM9q8W0T5dZ LK5/ec5qsaxB1eJs0xt2i1sNMhaXd81hs/jce4TRYu2Ru+wWlw4sYLL4vOExo8XtxhVsFvs6 HjBZHH7TzmrxfnKxA7/HmnlrGD1mN1xk8WjZd4vdY8GmUo+Fn76yehx8t4fJ4/2+q2wefVtW MXp83iQXwBnFZZOSmpNZllqkb5fAlXH2yF3Ggn8CFa9W/WVsYJzP18XIySEhYCKx9FUjWxcj F4eQwApGiUczFrGDJIQEvjBK7DiWBJH4zChxZuYaZpiOVW9nskIkljNK3PiyGcoB6jix7DDQ LA4ONgE9iR2rCkEaRASsJF60v2IHqWEWOMYk8WnvFLBJwgLOEhdOrgSzWQRUJdp/nmIDsXkF vCS+9F9ggdgmJ3HzXCdYDaeAt8SZaStZIeLH2CXmrvaGsF0kOhquQMWFJV4d38IOYctI/N85 nwnCLpY427GKDcKukWg/uQOqxlri8PGLrCA3MwtoSqzfpQ9iSg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wjxJuSWFmVWpQfX1Sak1p8iNEU6KaJzFKiyfnA6M0riTc0 NTS3sDQ0NzY3NrNQEuc9b1AZJSSQnliSmp2aWpBaBNPHxMEp1cAYxPN3W0UN3+XSAxKXHt75 6FiT9e64jeHO/vnXJ8zg0Lx78E/q18qZ94Un/j1zIeClif2+dFNNdhHmXUXeTcX3rq/LPqui vDxdNWfpIbas5c2bTwcWqfwvV52//nfCzjuRWXpb5j0oTZesM39/vvqhsX7Vk3UPa+eaHc+z WfvFJ5E54qrsBWsRJZbijERDLeai4kQARDqPbKYCAAA= X-CMS-MailID: 20190212222437eucas1p198db6fca1f1ba3056d93c57327dd48ed X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190212222437eucas1p198db6fca1f1ba3056d93c57327dd48ed X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190212222437eucas1p198db6fca1f1ba3056d93c57327dd48ed References: <1550010238-24002-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 | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 include/trace/events/devfreq.h diff --git a/MAINTAINERS b/MAINTAINERS index 9919840..c042fda 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..fec9304 --- /dev/null +++ b/include/trace/events/devfreq.h @@ -0,0 +1,39 @@ +/* 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( + __string(dev_name, dev_name) + __field(unsigned long, freq) + __field(unsigned int, polling_ms) + __field(unsigned int, load) + ), + + TP_fast_assign( + __assign_str(dev_name, dev_name); + __entry->freq = freq; + __entry->polling_ms = polling_ms; + __entry->load = (100 * busy_time) / total_time; + ), + + TP_printk("dev_name=%s freq=%lu polling_ms=%u load=%u", + __get_str(dev_name), __entry->freq, __entry->polling_ms, + __entry->load) +); +#endif /* _TRACE_DEVFREQ_H */ + +/* This part must be outside protection */ +#include -- 2.7.4