Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp879361imj; Fri, 15 Feb 2019 08:17:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IaxplUyIjH0za+Gtc2ObMaCwMqTIIBxCAqguybAbuy8iEalmQoXXh3/PzR4ZLFJfgVLM6xm X-Received: by 2002:a17:902:48c8:: with SMTP id u8mr11014177plh.79.1550247433958; Fri, 15 Feb 2019 08:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247433; cv=none; d=google.com; s=arc-20160816; b=FisTzW0M+ZFDKRVlFR/qUj0Urtv9b3achVuwAGVdhJMeszI6nU+nf59qoA8/bbUuUx vyggbfvIp/6xVloTTM7aQpDk/mgV9p9oTChzwrvKCB/Ys7rRsoHznhpjVF2aZNJ1hnLP 3/ypT9inIl4CwH93Fskje4BQFKorUkM01WvIIqPKcwe70DkT1qQGFJAPhuL2fqj0JNee 5OK9NTqOFxg1Dvkj0kWsdkFn/bymXLeXVrbNAigRX1ACDtZbDVwrqbAR/dGdtnW1F41m iDCXUjmqovRRFQ1M1raH0l2N91xaR6lVDgNiN83Ggy2f2CMN2Ie2amCcr5BbA4xYiBE+ 3XuQ== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=dWXawSe0mDSVcpnOL5n7OaCAbCUchhb3f/p0QG3V+fU=; b=TGGc3rhAQPKjaTwRdn8IXoJ4D7sR25dkHVmKq62O/lLmiLdCeWaxGKgPmDZNwPV4Wr PxXlPoLGla6NkF4I8FBSGwZ1KA1GoKE9KmA+o6RFKsXHtPZw5R6S/i2B4A0Uf4RC8Gfd Qqpvc/OkKxx1HAMVC2b4xN45jmXjgnSXE+zN3QmUv1dnLPz52I66nyWK2FxnR06W/+9u y8UppkFcXy3WT359CMIk5iAS54u+mHUAAAUNaApHYtWD2ZDqB/geMZJWMpwiF2FElCHO Nmhc9PNUDIxAxGsmMO8NnbeRYxos3MuMo173RWu+Ye7KHzm2tAO+OIaI7e6qN9q5dXqW iA4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="db/3hZdN"; 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 g3si5481181pgq.61.2019.02.15.08.16.53; Fri, 15 Feb 2019 08:17:13 -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="db/3hZdN"; 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 S2394867AbfBONF7 (ORCPT + 99 others); Fri, 15 Feb 2019 08:05:59 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:53253 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbfBONF6 (ORCPT ); Fri, 15 Feb 2019 08:05:58 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190215130556euoutp02e9a535c1f6845b5f269f39f8ed250dbf~Di2OPGCk71622216222euoutp02T for ; Fri, 15 Feb 2019 13:05:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190215130556euoutp02e9a535c1f6845b5f269f39f8ed250dbf~Di2OPGCk71622216222euoutp02T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550235956; bh=dWXawSe0mDSVcpnOL5n7OaCAbCUchhb3f/p0QG3V+fU=; h=From:To:Cc:Subject:Date:References:From; b=db/3hZdNHaJnm0kDsfqbzi3tjjwXLMRhx+eLGFZtVcGeOhXV/PH5nJJA8NEKtRUBc N8CSIx3GWUI7R+wIIgUNvWQRUpPJcpiX3TNDiZYWo+nH/UpmFuk79Qwna2KPAVB1pe uiZdg68aFYBqI9WD69GAYB17cXNkRhuuVuKOA/Oc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190215130555eucas1p1c494533a5cd60c512aedef6f6abf1d8b~Di2NUm-cO0875208752eucas1p1R; Fri, 15 Feb 2019 13:05:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 56.CD.04294.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 20190215130554eucas1p25cf99000a8269b845d1056bcc50c9af7~Di2MgfDoI1666816668eucas1p2C; Fri, 15 Feb 2019 13:05:54 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190215130554eusmtrp183b772960535f0526b84ee6ecf6a64f4~Di2MRmPiG2508925089eusmtrp1k; Fri, 15 Feb 2019 13:05:54 +0000 (GMT) X-AuditID: cbfec7f4-c77a99c0000010c6-85-5c66b933c84f Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 74.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 20190215130553eusmtip27636d867e2df6aaa2507af7d68485e5a~Di2Lt1MKt1450314503eusmtip2p; Fri, 15 Feb 2019 13:05:53 +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 0/2] tracing: drivers: devfreq: add basic trace mechanism Date: Fri, 15 Feb 2019 14:05:11 +0100 Message-Id: <1550235913-5189-1-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42LZduzneV3jnWkxBhc2cVlsnLGe1eL6l+es Fmeb3rBb3GqQsbi8aw6bxefeI4wWa4/cZbe4dGABk8XnDY8ZLW43rmCz2NfxgMni8Jt2Vgce j9kNF1k8WvbdYvc4+G4Pk8f7fVfZPPq2rGL0+LxJLoAtissmJTUnsyy1SN8ugSvjcFsfU8EU /oq9h9ewNDAu5uli5OSQEDCROPnmIXsXIxeHkMAKRom3Wy8wQjhfGCXWdnxkAqkSEvjMKLF7 vj9Mx5qZP6CKljNKXL71gwmu4/fRKUCzODjYBPQkdqwqBGkQEbCSeNH+CmwFs0Azk8SztoUs IAlhAR+J1kfzwWwWAVWJFaeOsIPYvAKeEgt2T2GE2CYncfNcJzOE3cwusWFbHYTtIrGxayUb hC0s8er4FnYIW0bi9OQeFgi7WOJsxyqomhqJ9pM7oGqsJQ4fv8gKciezgKbE+l36IKaEgKPE 2wV8ECafxI23giDFzEDmpG3TmSHCvBIdbUIQMzQktvRcYIKwxSSWr5kGNdtDYvb0RyyQUIuV +DDhE9sERrlZCKsWMDKuYhRPLS3OTU8tNspLLdcrTswtLs1L10vOz93ECEwfp/8d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f/mCLsiFWImajlx78MA335BJ5eND6PFKqYeuzeF0zpzy/JiXj/tsKkH rESNn3rnxj26ZvKJuUecTW+ZEktxRqKhFnNRcSIAB62dsnUCAAA= X-CMS-MailID: 20190215130554eucas1p25cf99000a8269b845d1056bcc50c9af7 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190215130554eucas1p25cf99000a8269b845d1056bcc50c9af7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190215130554eucas1p25cf99000a8269b845d1056bcc50c9af7 References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is v2 which implements Steven's suggestions. This patch set adds support for tracing in devfreq framework. It is related to the discussion regarding devfreq workqueue mechanism and wake-ups. These two tracing patches have been submitted in larger patch set, which needs more discussion. For the further discussion and development there is a need of measurements/testing, though. It was agreed that trace events would help. The whole discussion is here [1]. With these patches it is possible to capture current behaviour for the devfreq subsystem and devices such as when and which workqueue is used, on which CPU, what is the load and frequency of the device. v2: - simplified arguments list, according to Steven's comments, with only one arg: 'devfreq' and the rest fields taken from there. v1: - moved long '/' operation to post-processing phase, according to Seven's comments [2] - re-ordered fields in the structure to avoid holes, according to Seven's comments [3] - removed unneeded variable, according to Chanwoo's comment [4] basic in larget patch set: - added support for trace events I did not dare to add 'Reviewed-by: Chanwoo Choi ' for the 1st patch, which was in [5], since the code slightly changed. The 2nd patch has it. Regards, Lukasz Luba [1] https://lkml.org/lkml/2019/2/12/1179 [2] https://lkml.org/lkml/2019/2/12/1201 [3] https://lkml.org/lkml/2019/2/13/532 [4] https://lkml.org/lkml/2019/2/13/1587 [5] https://lkml.org/lkml/2019/2/14/2 Lukasz Luba (2): trace: events: add devfreq trace event file drivers: devfreq: add tracing for scheduling work MAINTAINERS | 1 + drivers/devfreq/devfreq.c | 5 +++++ include/trace/events/devfreq.h | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 include/trace/events/devfreq.h -- 2.7.4