diff options
| author | Dean Michael Berris <dberris@google.com> | 2017-08-21 00:14:06 +0000 |
|---|---|---|
| committer | Dean Michael Berris <dberris@google.com> | 2017-08-21 00:14:06 +0000 |
| commit | c5caf3e9c6ee19fc23555c50bbc27b7f242587a0 (patch) | |
| tree | 7085a67c8fffb36b9df1687cd627d2b9a081e0db /llvm/lib | |
| parent | bd6dc142306f5caaa87725f5f58c29b37da9cc32 (diff) | |
| download | bcm5719-llvm-c5caf3e9c6ee19fc23555c50bbc27b7f242587a0.tar.gz bcm5719-llvm-c5caf3e9c6ee19fc23555c50bbc27b7f242587a0.zip | |
[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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/XRay/InstrumentationMap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/XRay/InstrumentationMap.cpp b/llvm/lib/XRay/InstrumentationMap.cpp index d9ce255bc68..a7d6600b0d8 100644 --- a/llvm/lib/XRay/InstrumentationMap.cpp +++ b/llvm/lib/XRay/InstrumentationMap.cpp @@ -104,7 +104,8 @@ loadELF64(StringRef Filename, object::OwningBinary<object::ObjectFile> &ObjFile, static constexpr SledEntry::FunctionKinds Kinds[] = { SledEntry::FunctionKinds::ENTRY, SledEntry::FunctionKinds::EXIT, SledEntry::FunctionKinds::TAIL, - }; + SledEntry::FunctionKinds::LOG_ARGS_ENTER, + SledEntry::FunctionKinds::CUSTOM_EVENT}; if (Kind >= sizeof(Kinds)) return errorCodeToError( std::make_error_code(std::errc::executable_format_error)); |

