From 6b67ff03002f39adf773f456aa4fd79bb22f3a04 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Thu, 1 Nov 2018 00:18:52 +0000 Subject: [XRay] Add CPU ID in Custom Event FDR Records Summary: This change cuts across compiler-rt and llvm, to increment the FDR log version number to 4, and include the CPU ID in the custom event records. This is a step towards allowing us to change the `llvm::xray::Trace` object to start representing both custom and typed events in the stream of records. Follow-on changes will allow us to change the kinds of records we're presenting in the stream of traces, to incorporate the data in custom/typed events. A follow-on change will handle the typed event case, where it may not fit within the 15-byte buffer for metadata records. This work is part of the larger effort to enable writing analysis and processing tools using a common in-memory representation of the events found in traces. The work will focus on porting existing tools in LLVM to use the common representation and informing the design of a library/framework for expressing trace event analysis as C++ programs. Reviewers: mboerger, eizan Subscribers: hiraditya, mgrang, llvm-commits Differential Revision: https://reviews.llvm.org/D53920 llvm-svn: 345798 --- llvm/unittests/XRay/FDRProducerConsumerTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/unittests/XRay/FDRProducerConsumerTest.cpp') diff --git a/llvm/unittests/XRay/FDRProducerConsumerTest.cpp b/llvm/unittests/XRay/FDRProducerConsumerTest.cpp index 838e6ca9bf1..09ec44db26e 100644 --- a/llvm/unittests/XRay/FDRProducerConsumerTest.cpp +++ b/llvm/unittests/XRay/FDRProducerConsumerTest.cpp @@ -54,7 +54,7 @@ template <> std::unique_ptr MakeRecord() { } template <> std::unique_ptr MakeRecord() { - return make_unique(4, 1, "data"); + return make_unique(4, 1, 2, "data"); } template <> std::unique_ptr MakeRecord() { -- cgit v1.2.3