Change-Id: I74ef8bdf8b0be9f29e0dfc2bae68c1cb451e1a7a
Signed-off-by: Yaroslav Brustinov <[email protected]>
if getpass.getuser() != 'root':
fail('Please run this program as root/with sudo')
+pid = os.getpid()
+ret = os.system('taskset -pc 0 %s' % pid)
+if ret:
+ fail('Could not set self affinity to core zero.')
+
daemon_actions = OrderedDict([('start', 'start the daemon'),
('stop', 'exit the daemon process'),
('show', 'prompt the status of daemon process (running / not running)'),