def get_all_controllers():
 try:
  result = utils.run('lssubsys', ignore_status=False)
  controllers_str = result.stdout.strip()
  controller_list = []
  for controller in controllers_str.splitlines():
   controller_sub_list = controller.split(',')
   controller_list += controller_sub_list
 except error.CmdError:
  controller_list = ['cpuacct', 'cpu', 'memory', 'cpuset', 'devices', 'freezer', 'blkio', 'netcls']
 return controller_list

def get_all_controllers ( ) : try : result = utils . run ( 'lssubsys' , ignore_status = False ) controllers_str = result . stdout . strip ( ) controller_list = [ ] for controller in controllers_str . splitlines ( ) : controller_sub_list = controller . split ( ',' ) controller_list += controller_sub_list except error . CmdError : controller_list = [ 'cpuacct' , 'cpu' , 'memory' , 'cpuset' , 'devices' , 'freezer' , 'blkio' , 'netcls' ] return controller_list
get all controllers used in system :return: all used controllers .