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