[XRay][compiler-rt] Runtime changes to support custom event logging
authorDean Michael Berris <dberris@google.com>
Fri, 12 May 2017 01:07:41 +0000 (01:07 +0000)
committerDean Michael Berris <dberris@google.com>
Fri, 12 May 2017 01:07:41 +0000 (01:07 +0000)
commit29e16deb177528da8858d9866381cf12e40b406a
treed5cd3ab80c9420014d607793cf2e450b5cec7f4a
parenta7bbe4481a79772d09553b0e01d3024f1dd96ed8
[XRay][compiler-rt] Runtime changes to support custom event logging

Summary:
This change implements support for the custom event logging sleds and
intrinsics at runtime. For now it only supports handling the sleds in
x86_64, with the implementations for other architectures stubbed out to
do nothing.

NOTE: Work in progress, uploaded for exposition/exploration purposes.

Depends on D27503, D30018, and D33032.

Reviewers: echristo, javed.absar, timshen

Subscribers: mehdi_amini, nemanjai, llvm-commits

Differential Revision: https://reviews.llvm.org/D30630

llvm-svn: 302857
14 files changed:
compiler-rt/include/xray/xray_interface.h
compiler-rt/lib/xray/xray_AArch64.cc
compiler-rt/lib/xray/xray_arm.cc
compiler-rt/lib/xray/xray_fdr_log_records.h
compiler-rt/lib/xray/xray_fdr_logging.cc
compiler-rt/lib/xray/xray_fdr_logging_impl.h
compiler-rt/lib/xray/xray_interface.cc
compiler-rt/lib/xray/xray_interface_internal.h
compiler-rt/lib/xray/xray_mips.cc
compiler-rt/lib/xray/xray_mips64.cc
compiler-rt/lib/xray/xray_powerpc64.cc
compiler-rt/lib/xray/xray_trampoline_x86_64.S
compiler-rt/lib/xray/xray_x86_64.cc
compiler-rt/test/xray/TestCases/Linux/custom-event-logging.cc [new file with mode: 0644]