Skip to content

Commit

Permalink
Fix blocking in xprof
Browse files Browse the repository at this point in the history
Stupid mistake on my side...
  • Loading branch information
TApplencourt authored Jul 8, 2024
1 parent 57b4c15 commit c417def
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xprof/xprof.rb.in
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit c417def

Please sign in to comment.