[PATCH] D54139: [XRay] Update XRayRecord to support Custom/Typed Events

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 5 21:41:24 PST 2018


dberris created this revision.
dberris added a reviewer: mboerger.
Herald added a subscriber: hiraditya.

This change cuts across LLVM and compiler-rt to add support for
rendering custom events in the XRayRecord type, to allow for including
user-provided annotations in the output YAML (as raw bytes).

This work enables us to add custom event and typed event records into
the `llvm::xray::Trace` type for user-provided events. This can then be
programmatically handled through the C++ API and can be included in some
of the tooling as well. For now we support printing the raw data we
encounter in the custom events in the converted output.

Future work will allow us to start interpreting these custom and typed
events through a yet-to-be-defined API for extending the trace analysis
library.


https://reviews.llvm.org/D54139

Files:
  compiler-rt/lib/xray/tests/unit/fdr_controller_test.cc
  compiler-rt/lib/xray/tests/unit/test_helpers.cc
  compiler-rt/test/xray/TestCases/Posix/basic-filtering.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
  compiler-rt/test/xray/TestCases/Posix/fork_basic_logging.cc
  llvm/include/llvm/XRay/FDRTraceExpander.h
  llvm/include/llvm/XRay/XRayRecord.h
  llvm/include/llvm/XRay/YAMLXRayRecord.h
  llvm/lib/XRay/FDRTraceExpander.cpp
  llvm/lib/XRay/Profile.cpp
  llvm/lib/XRay/RecordPrinter.cpp
  llvm/lib/XRay/Trace.cpp
  llvm/test/tools/llvm-xray/X86/convert-basic-arg1-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-basic-log-arg1-version3-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-basic-log-version3-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-fdr-arg1-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-fdr-log-arg1-version3-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-fdr-log-version3-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-fdr-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-roundtrip.yaml
  llvm/test/tools/llvm-xray/X86/convert-to-yaml.txt
  llvm/test/tools/llvm-xray/X86/convert-with-debug-syms.txt
  llvm/test/tools/llvm-xray/X86/convert-with-standalone-instrmap.txt
  llvm/test/tools/llvm-xray/X86/convert-with-yaml-instrmap.txt
  llvm/tools/llvm-xray/xray-converter.cpp
  llvm/tools/llvm-xray/xray-graph.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54139.172710.patch
Type: text/x-patch
Size: 48612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/6dd99e84/attachment.bin>


More information about the llvm-commits mailing list