Commit c442868b authored by Kajetan Puchalski's avatar Kajetan Puchalski Committed by Treehugger Robot
Browse files

UPSTREAM: cpuidle: Add cpu_idle_miss trace event



Add a trace event for cpuidle to track missed (too deep or too shallow)
wakeups.

After each wakeup, CPUIdle already computes whether the entered state was
optimal, above or below the desired one and updates the relevant
counters. This patch makes it possible to trace those events in addition
to just reading the counters.

The patterns of types and percentages of misses across different
workloads appear to be very consistent. This makes the trace event very
useful for comparing the relative correctness of different CPUIdle
governors for different types of workloads, or for finding the
optimal governor for a given device.

Bug: 296059163
Signed-off-by: default avatarKajetan Puchalski <kajetan.puchalski@arm.com>
Reviewed-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 6ab4b199)
Signed-off-by: default avatarQais Yousef <qyousef@google.com>
Change-Id: Icf520d429b1ac06d9c799b1e55b6914291c1e474
parent 096e6c86
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment