Changeset View
Changeset View
Standalone View
Standalone View
lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp
Show All 27 Lines | |||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#define DEBUG_TYPE "oprofile-wrapper" | #define DEBUG_TYPE "oprofile-wrapper" | ||||
namespace { | namespace { | ||||
// Global mutex to ensure a single thread initializes oprofile agent. | // Global mutex to ensure a single thread initializes oprofile agent. | ||||
llvm::sys::Mutex OProfileInitializationMutex; | llvm::sys::RecursiveMutex OProfileInitializationMutex; | ||||
} // anonymous namespace | } // anonymous namespace | ||||
namespace llvm { | namespace llvm { | ||||
OProfileWrapper::OProfileWrapper() | OProfileWrapper::OProfileWrapper() | ||||
: Agent(0), | : Agent(0), | ||||
OpenAgentFunc(0), | OpenAgentFunc(0), | ||||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |