[lkml]   [2019]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/2] tracing: drivers: devfreq: add basic trace mechanism
Hi all,

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.

A few comments for the first version has been addressed here:
- 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]

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.

Lukasz Luba


Lukasz Luba (2):
trace: events: add devfreq trace event file
drivers: devfreq: add tracing for scheduling work

drivers/devfreq/devfreq.c | 8 ++++++++
include/trace/events/devfreq.h | 42 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+)
create mode 100644 include/trace/events/devfreq.h


 \ /
  Last update: 2019-02-14 19:59    [W:0.060 / U:1.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site