Lines Matching full:domain
27 # TODO(tbroch): dram domain only for server class CPU's
42 error.TestFail: If domain is invalid.
47 for domain in set(domains):
48 rapl_list.append(Rapl(domain))
56 domain: string, name of power rail domain.
98 def __init__(self, domain):
102 domain: string, name of power rail domain
105 error.TestError: If domain is invalid
107 if domain not in VALID_DOMAINS:
108 raise error.TestError("domain %s not in valid domains ( %s )" %
109 (domain, ", ".join(VALID_DOMAINS)))
110 super(Rapl, self).__init__(domain)
113 logging.debug("RAPL %s joules_per_lsb = %.3e", domain,
164 msr = self._DOMAIN_MSRS[self.domain]['energy_status']
168 def domain(self):
169 """Convenience method to expose Rapl instance domain name.
172 string, name of Rapl domain.
174 return self.domain
178 """Calculate the average power used for RAPL domain.
201 (self.domain, self._MAX_MEAS_SECS))