Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XRay][tools] Support new kinds of instrumentation map entries
Summary: When extracting the instrumentation map from a binary, we should be able to recognize the new kinds of instrumentation sleds we've been emitting with the compiler using -fxray-instrument. This change adds a test for all the kinds of sleds we currently support (sans the tail-call sled, which is a bit harder to force in a simple prebuilt input). Reviewers: kpw, dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36819 llvm-svn: 311305
- Loading branch information
1 parent
bd6dc14
commit c5caf3e
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Test that we can extract all the sled types we know about. This is built with | ||
# a a file with functions always instrumented, and using the built-ins and | ||
# intrinsics supported by clang. Those are built with: | ||
# | ||
# clang++ -c all-sleds.cc -o all-sleds.o -fpic -std=c++11 -fxray-instrument | ||
# | ||
# RUN: llvm-xray extract %S/Inputs/all-sleds.o -s | FileCheck %s | ||
# CHECK-DAG: {{kind:.function-enter}} | ||
# CHECK-DAG: {{kind:.function-exit}} | ||
# CHECK-DAG: {{kind:.custom-event}} | ||
# CHECK-DAG: {{kind:.log-args-enter}} |