2019-09-23 13:11:10 +00:00
|
|
|
from .helpers import deprecated_alias
|
|
|
|
|
|
|
|
|
|
|
|
@deprecated_alias('enable_tpoint_group')
|
|
|
|
def trace_enable_tpoint_group(client, name):
|
2018-11-29 11:12:26 +00:00
|
|
|
"""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}
|
2019-09-23 13:11:10 +00:00
|
|
|
return client.call('trace_enable_tpoint_group', params)
|
2018-11-29 11:12:26 +00:00
|
|
|
|
|
|
|
|
2019-09-23 13:21:57 +00:00
|
|
|
@deprecated_alias('disable_tpoint_group')
|
|
|
|
def trace_disable_tpoint_group(client, name):
|
2018-11-29 11:12:26 +00:00
|
|
|
"""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}
|
2019-09-23 13:21:57 +00:00
|
|
|
return client.call('trace_disable_tpoint_group', params)
|
2018-11-29 11:12:26 +00:00
|
|
|
|
|
|
|
|
2019-09-23 13:33:00 +00:00
|
|
|
@deprecated_alias('get_tpoint_group_mask')
|
|
|
|
def trace_get_tpoint_group_mask(client):
|
2018-11-29 11:12:26 +00:00
|
|
|
"""Get trace point group mask
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
List of trace point group mask
|
|
|
|
"""
|
2019-09-23 13:33:00 +00:00
|
|
|
return client.call('trace_get_tpoint_group_mask')
|