This is an archive of the discontinued LLVM Phabricator instance.

[XRay][compiler-rt] Add another work-around to XRay FDR tests when TSC emulation is needed
ClosedPublic

Authored by dyung on Apr 11 2017, 5:49 PM.

Details

Summary

This patch implements the work-around suggested by Dean in PR32620 comment 1 to fix the problem in that bug. The only difference is that the change was required in two places, not just one.

With this patch, the test "XRay-x86_64-linux :: TestCases/Linux/fdr-mode.cc" should now pass on a x86_64 linux machine that does not have support for rdtscp.

Diff Detail

Repository
rL LLVM

Event Timeline

dyung created this revision.Apr 11 2017, 5:49 PM
dberris accepted this revision.Apr 11 2017, 6:02 PM
dberris added subscribers: kpw, pelikan.

LGTM

@kpw -- just as note, we may need to introduce some logic in the initialisation routine for FDR mode to do the feature probing once.

@pelikan -- this use-case in FDR logging may introduce a wrinkle in the refactoring we talked about for cleaning up the emulation/raw tsc support.

This revision is now accepted and ready to land.Apr 11 2017, 6:02 PM
This revision was automatically updated to reflect the committed changes.