[PATCH] D49025: XRay basic mode PID and TID always fetch

Henry Zhu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 6 07:57:30 PDT 2018


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

XRayRecords now includes a PID field. Basic handlers fetch pid and tid each time they are called instead of caching the value. Added a testcase that calls fork and checks if the child TID is different from the parent TID to verify that the processes' TID are different in the trace.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49025

Files:
  compiler-rt/include/xray/xray_records.h
  compiler-rt/lib/xray/xray_basic_logging.cc
  compiler-rt/test/xray/TestCases/Posix/fork_basic_logging.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49025.154407.patch
Type: text/x-patch
Size: 5597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180706/9ff03f78/attachment.bin>


More information about the llvm-commits mailing list