1 //===-- xray_x86_64.inc -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is a part of XRay, a dynamic runtime instrumentation system.
12 //===----------------------------------------------------------------------===//
15 #include <x86intrin.h>
17 #include "sanitizer_common/sanitizer_internal_defs.h"
18 #include "xray_defs.h"
22 ALWAYS_INLINE uint64_t readTSC(uint8_t &CPU) XRAY_NEVER_INSTRUMENT {
24 uint64_t TSC = __rdtscp(&LongCPU);
29 uint64_t getTSCFrequency();
31 bool probeRequiredCPUFeatures();