From c1221cc685d03dd90856a0347aee1706d0821160 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Thu, 18 Jul 2024 17:03:41 -0500 Subject: [PATCH] split session and sessiond (#265) * split session and sessiond * better help * Update xprof/xprof.rb.in Co-authored-by: Brice Videau --------- Co-authored-by: Thomas Applencourt Co-authored-by: Brice Videau --- xprof/xprof.rb.in | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xprof/xprof.rb.in b/xprof/xprof.rb.in index 45cdd148..9047363d 100755 --- a/xprof/xprof.rb.in +++ b/xprof/xprof.rb.in @@ -553,8 +553,11 @@ def setup_lttng(backends) exec("lttng start #{lttng_session_uuid}") end -def teardown_lttng +def lttng_teardown_session exec("lttng destroy #{lttng_session_uuid}") +end + +def lttng_kill_sessiond # Need to kill the sessiond Daemon. It's safe because each job has their own # # In theory, opening the lttng-sessiond.pid file is racy. @@ -643,7 +646,12 @@ def trace_and_on_node_processing(usr_argv) syncd.local_barrier('waiting_for_application_ending') return unless mpi_local_master? - teardown_lttng + # Stop Lttng session + lttng_teardown_session + # Lttng session is finished, + # we can kill the session daemon + lttng_kill_sessiond + # Preprocess trace on_node_processing_babeltrace(backends) on_node_processing_sync_and_rename(syncd)