Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2740925imj; Mon, 18 Feb 2019 11:17:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZHVdsUzXAxsUp2NFYx/D2ti/zDn2hhmIZKRd31RfoHHwhqLQ88OayG4yu2N9b5N0eCaUpD X-Received: by 2002:a17:902:5066:: with SMTP id f35mr27039843plh.78.1550517429604; Mon, 18 Feb 2019 11:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550517429; cv=none; d=google.com; s=arc-20160816; b=Y8ZAkMvvtBrd9SWaB4y8O9NA5tPHAN9DNc+AxWLKqqmiDcf8obxHGg1O5G2P0zdiVJ H371ZGUF7rTLDNuMjvHTL3SQUUSiYSz6oNw8iZII698vcpUqmuooR0+BhNN9zo9DVu3k gWpYTxsTDtp5JkYszgGUV0zlachRSsj/BTARu4+yWsaI+6LXAmBOnfmmQaYMWxgQdwbk qjHt31L3qxkTDC0M3e0YlspEJTAJizF0DZETMMuMYHBhddz0OhUWBFwk7c+fln0h/k0h u9jBykwKva6sS1DS2u1MUlohH7a3GXMsLI6RctXis3tfTszsJrskFXi4IPo181MfgUPX CIoQ== 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=b2iaLzmSEcFaz20hz0kaymKbyDrXzknzPzghNngGPJs=; b=k78mpWatDLCetZCrloQHw4sr0Tbsvce9mkSIrUSKJ7weUhjKqbcLf2Vz0BPsNDj5/M N++ljEM5kke/qF0RNo48TLQ4zpaPGCn1RutEUZAOOAT82ZoVpkjdI879fWMeaa4jb3oO oO3VdbimXm24S5jaaG61Vh5+b+CaOGvSCWPsFVasLvMxHm903L7/X8Z7dIM9vt2e/XZQ 2o8NpWZITxUt3k87P3AZVtiznUH3NQthMxtJ0gILhygZaSk3U2GSwuCxZW+u6CO2fQ6u kBDIwAROefaqDCamWwRFA1yAgdCGHSzMXeRJYO2WI7dYssFQZIPOaki8Byr5ZsyqXZjQ xiWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=KjhUWIvW; 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 t10si14499797plh.91.2019.02.18.11.16.54; Mon, 18 Feb 2019 11:17:09 -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=KjhUWIvW; 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 S2392121AbfBRSVd (ORCPT + 99 others); Mon, 18 Feb 2019 13:21:33 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:33939 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392078AbfBRSVc (ORCPT ); Mon, 18 Feb 2019 13:21:32 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190218182131euoutp019919c14093e9f516271454e055655894~EiFnY7Z3V3074130741euoutp01r for ; Mon, 18 Feb 2019 18:21:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190218182131euoutp019919c14093e9f516271454e055655894~EiFnY7Z3V3074130741euoutp01r DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550514091; bh=b2iaLzmSEcFaz20hz0kaymKbyDrXzknzPzghNngGPJs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KjhUWIvWJUmAiG7rLmFlPpC1xfSANskswqzHQT37/fAD5uXl9zktBYv9zO4nX+Xyy CYcaU6Hh8vOZNS4a/u1uBAs4f+BA1kOMKsazRT6tAckDQI2F2G0w5WmaKDX++iWn76 dJvUA7Vabo0t1GMIl+1+rT75gmqwO30YH22XaqUg= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190218182130eucas1p1163aab1630a4a65b1cb82424c6b68930~EiFmUJZSO0172501725eucas1p1c; Mon, 18 Feb 2019 18:21:30 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 5E.87.04294.9A7FA6C5; Mon, 18 Feb 2019 18:21:29 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190218182129eucas1p236fc8ccddd9a8cde25c15f7545276885~EiFlijdsI2469324693eucas1p2m; Mon, 18 Feb 2019 18:21:29 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190218182128eusmtrp1e42cdce2c1e52f6af683333478c10ada~EiFlTWX0l2427024270eusmtrp1v; Mon, 18 Feb 2019 18:21:28 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-19-5c6af7a934f9 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 6B.F8.04128.8A7FA6C5; Mon, 18 Feb 2019 18:21:28 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190218182128eusmtip17d767e79a6dbc12add67961dff5b4ed3~EiFku1yJP1523015230eusmtip1T; Mon, 18 Feb 2019 18:21:28 +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 v3 1/2] trace: events: add devfreq trace event file Date: Mon, 18 Feb 2019 19:21:08 +0100 Message-Id: <1550514069-9237-2-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550514069-9237-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGKsWRmVeSWpSXmKPExsWy7djPc7orv2fFGEy8omuxccZ6VovrX56z WpxtesNucatBxuLyrjlsFp97jzBarD1yl93i0oEFTBafNzxmtLjduILNYl/HAyaLw2/aWR14 PGY3XGTxaNl3i93j4Ls9TB7v911l8+jbsorR4/MmuQC2KC6blNSczLLUIn27BK6MF+072Qqe ClasnZnawNjB38XIwSEhYCKx+UtSFyMXh5DACkaJXw9Xs0M4Xxgl2i8vgXI+M0pM2/KZrYuR E6xj8b27jBCJ5YwSxw6dY4Nr2XT7EBPIXDYBPYkdqwpBGkQErCRetL8Cm8Qs0Mwk8axtIQtI QljAWeLXuynsIDaLgKpEx7xZrCA2r4CnxLc5fUwQ2+Qkbp7rZAaxOQW8JH6v3Am2WUJgOrvE 5pcvGSGKXCSa/s9lhbCFJV4d38IOYctInJ7cwwJhF0uc7VgF9UKNRPvJHVA11hKHj19kBTma WUBTYv0ufYiwo8SsC3uZIWHEJ3HjrSBImBnInLRtOlSYV6KjTQiiWkNiS88FqIvFJJavmQY1 3ENi29bL0OCZyyjR2LGfbQKj/CyEZQsYGVcxiqeWFuempxYb5aWW6xUn5haX5qXrJ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BKX1RfdE8py9b79OIR53Vpla6uQhHCWXLb7FicT ZzrP6vix4bmZRn/S7t8617a0MG/a1F/KlegdPvUk39raZiWW4oxEQy3mouJEAGonEeWMAgAA X-CMS-MailID: 20190218182129eucas1p236fc8ccddd9a8cde25c15f7545276885 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190218182129eucas1p236fc8ccddd9a8cde25c15f7545276885 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190218182129eucas1p236fc8ccddd9a8cde25c15f7545276885 References: <1550514069-9237-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..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 -- 2.7.4