The top level client is unchanged. This is primarily just moving code around. The client.py file is the only location with new code, which converts the old jsonrpc_call function into a class. Change-Id: I5fb7cd48f77f6affa3d9439128009bf63148acda Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/364316 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
15 lines
414 B
Python
Executable File
15 lines
414 B
Python
Executable File
from client import print_dict, print_array, int_arg
|
|
|
|
|
|
def kill_instance(args):
|
|
params = {'sig_name': args.sig_name}
|
|
args.client.call('kill_instance', params, verbose=args.verbose)
|
|
|
|
def context_switch_monitor(args):
|
|
params = {}
|
|
if args.enable:
|
|
params['enabled'] = True
|
|
if args.disable:
|
|
params['enabled'] = False
|
|
print_dict(args.client.call('context_switch_monitor', params))
|