summaryrefslogtreecommitdiff
path: root/lib/xray/xray_inmemory_log.cc
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2016-10-06 07:09:40 +0000
committerDean Michael Berris <dberris@google.com>2016-10-06 07:09:40 +0000
commitf0ef378b41825b9cf37d23ea58c75d647e9f5bdc (patch)
tree9474802f56ec8180d07c332446f88557d13a0f9e /lib/xray/xray_inmemory_log.cc
parent06644fbe58d6a7c20c9332d330f7e3a08ff2a233 (diff)
[compiler-rt][XRay][NFC] clang-format XRay sources
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@283421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/xray/xray_inmemory_log.cc')
-rw-r--r--lib/xray/xray_inmemory_log.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/xray/xray_inmemory_log.cc b/lib/xray/xray_inmemory_log.cc
index 286ba7122..84958928e 100644
--- a/lib/xray/xray_inmemory_log.cc
+++ b/lib/xray/xray_inmemory_log.cc
@@ -26,11 +26,11 @@
#include <unistd.h>
#if defined(__x86_64__)
- #include <x86intrin.h>
+#include <x86intrin.h>
#elif defined(__arm__)
- static const int64_t NanosecondsPerSecond = 1000LL*1000*1000;
+static const int64_t NanosecondsPerSecond = 1000LL * 1000 * 1000;
#else
- #error "Unsupported CPU Architecture"
+#error "Unsupported CPU Architecture"
#endif /* CPU architecture */
#include "sanitizer_common/sanitizer_libc.h"
@@ -197,7 +197,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, XRayEntryType Type) {
// one TSC tick is 1 nanosecond.
CPUFrequency = NanosecondsPerSecond;
#else
- #error "Unsupported CPU Architecture"
+#error "Unsupported CPU Architecture"
#endif /* CPU architecture */
// Since we're here, we get to write the header. We set it up so that the
@@ -237,8 +237,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, XRayEntryType Type) {
{
timespec TS;
int result = clock_gettime(CLOCK_REALTIME, &TS);
- if(result != 0)
- {
+ if (result != 0) {
Report("clock_gettime() returned %d, errno=%d.", result, int(errno));
TS.tv_sec = 0;
TS.tv_nsec = 0;
@@ -247,7 +246,7 @@ void __xray_InMemoryRawLog(int32_t FuncId, XRayEntryType Type) {
R.CPU = 0;
}
#else
- #error "Unsupported CPU Architecture"
+#error "Unsupported CPU Architecture"
#endif /* CPU architecture */
R.TId = TId;
R.Type = Type;