Home | History | Annotate | Download | only in utils

Lines Matching refs:tc

264         for tc in self._experiments_conf['confs']:
266 if not self._target_configure(tc):
270 wload, test_dir = self._wload_init(tc, wl_idx)
275 conf=tc,
283 self._target_cleanup(tc)
294 def _cgroups_init(self, tc):
296 if 'cgroups' not in tc:
303 for kind in tc['cgroups']['conf']:
312 def _setup_kernel(self, tc):
314 self.te.install_kernel(tc, reboot=True)
316 self._setup_rootfs(tc)
318 def _setup_sched_features(self, tc):
319 if 'sched_features' not in tc:
322 feats = tc['sched_features'].split(",")
328 def _setup_rootfs(self, tc):
330 self._cgroups_init(tc)
359 def _setup_cpufreq(self, tc):
360 if 'cpufreq' not in tc:
365 cpufreq = tc['cpufreq']
387 def _setup_cgroups(self, tc):
388 if 'cgroups' not in tc:
391 if 'default' in tc['cgroups']:
392 self._default_cgroup = tc['cgroups']['default']
394 if 'conf' not in tc['cgroups']:
397 for kind in tc['cgroups']['conf']:
405 self._setup_controller(tc, controller)
408 def _setup_controller(self, tc, controller):
412 for name in tc['cgroups']['conf'][controller.kind]:
424 self._setup_group(tc, group)
427 def _setup_group(self, tc, group):
431 group.set(**tc['cgroups']['conf'][kind][name])
433 def _setup_files(self, tc):
434 if 'files' not in tc:
437 for name, value in tc['files'].iteritems():
453 def _target_configure(self, tc):
456 .format(tc['tag']))
457 self._setup_kernel(tc)
458 self._setup_sched_features(tc)
459 self._setup_cpufreq(tc)
460 self._setup_files(tc)
461 return self._setup_cgroups(tc)
463 def _target_conf_flag(self, tc, flag):
464 if 'flags' not in tc:
467 has_flag = flag in tc['flags']
469 tc['tag'], flag, has_flag)
472 def _target_cleanup(self, tc):
641 def _wload_init(self, tc, wl_idx):
642 tc_idx = tc['tag']
666 tc = experiment.conf
668 tc_idx = tc['tag']
681 if self._target_conf_flag(tc, 'freeze_userspace'):
685 if self.te.ftrace and self._target_conf_flag(tc, 'ftrace'):
701 if self.te.ftrace and self._target_conf_flag(tc, 'ftrace'):