Change-Id: I1f9948ceacc615a9f0156c45de4c45cbe23ae9b0 Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469135 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
32 lines
841 B
Python
32 lines
841 B
Python
from .helpers import deprecated_alias
|
|
|
|
|
|
@deprecated_alias('enable_tpoint_group')
|
|
def trace_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('trace_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')
|