def reset(self):
        self.enable_all_cores()
        self.enable_all_idle_states()
        self.reset_cgroups()
        self.cpuset.move_all_tasks_to(self.measuring_cluster)
        server_process = 'adbd' if self.device.platform == 'android' else 'sshd'
        server_pids = self.device.get_pids_of(server_process)
        children_ps = [e for e in self.device.ps()
                       if server_pids in e.ppid and e.name != 'sshd']
        children_pids = [e.pid for e in children_ps]
        pids_to_move = server_pids + children_pids
        self.cpuset.root.add_tasks(pids_to_move)
        for pid in pids_to_move:
            try:
                self.device.execute('busybox taskset -p 0x{:x} {}'.format(list_to_mask(self.measuring_cpus), pid))
            except DeviceError:
                pass
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/energy_model/__init__.py/EnergyModelInstrument.reset/swapped operands of `in`