[PATCH] D29438: [XRay] Probe for CPU features that XRay needs

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 20:27:23 PST 2017


dberris created this revision.
Herald added a reviewer: javed.absar.

In llvm.org/PR31756 it's pointed out that sometimes rdtscp isn't
available. We fix it here by checking first whether it's availble before
installing the logging handler. In future commits we can have
alternative implementations, maybe working around some of the
constraints on some systems.

This change enables us to make that determination, but report an error
instead when the features aren't available.


https://reviews.llvm.org/D29438

Files:
  lib/xray/xray_AArch64.cc
  lib/xray/xray_arm.cc
  lib/xray/xray_emulate_tsc.h
  lib/xray/xray_inmemory_log.cc
  lib/xray/xray_x86_64.cc
  lib/xray/xray_x86_64.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29438.86762.patch
Type: text/x-patch
Size: 3328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170202/b757f845/attachment.bin>


More information about the llvm-commits mailing list