• Kajetan Puchalski's avatar
    cpuidle: Add cpu_idle_miss trace event · 6ab4b199
    Kajetan Puchalski authored
    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.
    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>
    6ab4b199
cpuidle.c 18.6 KB