[llvm] r345955 - [XRay] Fix tests with updated fdr-dump
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 2 01:35:46 PDT 2018
Author: dberris
Date: Fri Nov 2 01:35:46 2018
New Revision: 345955
URL: http://llvm.org/viewvc/llvm-project?rev=345955&view=rev
Log:
[XRay] Fix tests with updated fdr-dump
Follow-up to D54022.
Modified:
llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1-version-3.txt
llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1.txt
llvm/trunk/unittests/XRay/FDRRecordPrinterTest.cpp
Modified: llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1-version-3.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1-version-3.txt?rev=345955&r1=345954&r2=345955&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1-version-3.txt (original)
+++ llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1-version-3.txt Fri Nov 2 01:35:46 2018
@@ -12,14 +12,14 @@
; CHECK-NEXT: <CPU: id = 6, tsc = 2034042117104344>
; CHECK-NEXT: <TSC Wrap: base = 2034042117104344>
; CHECK-EMPTY:
-; CHECK-NEXT: - <Function Enter: #3 delta = +3>
-; CHECK-NEXT: - <Function Exit: #3 delta = +3>
-; CHECK-NEXT: - <Function Enter: #2 delta = +2>
-; CHECK-NEXT: - <Function Exit: #2 delta = +2>
+; CHECK-NEXT: - <Function Enter: #3 delta = +0>
+; CHECK-NEXT: - <Function Exit: #3 delta = +94744>
+; CHECK-NEXT: - <Function Enter: #2 delta = +1028487290>
+; CHECK-NEXT: - <Function Exit: #2 delta = +75822>
; CHECK-EMPTY:
; CHECK-NEXT: Metadata: <TSC Wrap: base = 2034049739853430>
; CHECK-EMPTY:
-; CHECK-NEXT: - <Function Enter: #1 delta = +1>
+; CHECK-NEXT: - <Function Enter: #1 delta = +0>
; CHECK-NEXT: : <Call Argument: data = 67 (hex = 0x43)>
-; CHECK-NEXT: - <Function Exit: #1 delta = +1>
+; CHECK-NEXT: - <Function Exit: #1 delta = +24724>
Modified: llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1.txt?rev=345955&r1=345954&r2=345955&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1.txt (original)
+++ llvm/trunk/test/tools/llvm-xray/X86/fdr-dump-arg1.txt Fri Nov 2 01:35:46 2018
@@ -9,8 +9,8 @@
; CHECK-NEXT: <CPU: id = 49, tsc = 18828908666540172>
; CHECK-NEXT: <TSC Wrap: base = 18828908666540172>
; CHECK-EMPTY:
-; CHECK-NEXT: - <Function Enter: #1 delta = +1>
+; CHECK-NEXT: - <Function Enter: #1 delta = +3146>
; CHECK-NEXT: : <Call Argument: data = 1 (hex = 0x1)>
-; CHECK-NEXT: - <Function Exit: #1 delta = +1>
+; CHECK-NEXT: - <Function Exit: #1 delta = +52286>
; CHECK-NEXT: *** <End of Buffer>
Modified: llvm/trunk/unittests/XRay/FDRRecordPrinterTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/XRay/FDRRecordPrinterTest.cpp?rev=345955&r1=345954&r2=345955&view=diff
==============================================================================
--- llvm/trunk/unittests/XRay/FDRRecordPrinterTest.cpp (original)
+++ llvm/trunk/unittests/XRay/FDRRecordPrinterTest.cpp Fri Nov 2 01:35:46 2018
@@ -132,7 +132,7 @@ TEST(FDRRecordPrinterTest, WriteFunction
FunctionRecord R(RecordTypes::ENTER, 1, 2);
ASSERT_FALSE(errorToBool(R.apply(P)));
OS.flush();
- EXPECT_THAT(Data, Eq("<Function Enter: #1 delta = +1>"));
+ EXPECT_THAT(Data, Eq("<Function Enter: #1 delta = +2>"));
}
TEST(FDRRecordPrinterTest, WriteFunctionRecordExit) {
@@ -142,7 +142,7 @@ TEST(FDRRecordPrinterTest, WriteFunction
FunctionRecord R(RecordTypes::EXIT, 1, 2);
ASSERT_FALSE(errorToBool(R.apply(P)));
OS.flush();
- EXPECT_THAT(Data, Eq("<Function Exit: #1 delta = +1>"));
+ EXPECT_THAT(Data, Eq("<Function Exit: #1 delta = +2>"));
}
TEST(FDRRecordPrinterTest, WriteFunctionRecordTailExit) {
@@ -152,7 +152,7 @@ TEST(FDRRecordPrinterTest, WriteFunction
FunctionRecord R(RecordTypes::TAIL_EXIT, 1, 2);
ASSERT_FALSE(errorToBool(R.apply(P)));
OS.flush();
- EXPECT_THAT(Data, Eq("<Function Tail Exit: #1 delta = +1>"));
+ EXPECT_THAT(Data, Eq("<Function Tail Exit: #1 delta = +2>"));
}
TEST(FDRRecordPrinterTest, WriteFunctionRecordEnterArg) {
@@ -162,7 +162,7 @@ TEST(FDRRecordPrinterTest, WriteFunction
FunctionRecord R(RecordTypes::ENTER_ARG, 1, 2);
ASSERT_FALSE(errorToBool(R.apply(P)));
OS.flush();
- EXPECT_THAT(Data, Eq("<Function Enter With Arg: #1 delta = +1>"));
+ EXPECT_THAT(Data, Eq("<Function Enter With Arg: #1 delta = +2>"));
}
} // namespace
More information about the llvm-commits
mailing list