From c417def39fa4e939d313fdee9d0373283ca31ff9 Mon Sep 17 00:00:00 2001 From: Thomas Applencourt Date: Mon, 8 Jul 2024 13:00:53 -0500 Subject: [PATCH] Fix blocking in xprof Stupid mistake on my side... --- xprof/xprof.rb.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xprof/xprof.rb.in b/xprof/xprof.rb.in index 0be9c2f9..f2ef6bf7 100755 --- a/xprof/xprof.rb.in +++ b/xprof/xprof.rb.in @@ -366,10 +366,11 @@ def env_tracers h["LTTNG_UST_#{name.upcase}_PROFILE"] = 1 if OPTIONS[:profile] h["LTTNG_UST_#{name.upcase}_VERBOSE"] = 1 if LOGGER.level <= Logger::DEBUG end - + # Usr Apps need to be launched with this to support blocking. + h['LTTNG_UST_ALLOW_BLOCKING'] = 1 # Customization h['LTTNG_UST_ZE_PARANOID_DRIFT'] = 1 if OPTIONS[:'backend-names'].include?('ze') && OPTIONS[:profile] - + if OPTIONS[:'backend-names'].include?('omp') backends << 'omp' h['OMP_TOOL_LIBRARIES'] = File.join(LIBDIR, 'libTracerOMPT.so')