projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8521031
)
[XRay] Write the TSC along with CPUID
author
Dean Michael Berris
<dberris@google.com>
Tue, 11 Sep 2018 07:27:59 +0000
(07:27 +0000)
committer
Dean Michael Berris
<dberris@google.com>
Tue, 11 Sep 2018 07:27:59 +0000
(07:27 +0000)
Fixes builds in non-little-endian systems.
This is a follow-up to D51911.
llvm-svn: 341909
llvm/lib/XRay/FDRTraceWriter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/XRay/FDRTraceWriter.cpp
b/llvm/lib/XRay/FDRTraceWriter.cpp
index
68c0090
..
d0206e7
100644
(file)
--- a/
llvm/lib/XRay/FDRTraceWriter.cpp
+++ b/
llvm/lib/XRay/FDRTraceWriter.cpp
@@
-86,7
+86,7
@@
Error FDRTraceWriter::visit(WallclockRecord &R) {
}
Error FDRTraceWriter::visit(NewCPUIDRecord &R) {
- return writeMetadata<2u>(OS, R.cpuid());
+ return writeMetadata<2u>(OS, R.cpuid()
, R.tsc()
);
}
Error FDRTraceWriter::visit(TSCWrapRecord &R) {