From 0b50b1ad43a4f6bc82be298e4c7be9ee569a5242 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Thu, 19 Sep 2024 16:17:26 -0500 Subject: [PATCH] Remove MPI_Wtime* from default trace mode (#290) Co-authored-by: Thomas Applencourt --- xprof/xprof.rb.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xprof/xprof.rb.in b/xprof/xprof.rb.in index e2aed6d5..9b115c23 100755 --- a/xprof/xprof.rb.in +++ b/xprof/xprof.rb.in @@ -517,7 +517,12 @@ end def enable_events_mpi(channel_name, tracing_mode: 'default', profiling: true) lttng_enable = "lttng enable-event --userspace --session=#{lttng_session_uuid} --channel=#{channel_name}" - exec("#{lttng_enable} lttng_ust_mpi:*") + case tracing_mode + when 'full' + exec("#{lttng_enable} lttng_ust_mpi:*") + when 'default' + exec("#{lttng_enable} lttng_ust_mpi:* -x lttng_ust_mpi:MPI_WTime*") + end exec("#{lttng_enable} lttng_ust_mpi_type:*") end