OSDN Git Service

[XRay][tools] Support new kinds of instrumentation map entries
authorDean Michael Berris <dberris@google.com>
Mon, 21 Aug 2017 00:14:06 +0000 (00:14 +0000)
committerDean Michael Berris <dberris@google.com>
Mon, 21 Aug 2017 00:14:06 +0000 (00:14 +0000)
commit5a082a40a266ad78cb99ac300bcf5a6f6a02b272
tree495463868f328e09843319ae321294e25d1b8a14
parent3f7e6da69674b23fa4e4db7efff18366b8e43dc9
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311305 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/XRay/InstrumentationMap.h
lib/XRay/InstrumentationMap.cpp
test/tools/llvm-xray/X86/Inputs/all-sleds.o [new file with mode: 0644]
test/tools/llvm-xray/X86/extract-all-sledtypes.txt [new file with mode: 0644]