Skip to content

Add trace to thermal framework

Punit Agrawal linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 3 patches 2 repliesIn review

changes since rfc from the cover letter

* Fixed an issue where incorrect trip point was traced when using fair share
* Trace the numeric value of trip_type instead of using __print_symbolic

Patches in v1 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Add trace to thermal framework

Hi linux-pm,

This is the second posting of the patches to add trace to the thermal framework.

The linux thermal framework doesn't have any support for tracing. This makes it hard to run workloads and observe the thermal behaviour of the system without actively polling files in sysfs or enabling debug builds.

This patch set introduces trace events in the framework to allow observing the behaviour of the different components in the framework. The events added trace temperature changes, trip points and cooling device state changes.

changes since rfc:
* Fixed an issue where incorrect trip point was traced when using fair share
* Trace the numeric value of trip_type instead of using __print_symbolic

Punit Agrawal (3):
thermal: trace: Trace temperature changes
thermal: trace: Trace when a cooling device's state is updated
thermal: trace: Trace when temperature is above a trip point

 drivers/thermal/fair_share.c   |   12 ++++++
 drivers/thermal/step_wise.c    |    5 ++-
 drivers/thermal/thermal_core.c |    7 ++++
 include/trace/events/thermal.h |   87 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 110 insertions(+), 1 deletion(-)
 create mode 100644 include/trace/events/thermal.h
Signature · 1 line
1.7.10.4