Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp877933imj; Fri, 15 Feb 2019 08:15:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IZGzYbjaBuc8i3S8JVsTyg2rYrlv0DaDxPIpB1iSUFXN/t/ma/bVGZUEHmNMn28YofzihCo X-Received: by 2002:a63:eb49:: with SMTP id b9mr6143396pgk.196.1550247357491; Fri, 15 Feb 2019 08:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247357; cv=none; d=google.com; s=arc-20160816; b=T9dQ2JjRhQTQ4HAMgTXhUImDkH5/Pm+1T7TLmoJSye4AfkCyaW+hoax+cXRTUB6y9i A1aK0OI9rl5NxSz/bdNdzsOxP9nEm5RTpqe0iBbQfT/9MED4SvzKqM+GvQWPuiIneDsi BbvNFxcfKEtqmRJywT+W47v410jGwW3ncLd1/cqtzivhmSQUW1Pe96b08/3Z38Uuorl1 t+Ax59jJCTmRbuBCWozYNR7xjUYixQY3eZBddOmSjk5ZmQiINf7aYPCbFJ755/yqz2Yq kIYX2LLyiabX1bvNknJFQyvkxPs8iIb4jvwb16JVqSC1X9X+Q2b9rheMs0J1IWTqU8ez A5iQ== 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=fGYZsgStMWW/h9jsIbJ63+IZTyQ4b+d/uwVB2bBA4keOUlwvGsA7j2v/RyLCgHnhkS 0VtJJSzHwvemkvKc4riyPXlAy8JNB/aOqIX5zQI8KhDAN1uDSnqC9LyXdG9SOnq+9u2Z eQRbFLfFUhrsn1QMhF3gj4STQnTgFDxose/8vUW1omDITiMwUYJJ9+KH2FJSpsgo5ExI BQQ++1L4ieFzBx4fQ9PCQosLZYoi0bxepllNKSSgysYIUUkKcQEPkPMxQ3a4ZKkkKDQF QCFvDWziziZsFSb3amN4thgEtaaPFd/HA74Z37Q8FqwipOCjuWwBu2Ma2XnAr2e9pJm/ zZtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=J0NfcFf1; 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 1si3254630plb.103.2019.02.15.08.15.41; Fri, 15 Feb 2019 08:15:57 -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=J0NfcFf1; 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 S2394848AbfBONF7 (ORCPT + 99 others); Fri, 15 Feb 2019 08:05:59 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:49375 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387425AbfBONF6 (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 20190215130557euoutp013ffa164b8925e2ed7aab3cffbb66f650~Di2O9xtFy1609716097euoutp01k for ; Fri, 15 Feb 2019 13:05:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190215130557euoutp013ffa164b8925e2ed7aab3cffbb66f650~Di2O9xtFy1609716097euoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550235957; bh=wUN2vzB5U0AoORJfr99gPFk8Dy3g4fg9Lyo7amxIwqc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J0NfcFf1hcihLx4l2V5yn+7bemkAAoyoFbRkM36DbELQq/VHWMwjb9E9Li99xUeV/ 8DpgBq0VKLefH7EAzNBkzm2EinZzDffwtgV4GDOKdBse2/9KnPpokSn59WYkEtVv6K utCxcTMBl8JQVzV27mRUbF/xtHNspAxJykAeyGVk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190215130556eucas1p2b865e4aa4f324532e42bc911b0a24a6c~Di2OfVBMV3216232162eucas1p2E; Fri, 15 Feb 2019 13:05:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id BA.34.04806.439B66C5; Fri, 15 Feb 2019 13:05:56 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190215130555eucas1p297d048d01902e2bb88e6db158d53fd88~Di2NntX0j3216232162eucas1p2D; 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 20190215130555eusmtrp168f7e06f0725d2879e8b1951a2861c50~Di2NZCmqx2508625086eusmtrp14; Fri, 15 Feb 2019 13:05:55 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-cb-5c66b934e45b Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 36.22.04284.339B66C5; Fri, 15 Feb 2019 13:05:55 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190215130554eusmtip29921333beb3690b3a7142b2ac93a6937~Di2MxJ-4N1399213992eusmtip2z; 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 2/2] drivers: devfreq: add tracing for scheduling work Date: Fri, 15 Feb 2019 14:05:13 +0100 Message-Id: <1550235913-5189-3-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+NgFprKKsWRmVeSWpSXmKPExsWy7djP87omO9NiDI41ylpsnLGe1eL6l+es Fmeb3rBb3GqQsbi8aw6bxefeI4wWa4/cZbe4dGABk8XnDY8ZLW43rmCz2NfxgMni8Jt2Vgce j9kNF1k8WvbdYvc4+G4Pk8f7fVfZPPq2rGL0+LxJLoAtissmJTUnsyy1SN8ugStj5eWT7AV9 7BX9q20bGH+xdjFyckgImEhc7jkAZgsJrGCUeDWXCcL+wijxeL10FyMXkP2ZUWJr+124hnVv FzFDJJYzSryb9AvKAepYeOA0WxcjBwebgJ7EjlWFIA0iAlYSL9pfsYPUMAs0M0k8a1vIApIQ FvCUuNxyCmwdi4CqxJnW82BxXqD4/At7GSG2yUncPNfJDGJzCnhJnL7yE2yZhMB0domv87dA FblILL7SxwZhC0u8Or6FHcKWkTg9uYcFwi6WONuxCqqmRqL95A6oGmuJw8cvsoIczSygKbF+ lz5E2FFiwsabjCBhCQE+iRtvBUHCzEDmpG3TmSHCvBIdbUIQ1RoSW3ouMEHYYhLL10yDGu4h 8ft4AzskeOYySpw5u5x1AqP8LIRlCxgZV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cPg+t+eNv6Ti8/9paH7P1 stV2fveH/2sePpiXVWXA/YVDwsEx1XCyxJwM//WHRRqmK032/c4vnMetbWz397HXVfkdXQXF B6MUnMu+zD4s4n+7yTri3n/OnzoWln4VCzhDP9QvOqGgxFKckWioxVxUnAgAOKMF7osCAAA= X-CMS-MailID: 20190215130555eucas1p297d048d01902e2bb88e6db158d53fd88 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190215130555eucas1p297d048d01902e2bb88e6db158d53fd88 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190215130555eucas1p297d048d01902e2bb88e6db158d53fd88 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 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