![]() |
![]() |
OpenMP Runtime
|
Supports various mechanisms for logging errors & tracing. More...
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | tomp_LOG_WITH_PRINTF (1) |
#define | GLOBAL_TIMESTAMP_ADRS (0x023101F0) |
Enumerations | |
enum | tomp_ErrorKind_e { tomp_ErrorKind_EM_ALLOC = 0, tomp_ErrorKind_EM_ALLOC_SIZE, tomp_ErrorKind_NULL_PTR, tomp_ErrorKind_OEM_INIT, tomp_ErrorKind_OMP_INIT, tomp_ErrorKind_QMSS } |
Functions | |
void | tomp_sendExitEvents (void) |
Terminate program across cores by sending events to the exit queue. | |
static unsigned long long | getGlobalTimeStamp () |
static void | tomp_logError (tomp_ErrorKind_e e, const char *file, int line) |
Log an error message along with file name and line number and terminate execution. | |
static void | tomp_logErrorStr (tomp_ErrorKind_e e, const char *str, const char *file, int line) |
Log an error message along with a custom string, file name and line number and terminate execution. | |
static void | tomp_logDebug1 (const char *fmt, int arg1) |
Log a debug message with a format string and 1 integer argument. | |
static void | tomp_logDebug2 (const char *fmt, int arg1, int arg2) |
Log a debug message with a format string and 2 integer arguments. | |
static void | tomp_logDebug3 (const char *fmt, int arg1, int arg2, int arg3) |
Log a debug message with a format string and 3 integer arguments. | |
Variables | |
const char * | tomp_ErrorString [] |
Supports various mechanisms for logging errors & tracing.
#define tomp_LOG_WITH_PRINTF (1) |
Log errors/warnings with printf
enum tomp_ErrorKind_e |
Error kinds
const char* tomp_ErrorString[] |
String corresponding to the error kinds