LLVM
8.0.1
|
#include "llvm/ExecutionEngine/OProfileWrapper.h"
Public Member Functions | |
OProfileWrapper () | |
OProfileWrapper (op_open_agent_ptr_t OpenAgentImpl, op_close_agent_ptr_t CloseAgentImpl, op_write_native_code_ptr_t WriteNativeCodeImpl, op_write_debug_line_info_ptr_t WriteDebugLineInfoImpl, op_unload_native_code_ptr_t UnloadNativeCodeImpl, op_major_version_ptr_t MajorVersionImpl, op_major_version_ptr_t MinorVersionImpl, IsOProfileRunningPtrT MockIsOProfileRunningImpl=0) | |
bool | op_open_agent () |
int | op_close_agent () |
int | op_write_native_code (const char *name, uint64_t addr, void const *code, const unsigned int size) |
int | op_write_debug_line_info (void const *code, size_t num_entries, struct debug_line_info const *info) |
int | op_unload_native_code (uint64_t addr) |
int | op_major_version () |
int | op_minor_version () |
bool | isAgentAvailable () |
Definition at line 29 of file OProfileWrapper.h.
llvm::OProfileWrapper::OProfileWrapper | ( | ) |
Definition at line 41 of file OProfileWrapper.cpp.
References llvm::SmallString< InternalLen >::c_str(), llvm::dbgs(), error, LLVM_DEBUG, llvm::sys::DynamicLibrary::LoadLibraryPermanently(), llvm::support::endian::read(), and llvm::sys::DynamicLibrary::SearchForAddressOfSymbol().
|
inline |
Definition at line 67 of file OProfileWrapper.h.
References info, initialize(), isAgentAvailable(), name, op_close_agent(), op_major_version(), op_minor_version(), op_open_agent(), op_unload_native_code(), op_write_debug_line_info(), op_write_native_code(), and llvm::size().
bool llvm::OProfileWrapper::isAgentAvailable | ( | ) |
Definition at line 208 of file OProfileWrapper.cpp.
Referenced by OProfileWrapper().
int llvm::OProfileWrapper::op_close_agent | ( | ) |
Definition at line 194 of file OProfileWrapper.cpp.
References initialize().
Referenced by OProfileWrapper().
int llvm::OProfileWrapper::op_major_version | ( | ) |
Definition at line 238 of file OProfileWrapper.cpp.
References initialize().
Referenced by OProfileWrapper().
int llvm::OProfileWrapper::op_minor_version | ( | ) |
Definition at line 248 of file OProfileWrapper.cpp.
References initialize().
Referenced by OProfileWrapper().
bool llvm::OProfileWrapper::op_open_agent | ( | ) |
Definition at line 182 of file OProfileWrapper.cpp.
References initialize().
Referenced by OProfileWrapper().
int llvm::OProfileWrapper::op_unload_native_code | ( | uint64_t | addr | ) |
Definition at line 258 of file OProfileWrapper.cpp.
References initialize().
Referenced by OProfileWrapper().
int llvm::OProfileWrapper::op_write_debug_line_info | ( | void const * | code, |
size_t | num_entries, | ||
struct debug_line_info const * | info | ||
) |
Definition at line 225 of file OProfileWrapper.cpp.
References initialize().
Referenced by OProfileWrapper().
int llvm::OProfileWrapper::op_write_native_code | ( | const char * | name, |
uint64_t | addr, | ||
void const * | code, | ||
const unsigned int | size | ||
) |
Definition at line 212 of file OProfileWrapper.cpp.
References initialize().
Referenced by OProfileWrapper().