adjust tracing of ompt callpaths tracked with -tt

adjust tracing of ompt callpaths tracked with -tt

this commit fixes two problems:

  1. get_callpath included calls to hpcrun_safe_enter/exit yet in one context where the get_callpath was called, hpcrun_safe_enter/exit were surrounding the call as well. patch: remove the calls to safe enter/exit from get_callpath and put them around an unprotected call to get_callpath.
  2. remove the call to trace target_node at the end of get_callpath. in one context, this was not set until returning from this function. patch: put the trace writing call after each call to get_callpath. this fix was tested by an atpesc participant.

Signed-off-by: John Mellor-Crummey johnmc@rice.edu

To Demonstrate

Trace an OpenMP offloading code launching very short kernels with -tt. The probability of being sampled within the unprotected critical section while unwinding increases.

Backward Compatibility

No concerns.

Merge request reports

Loading