4dc0ef6f45
rpmbuild pointed out that this is wrong to have executable files without shebang. Taking the opportunity and fix this for other files too. Change-Id: Ib21f436672150edc0aff511bff2eb6839870cf79 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/425382 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
66 lines
1.3 KiB
Python
66 lines
1.3 KiB
Python
def set_trace_flag(client, flag):
|
|
"""Set trace flag.
|
|
|
|
Args:
|
|
flag: trace mask we want to set. (for example "nvme")
|
|
"""
|
|
params = {'flag': flag}
|
|
return client.call('set_trace_flag', params)
|
|
|
|
|
|
def clear_trace_flag(client, flag):
|
|
"""Clear trace flag.
|
|
|
|
Args:
|
|
flag: trace mask we want to clear. (for example "nvme")
|
|
"""
|
|
params = {'flag': flag}
|
|
return client.call('clear_trace_flag', params)
|
|
|
|
|
|
def get_trace_flags(client):
|
|
"""Get trace flags
|
|
|
|
Returns:
|
|
List of trace flag
|
|
"""
|
|
return client.call('get_trace_flags')
|
|
|
|
|
|
def set_log_level(client, level):
|
|
"""Set log level.
|
|
|
|
Args:
|
|
level: log level we want to set. (for example "DEBUG")
|
|
"""
|
|
params = {'level': level}
|
|
return client.call('set_log_level', params)
|
|
|
|
|
|
def get_log_level(client):
|
|
"""Get log level
|
|
|
|
Returns:
|
|
Current log level
|
|
"""
|
|
return client.call('get_log_level')
|
|
|
|
|
|
def set_log_print_level(client, level):
|
|
"""Set log print level.
|
|
|
|
Args:
|
|
level: log print level we want to set. (for example "DEBUG")
|
|
"""
|
|
params = {'level': level}
|
|
return client.call('set_log_print_level', params)
|
|
|
|
|
|
def get_log_print_level(client):
|
|
"""Get log print level
|
|
|
|
Returns:
|
|
Current log print level
|
|
"""
|
|
return client.call('get_log_print_level')
|