Spdk/scripts/rpc/app.py
Daniel Verkamp df897ed490 scripts/rpc.py: move printing into main rpc.py
The modules in scripts/rpc/*.py should be a generic, reusable library;
the printing should be done by the command-line frontend (rpc.py)
instead of the library code.

Change-Id: Ibeb022a3591f0a140fc43104d8dcf17d7041e48b
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/404426
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-03-26 00:57:53 -04:00

13 lines
341 B
Python
Executable File

def kill_instance(args):
params = {'sig_name': args.sig_name}
return args.client.call('kill_instance', params)
def context_switch_monitor(args):
params = {}
if args.enable:
params['enabled'] = True
if args.disable:
params['enabled'] = False
return args.client.call('context_switch_monitor', params)