]> granicus.if.org Git - llvm/commit
[XRay] convert FDR arg1 log entries
authorMartin Pelikan <martin.pelikan@gmail.com>
Wed, 27 Sep 2017 04:48:03 +0000 (04:48 +0000)
committerMartin Pelikan <martin.pelikan@gmail.com>
Wed, 27 Sep 2017 04:48:03 +0000 (04:48 +0000)
commit62b26114df7d9d2db84e2a46cdf88377e15ad104
tree09eb87baa469bf9fa6e916f4a25b70b4309225b4
parent342e0df15d9e9f8af699e913e9dd28dab7dabc31
[XRay] convert FDR arg1 log entries

Summary:
A new FDR metadata record will support logging a function call argument;
appending multiple metadata records will represent a sequence of arguments
meaning that "holes" are not representable by the buffer format.  Each
call argument is currently a 64-bit value (useful for "this" pointers and
synchronization objects).

If present, we put this argument to the function call "entry" record it
belongs to, and alter its type to notify the user of its presence.

Reviewers: dberris

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314269 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/XRay/XRayRecord.h
include/llvm/XRay/YAMLXRayRecord.h
lib/XRay/Trace.cpp
test/tools/llvm-xray/X86/Inputs/fdr-log-arg1.xray [new file with mode: 0644]
test/tools/llvm-xray/X86/convert-fdr-arg1-to-yaml.txt [new file with mode: 0644]
tools/llvm-xray/xray-account.cc
tools/llvm-xray/xray-converter.cc
tools/llvm-xray/xray-graph.cc