]> granicus.if.org Git - llvm/commit
[XRay][tools] Support arg1 logging entries in the basic logging mode
authorDean Michael Berris <dberris@google.com>
Thu, 5 Oct 2017 05:18:17 +0000 (05:18 +0000)
committerDean Michael Berris <dberris@google.com>
Thu, 5 Oct 2017 05:18:17 +0000 (05:18 +0000)
commit728dd9a060fb5c665e39616a699b4e5a041e2bf0
treecbde69e2b97f8c5d356b480d05787cffaa8a6f05
parentabd8a85848ed44a280b0272e36e6d433100925b7
[XRay][tools] Support arg1 logging entries in the basic logging mode

Summary:
The arg1 logging handler changed in compiler-rt to start writing a
different type for entries encountered when logging the first argument
of XRay-instrumented functions. This change allows the trace loader to
support reading these record types as well as prepare for when the
basic (naive) mode implementation starts writing down the argument
payloads.

Without this change, binaries with arg1 logging support enabled start
writing unreadable logs for any of the XRay tracing tools.

Reviewers: pelikan

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314967 91177308-0d34-0410-b5e6-96231b3b80d8
lib/XRay/Trace.cpp
test/tools/llvm-xray/X86/Inputs/naive-with-arg1-entries.xray [new file with mode: 0644]
test/tools/llvm-xray/X86/convert-basic-arg1-to-yaml.txt [new file with mode: 0644]