-#pragma once
-#include <time.h>
+//===-- xray_emulate_tsc.h --------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file is a part of XRay, a dynamic runtime instrumentation system.
+//
+//===----------------------------------------------------------------------===//
+#ifndef XRAY_EMULATE_TSC_H
+#define XRAY_EMULATE_TSC_H
#include "sanitizer_common/sanitizer_internal_defs.h"
#include "xray_defs.h"
+#include <cstdint>
+#include <time.h>
namespace __xray {
CPU = 0;
return TS.tv_sec * NanosecondsPerSecond + TS.tv_nsec;
}
-
}
+
+#endif // XRAY_EMULATE_TSC_H
-#pragma once
+//===-- xray_x86_64.h -------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file is a part of XRay, a dynamic runtime instrumentation system.
+//
+//===----------------------------------------------------------------------===//
+#ifndef XRAY_X86_64_H
+#define XRAY_X86_64_H
+
+#include <cstdint>
#include <x86intrin.h>
#include "sanitizer_common/sanitizer_internal_defs.h"
CPU = LongCPU;
return TSC;
}
-
}
+
+#endif // XRAY_X86_64_H