Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2743199imj; Mon, 18 Feb 2019 11:19:59 -0800 (PST) X-Google-Smtp-Source: AHgI3IYnXet0bDZC/OXt6CgvuqnRWW3ZxivtHJ0CBKWQk/o/Xbq4uUDdW2vRZxFmbgdUlWf1DJXT X-Received: by 2002:a17:902:280b:: with SMTP id e11mr26921207plb.269.1550517599501; Mon, 18 Feb 2019 11:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550517599; cv=none; d=google.com; s=arc-20160816; b=IvfKdTdRO5GtDz1+qJt/AG8FFZ37lP17OgGS4Dfcc1zV1ihU09q9AVsydrP9NaZ5nT 0rbFDQkM5cAMksMk7iXQtYru29aCMCdzWf5UAV2JzolGlOTDugD7Sf3TTVQIaVGenZD4 6kx5TxjQsdSMMxnqNe9gV+ewOzCWRpffLFbX/Veju3/iXNrR8lZ0epISrxYfDhcR1fMz BEQdMwWDv9fA9z0Mna+sSTIYw1tOyx29Woa5PgZ/IeJdR+MY/XXZm67SOL1HaqlG5/Dn zcjujCGzNpLtMSTebZYUcHWw74j9BLbX33ebyOejoWgJylMj4fhtjK7dYucX6GDf6sD6 oydw== 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=wUN2vzB5U0AoORJfr99gPFk8Dy3g4fg9Lyo7amxIwqc=; b=pRhpm4JlK2yKi1jcy/gwJAgKG7HqGVdDN4hLRb4cfXDxWAbA9fD3egTDgC5yF1MMRR h6nUvwshteY5kDrF6OGSZ6duDzjeYkCYRcAYQAdtyLBRtKOXxXvXxsd/Ov9cdp/cBnAd F4BjHAtggPm7qsBAiRukeMDy+OMn0wa+Ta2seG5zz+dWP+froZeY2XJNLrIuS7IgUOmL h2hIJ1Xbfee71HjAqBUf+97KPEFuCb/oPf/rPX7c6JtFqk74JZp1wVI01JeGvKtNNZkz HHQXU+38qK07kq1FDmmZrKAAKJ4+TQb6zSe8fYeplst+frihtq+ullHWmUDMAyW5N3do A+AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Q32VfzdL; 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 o26si1687733pfk.166.2019.02.18.11.19.43; Mon, 18 Feb 2019 11:19:59 -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=Q32VfzdL; 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 S1732533AbfBRSYh (ORCPT + 99 others); Mon, 18 Feb 2019 13:24:37 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:33942 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392084AbfBRSVd (ORCPT ); Mon, 18 Feb 2019 13:21:33 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190218182131euoutp0100c3649bea0cf1cbfd0b896f4c3bd960~EiFngztST3074130741euoutp01s for ; Mon, 18 Feb 2019 18:21:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190218182131euoutp0100c3649bea0cf1cbfd0b896f4c3bd960~EiFngztST3074130741euoutp01s DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550514091; bh=wUN2vzB5U0AoORJfr99gPFk8Dy3g4fg9Lyo7amxIwqc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q32VfzdLcoFrnvbUGQbp2Myqq513e6XiUmRn2nfEa5/v6zfIt6KxpoNX0rDJhq1ox QJB4TJa1oHSguNPiiVgF9Xa86l5PLE8/FSIK6flsaq/xONVtzEgtVg6b9My49KSa6f ejVIm3AUf4ri1Zg1ZONpvuULTm0Pl8cGzIpolqMg= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190218182130eucas1p1e1f66aa71942a7e054b840ae0278313c~EiFm7SsNr3138431384eucas1p1C; Mon, 18 Feb 2019 18:21:30 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 14.1D.04806.AA7FA6C5; Mon, 18 Feb 2019 18:21:30 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190218182129eucas1p1804530445570fc73af89ed46b9a448b9~EiFmFz1-K2715727157eucas1p1-; 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 20190218182129eusmtrp13b49ca9d7477825ac9bc67cb6c2f8c1e~EiFl3HuOq2427024270eusmtrp1w; Mon, 18 Feb 2019 18:21:29 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-70-5c6af7aa328c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 3C.F8.04128.9A7FA6C5; Mon, 18 Feb 2019 18:21:29 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190218182128eusmtip1624d6919a0c1e7bd9e29f4484a62036e~EiFlPs7Qb1372313723eusmtip1V; 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 2/2] drivers: devfreq: add tracing for scheduling work Date: Mon, 18 Feb 2019 19:21:09 +0100 Message-Id: <1550514069-9237-3-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: H4sIAAAAAAAAA0WSa0hTcRjG++9s55wNF6cp+sfEaBDeSIskD1pSIDHtS9+CFGzpyUs6bUct tctKcTp0mVaay1oRqSfDS2rzfsVlomTiNSWHulSswK3ES9ZOZ9K3h+f5vRdeXhyRPBS44nGK FEqpkCdIURG/qX9j+DCzHh9x5E+PM1lXWiMgJ6xfBeTQ3VWMnFa5kaMtT1DSUtAHyDd9sxj5 qUvPIy2184D8fKcSJTty53hk76pacMpBplON8GXZHdOYrPt7G0/2o2MMlWkbGCCz1LufQy+I TkRTCXFplNIv+KIotmp0AEvWYtfvvT6pApsCDRDikPCH4ysliAaIcAlRCWDts188NpAQVgDn W4K4wAKgtbmBt1vRYtKjHFQBYPvbMxxkKyhuK8Q0AMdRwhcamKss40QEwiX1CsYyCJHFg+ac 53w2cCRC4fpO3r9GfOIQnG/tBKwW23yDoc4+zB1ODechrBYSYXCrqhmwjSBRgsGCGY0dCoGN 71pRTjvCFWMDxmk3OFicz+c0DYdyGTtzA6oHDHYmCPYaRwTs0gjhBWta/Dj7NNTpllDWhsRe OPltH2sjNlnUxF6Lt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76boqYxo5nr1snO/pPJmzMEVl5KVdv68sDb d13/lFne1Ohz/1oprLJox8nOL6nKCk3H927XnncvPXf7oxXXkvlYODdP36n38m/XZ3f3Gre+ 7IAraT8ZlW4vu3RigfJyg/anMdcyjObrcevdtubx37dNiaU4I9FQi7moOBEAIliwPIwCAAA= X-CMS-MailID: 20190218182129eucas1p1804530445570fc73af89ed46b9a448b9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190218182129eucas1p1804530445570fc73af89ed46b9a448b9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190218182129eucas1p1804530445570fc73af89ed46b9a448b9 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 This patch add basic tracing of the devfreq workqueue and delayed work. It aims to capture changes of the polling intervals and device state. Signed-off-by: Lukasz Luba --- drivers/devfreq/devfreq.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 0ae3de7..660365a 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,8 @@ 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(devfreq); } /** -- 2.7.4