[PATCH] D49153: [XRay][compiler-rt] Add PID field to llvm-xray tool and add PID metadata record entry in FDR mode

Henry Zhu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 14:08:33 PDT 2018


Maknee created this revision.
Maknee added a reviewer: dberris.
Herald added subscribers: Sanitizers, llvm-commits, hiraditya.

llvm-xray changes:

- account-mode - process-id  {...} shows after thread-id
- convert-mode - process {...} shows after thread

FDR logging changes:

- in writeBufferPreamble, there is an additional PID Metadata record (after thread id record and tsc record)

Test cases changes:

- fdr-mode.cc, fdr-single-thread.cc, fdr-thread-order.cc modified to catch process id output in the log.




Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49153

Files:
  compiler-rt/lib/xray/xray_fdr_log_records.h
  compiler-rt/lib/xray/xray_fdr_logging.cc
  compiler-rt/test/xray/TestCases/Posix/fdr-mode.cc
  compiler-rt/test/xray/TestCases/Posix/fdr-single-thread.cc
  compiler-rt/test/xray/TestCases/Posix/fdr-thread-order.cc
  llvm/include/llvm/XRay/XRayRecord.h
  llvm/include/llvm/XRay/YAMLXRayRecord.h
  llvm/lib/XRay/Trace.cpp
  llvm/tools/llvm-xray/xray-account.cpp
  llvm/tools/llvm-xray/xray-converter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49153.154872.patch
Type: text/x-patch
Size: 19350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180710/caaf3a48/attachment.bin>


More information about the llvm-commits mailing list