diff options
author | Dean Michael Berris <dberris@google.com> | 2018-09-11 06:36:51 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2018-09-11 06:36:51 +0000 |
commit | d2c50408d42f718c305a46c9cc6503d9156ea4d9 (patch) | |
tree | fdd044d1aba6d02aa05c941f1b6d670aa605ae07 /llvm/unittests/XRay/FDRRecordPrinterTest.cpp | |
parent | 9aacaffd9833381ed3d5de32fbece02afe2bba5e (diff) | |
download | bcm5719-llvm-d2c50408d42f718c305a46c9cc6503d9156ea4d9.tar.gz bcm5719-llvm-d2c50408d42f718c305a46c9cc6503d9156ea4d9.zip |
[XRay] Add TSC to NewCPUId Records
Summary:
This more correctly reflects the data written by the FDR mode runtime.
This is a continuation of the work in D50441.
Reviewers: mboerger, eizan
Subscribers: hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D51911
llvm-svn: 341905
Diffstat (limited to 'llvm/unittests/XRay/FDRRecordPrinterTest.cpp')
-rw-r--r-- | llvm/unittests/XRay/FDRRecordPrinterTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/XRay/FDRRecordPrinterTest.cpp b/llvm/unittests/XRay/FDRRecordPrinterTest.cpp index f4cebf8d1f4..339d4b0d428 100644 --- a/llvm/unittests/XRay/FDRRecordPrinterTest.cpp +++ b/llvm/unittests/XRay/FDRRecordPrinterTest.cpp @@ -39,10 +39,10 @@ template <> struct Helper<WallclockRecord> { template <> struct Helper<NewCPUIDRecord> { static std::unique_ptr<Record> construct() { - return make_unique<NewCPUIDRecord>(1); + return make_unique<NewCPUIDRecord>(1, 2); } - static const char *expected() { return "<CPU ID: 1>"; } + static const char *expected() { return "<CPU: id = 1, tsc = 2>"; } }; template <> struct Helper<TSCWrapRecord> { |