2018-03-27 21:31:52 +00:00
|
|
|
def kill_instance(client, args):
|
2017-06-06 21:22:03 +00:00
|
|
|
params = {'sig_name': args.sig_name}
|
2018-03-27 21:31:52 +00:00
|
|
|
return client.call('kill_instance', params)
|
2017-06-06 21:22:03 +00:00
|
|
|
|
2018-02-14 21:34:55 +00:00
|
|
|
|
2018-03-27 21:31:52 +00:00
|
|
|
def context_switch_monitor(client, args):
|
2017-06-06 21:22:03 +00:00
|
|
|
params = {}
|
|
|
|
if args.enable:
|
|
|
|
params['enabled'] = True
|
|
|
|
if args.disable:
|
|
|
|
params['enabled'] = False
|
2018-03-27 21:31:52 +00:00
|
|
|
return client.call('context_switch_monitor', params)
|