summaryrefslogtreecommitdiffstats
path: root/llvm/lib/XRay/FDRRecords.cpp
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2018-11-07 04:37:42 +0000
committerDean Michael Berris <dberris@google.com>2018-11-07 04:37:42 +0000
commit59439dd0698418c125fdd669dcfef194c598986d (patch)
treec343bb90406fed8006806d072152dba9669ddbcf /llvm/lib/XRay/FDRRecords.cpp
parent4a67035da24bc68e7543de7f063226971b8f41f9 (diff)
downloadbcm5719-llvm-59439dd0698418c125fdd669dcfef194c598986d.tar.gz
bcm5719-llvm-59439dd0698418c125fdd669dcfef194c598986d.zip
[XRay] Use TSC delta encoding for custom/typed events
Summary: This change updates the version number for FDR logs to 5, and update the trace processing to support changes in the custom event records. In the runtime, since we're already writing down the record preamble to handle CPU migrations and TSC wraparound, we can use the same TSC delta encoding in the custom event and typed event records that we use in function event records. We do the same change to typed events (which were unsupported before this change in the trace processing) which now show up in the trace. Future changes should increase our testing coverage to make custom and typed events as first class entities in the FDR mode log processing tools. This change is also a good example of how we end up supporting new record types in the FDR mode implementation. This shows the places where new record types are added and supported. Depends on D54139. Reviewers: mboerger Subscribers: hiraditya, arphaman, jfb, llvm-commits Differential Revision: https://reviews.llvm.org/D54140 llvm-svn: 346293
Diffstat (limited to 'llvm/lib/XRay/FDRRecords.cpp')
-rw-r--r--llvm/lib/XRay/FDRRecords.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/XRay/FDRRecords.cpp b/llvm/lib/XRay/FDRRecords.cpp
index 66d17ffcb53..2b68a73686f 100644
--- a/llvm/lib/XRay/FDRRecords.cpp
+++ b/llvm/lib/XRay/FDRRecords.cpp
@@ -26,6 +26,8 @@ Error PIDRecord::apply(RecordVisitor &V) { return V.visit(*this); }
Error NewBufferRecord::apply(RecordVisitor &V) { return V.visit(*this); }
Error EndBufferRecord::apply(RecordVisitor &V) { return V.visit(*this); }
Error FunctionRecord::apply(RecordVisitor &V) { return V.visit(*this); }
+Error CustomEventRecordV5::apply(RecordVisitor &V) { return V.visit(*this); }
+Error TypedEventRecord::apply(RecordVisitor &V) { return V.visit(*this); }
} // namespace xray
} // namespace llvm
OpenPOWER on IntegriCloud