# a wakeup and another idle nap) can mess up the duty cycle of the # rt-app task we're running. In our case, a 50% duty cycle, 16ms period # task would always be active for 8ms, but it would sometimes sleep for # only 5 or 6 ms. # This is fine to do this here, as we only care about the proper # behaviour of the signal on running/not-running tasks. with target.disable_idle_states(): with target.cpufreq.use_governor('performance'): cls.run_rtapp(target, res_dir, rtapp_profile, ftrace_coll) return cls(res_dir, plat_info) PhaseStats = namedtuple( "PhaseStats", ['start', 'end', 'area_util', 'area_enqueued', 'area_ewma'], module=__name__, ) ActivationSignals = namedtuple( "ActivationSignals", ['time', 'util_avg', 'util_est_enqueued', 'util_est_ewma'], module=__name__, ) class UtilConvergence(UtilTrackingBase): """ Basic checks for estimated utilization signals **Expected Behaviour:**
# only 5 or 6 ms. # This is fine to do this here, as we only care about the proper # behaviour of the signal on running/not-running tasks. with target.disable_idle_states(): with target.cpufreq.use_governor('performance'): cls.run_rtapp(target, res_dir, rtapp_profile, collector=collector) return cls(res_dir, plat_info) PhaseStats = namedtuple( "PhaseStats", ['start', 'end', 'mean_util', 'mean_enqueued', 'mean_ewma', 'issue'], module=__name__, ) ActivationSignals = namedtuple( "ActivationSignals", ['time', 'util', 'enqueued', 'ewma', 'issue'], module=__name__, ) class UtilConvergence(UtilTrackingBase): """ Basic checks for estimated utilization signals. .. attention:: Tests methods of this class assume the kernel has the util