ae0aae1532
Now trace facility can be enabled/disabled at runtime, besides app starting parameters Change-Id: I086564665ba4375b946a5339d5921d6584e9bfda Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/435470 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
28 lines
748 B
Python
28 lines
748 B
Python
def enable_tpoint_group(client, name):
|
|
"""Enable trace on a specific tpoint group.
|
|
|
|
Args:
|
|
name: trace group name we want to enable in tpoint_group_mask. (for example "bdev").
|
|
"""
|
|
params = {'name': name}
|
|
return client.call('enable_tpoint_group', params)
|
|
|
|
|
|
def disable_tpoint_group(client, name):
|
|
"""Disable trace on a specific tpoint group.
|
|
|
|
Args:
|
|
name: trace group name we want to disable in tpoint_group_mask. (for example "bdev").
|
|
"""
|
|
params = {'name': name}
|
|
return client.call('disable_tpoint_group', params)
|
|
|
|
|
|
def get_tpoint_group_mask(client):
|
|
"""Get trace point group mask
|
|
|
|
Returns:
|
|
List of trace point group mask
|
|
"""
|
|
return client.call('get_tpoint_group_mask')
|