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:Kajetan Puchalski <kajetan.puchalski@arm.com> Reviewed-by:
Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit 6ab4b199) Signed-off-by:
Qais Yousef <qyousef@google.com> Change-Id: Icf520d429b1ac06d9c799b1e55b6914291c1e474
Loading
Please sign in to comment