lttng: enable-event: treat 'all' case as a regular pattern
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 26 Feb 2024 20:56:27 +0000 (15:56 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 28 Feb 2024 15:41:08 +0000 (10:41 -0500)
commit77878c17ea0ac9508c21899bd38da1f971d52f5f
tree81b5ba35eca945cc85f3d9e494b6b58ed4837dd0
parent27b5aa577cff515f5273f75320190877a85317e2
lttng: enable-event: treat 'all' case as a regular pattern

The cmd_enable_events function is essentially duplicated to handle the
"all events" case, but it simply substitutes the event name for '*'.

The case can be eliminated if we simply add '*' as one of the patterns
to enable when the '--all' option is used.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: If4235c391c2ce38a67208184c97bbe0f5c40c97d
src/bin/lttng/commands/enable_events.cpp
This page took 0.025573 seconds and 4 git commands to generate.