Switch to DEFAULT_EVENTS_UST instead of DEFAULT_EVENTS_ROS

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
This commit is contained in:
Christophe Bedard 2020-03-13 18:27:08 -04:00
parent 42823be8d5
commit 50ae44e73d
2 changed files with 3 additions and 1 deletions

View file

@ -49,7 +49,7 @@ def add_arguments(parser: argparse.ArgumentParser) -> None:
help='path of the base directory for trace data (default: %(default)s)')
events_ust_arg = parser.add_argument( # type: ignore
'-u', '--ust', nargs='*', dest='events_ust', metavar='EVENT',
default=names.DEFAULT_EVENTS_ROS,
default=names.DEFAULT_EVENTS_UST,
help='the userspace events to enable (default: see tracetools_trace.tools.names) '
'[to disable all UST events, '
'provide this flag without any event name]')

View file

@ -75,6 +75,8 @@ DEFAULT_EVENTS_ROS = [
'ros2:callback_end',
]
DEFAULT_EVENTS_UST = DEFAULT_EVENTS_ROS
CONTEXT_TYPE_CONSTANTS_MAP = {
'pid': 'EVENT_CONTEXT_PID',
'procname': 'EVENT_CONTEXT_PROCNAME',