Pin
|
Classes | |
class | LOGFILE |
class | MESSAGE_TYPE |
class | MESSAGE_TYPE_ALWAYS_ON |
Typedefs | |
typedef BOOL(* | MESSAGE_CALLBACK) (const std::string &message, PIN_ERRTYPE type, INT32 userType, INT32 severity, INT32 numArgs, va_list ap) |
Enumerations | |
enum | LOGTYPE { LOGTYPE_CONSOLE, LOGTYPE_LOGFILE, LOGTYPE_CONSOLE_AND_LOGFILE } |
Functions | |
UINT64 | MilliSecondsElapsed () |
std::string | AssertString (const char *fileName, const char *functionName, unsigned line, const std::string &message) |
VOID | BreakMe () |
typedef BOOL(* MESSAGE_CALLBACK) (const std::string &message, PIN_ERRTYPE type, INT32 userType, INT32 severity, INT32 numArgs, va_list ap) |
A call-back function that is called whenever a MESSAGE_TYPE object prints a message.
[in] | messageName | Name of the MESSAGE_TYPE object. This is empty for messages printed via PrintMessageAndExit(). |
[in] | message | The text of the message. |
[in] | type | The type of the message. |
[in] | ap | A variable list of additional arguments for the message. |
enum LOGTYPE |
std::string AssertString | ( | const char * | fileName, |
const char * | functionName, | ||
unsigned | line, | ||
const std::string & | message | ||
) |
Create a string for an assertion failure.
[in] | fileName | Name of the file containing the assertion failure or the empty string. |
[in] | functionName | Name of the function containing the assertion failure. |
[in] | line | Line number of the assertion failure. |
[in] | message | Message describing the failure. |
UINT64 MilliSecondsElapsed | ( | ) |
MilliSeconds elapsed since last invocation of this function
MESSAGE_TYPE_ALWAYS_ON MessageTypeAssert |
Assert message object
MESSAGE_TYPE MessageTypeConsole |
Console message object
MESSAGE_TYPE MessageTypeConsoleNoPrefix |
Console message object - No prefix
MESSAGE_TYPE MessageTypeCriticalError |
Error message object for fatal errors that require post-logging handling. These errors do not cause the process termination in the MESSAGE_TYPE::Message() function.
MESSAGE_TYPE MessageTypeDebug |
Debug message object
MESSAGE_TYPE_ALWAYS_ON MessageTypeError |
Error message object (terminates) (Always on message, using mesgoff from command line has no effect)
MESSAGE_TYPE MessageTypeInfo |
Info message object
MESSAGE_TYPE MessageTypeKnown |
Known-warning message object
MESSAGE_TYPE MessageTypeLog |
Log message object
MESSAGE_TYPE MessageTypeNonFatalError |
Error message object for non-fatal error.
MESSAGE_TYPE MessageTypeOpportunity |
Optimization opportunity message object
MESSAGE_TYPE MessageTypePhase |
Phase message object
MESSAGE_TYPE MessageTypeStats |
Statistcis message object
MESSAGE_TYPE MessageTypeWarning |
Warning message object