lttng: enable-channel: move kernel tracer status check to util
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Dec 2023 19:35:27 +0000 (14:35 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 28 Feb 2024 15:39:28 +0000 (10:39 -0500)
commit4d4c8b8e68081f91347458b7e072dcfcac32385b
tree6f173f5033332a4ce9dfb2269176ff09f8f1289b
parentd93bbc2a50cd24ea2837d8710c99b71b5d1a5f11
lttng: enable-channel: move kernel tracer status check to util

In order to re-use the same logic in the enable-event command, move the
kernel status checking and printing to a common utility function.

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