This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][Tool] Improving stack trace for Archer
ClosedPublic

Authored by protze.joachim on Nov 18 2019, 11:29 AM.

Details

Summary

The OpenMP runtime is not instrumented, so entering the runtime leaves no hint on the source line of the pragma on ThreadSanitizer's function stack.

This patch adds function entry/exit annotations for OpenMP parallel regions, and synchronization regions (barrier, taskwait, taskgroup).

Diff Detail

Event Timeline

jdoerfert accepted this revision.Nov 26 2019, 9:00 PM

LGTM, one nit below.

openmp/tools/archer/ompt-tsan.cpp
310

Maybe a comment to describe what this is.

This revision is now accepted and ready to land.Nov 26 2019, 9:00 PM
protze.joachim set the repository for this revision to rG LLVM Github Monorepo.Jan 10 2020, 4:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2020, 4:02 AM
This revision was automatically updated to reflect the committed changes.