|
static int | SPHLFLogEntryStrongComplete (SPHLFLoggerHandle_t *handlespace) |
| Marks the entry specified by the entry handle as complete. Also executes any memory barriers required by the platform to ensure that all previous stores to this entry by this thread are visible to other threads. More...
|
|
static int | SPHLFLogEntryWeakComplete (SPHLFLoggerHandle_t *handlespace) |
| Marks the entry specified by the entry handle as complete. No memory barriers are performance. On out-of-order machines there are no guarantee that all previous stores by this thread are visible to other threads. More...
|
|
static int | SPHLFLogEntryComplete (SPHLFLoggerHandle_t *handlespace) |
| Marks the entry specified by the entry handle as complete. Also executes write memory barries required by the platform to ensure that all previous stores by this thread to this entry are complete. On out-of-order machines this barrier does not guarantee that all previous stores by this thread are visible to other threads. More...
|
|
static int | SPHLFLogEntryIsComplete (SPHLFLoggerHandle_t *handlespace) |
| Return the status of the entry specified by the entry handle. More...
|
|
static int | SPHLFLogEntryIsTimestamped (SPHLFLoggerHandle_t *handlespace) |
| Return the status of the entry specified by the entry handle. More...
|
|
static sphtimer_t | SPHLFLogEntryTimeStamp (SPHLFLoggerHandle_t *handlespace) |
| Return the time stamp value for the entry specified by the entry handle. More...
|
|
static sphpid16_t | SPHLFLogEntryPID (SPHLFLoggerHandle_t *handlespace) |
| Return the process ID for the entry specified by the entry handle. More...
|
|
static sphpid16_t | SPHLFLogEntryTID (SPHLFLoggerHandle_t *handlespace) |
| Return the thread ID for the entry specified by the entry handle. More...
|
|
static SPHLFLogHeader_t * | SPHLFLogEntryHeader (SPHLFLoggerHandle_t *handlespace) |
| Return the address for the entry header specified by the entry handle. More...
|
|
static int | SPHLFLogEntryCategory (SPHLFLoggerHandle_t *handlespace) |
| Return the entry category for the entry specified by the entry handle. More...
|
|
static int | SPHLFLogEntrySubcat (SPHLFLoggerHandle_t *handlespace) |
| Return the entry sub-category for the entry specified by the entry handle. More...
|
|
static void * | SPHLFLogEntryGetFreePtr (SPHLFLoggerHandle_t *handle) |
| Return the address first free byte for the entry specified by the entry handle. More...
|
|
static void * | SPHLFlogEntryGetStructPtr (SPHLFLoggerHandle_t *handle, unsigned long __size, unsigned long __align) |
| Return the correctly aligned pointer for a struct or array starting at the next free location within the logger entry. More...
|
|
static void * | SPHLFlogEntryAllocStruct (SPHLFLoggerHandle_t *handle, unsigned long __size, unsigned long __align) |
| Allocate space for struct starting at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddString (SPHLFLoggerHandle_t *handle, char *value) |
| Insert a C string at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddChar (SPHLFLoggerHandle_t *handle, char value) |
| Insert a character at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddShort (SPHLFLoggerHandle_t *handle, short int value) |
| Insert a short int at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddInt (SPHLFLoggerHandle_t *handle, int value) |
| Insert a int at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddLong (SPHLFLoggerHandle_t *handle, long value) |
| Insert a long int at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddPtr (SPHLFLoggerHandle_t *handle, void *value) |
| Insert a void* at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddLongLong (SPHLFLoggerHandle_t *handle, long long value) |
| Insert a long long int at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddFloat (SPHLFLoggerHandle_t *handle, float value) |
| Insert a float at the next free location within the logger entry. More...
|
|
static int | SPHLFlogEntryAddDouble (SPHLFLoggerHandle_t *handle, double value) |
| Insert a double at the next free location within the logger entry. More...
|
|
static char | SPHLFlogEntryGetNextChar (SPHLFLoggerHandle_t *handle) |
| Return the next char from the logger entry via the current next value pointer. The internal next value pointer is advanced to the next location. More...
|
|
static char * | SPHLFlogEntryGetNextString (SPHLFLoggerHandle_t *handle) |
| Return the pointer to the next C string from the logger entry via the current next value pointer. The internal next value pointer is advanced to the next location after the string NUL char. More...
|
|
static short int | SPHLFlogEntryGetNextShort (SPHLFLoggerHandle_t *handle) |
| Return the next short int from the logger entry via the current next value pointer. Leading bytes may be skipped to get the required alignment. The internal next value pointer is advanced to the next location. More...
|
|
static int | SPHLFlogEntryGetNextInt (SPHLFLoggerHandle_t *handle) |
| Return the next int from the logger entry via the current next value pointer. Leading bytes may be skipped to get the required alignment. The internal next value pointer is advanced to the next location. More...
|
|
static long | SPHLFlogEntryGetNextLong (SPHLFLoggerHandle_t *handle) |
| Return the next long int from the logger entry via the current next value pointer. Leading bytes may be skipped to get the required alignment. The internal next value pointer is advanced to the next location. More...
|
|
static void * | SPHLFlogEntryGetNextPtr (SPHLFLoggerHandle_t *handle) |
| Return the next void* from the logger entry via the current next value pointer. Leading bytes may be skipped to get the required alignment. The internal next value pointer is advanced to the next location. More...
|
|
static long long | SPHLFlogEntryGetNextLongLong (SPHLFLoggerHandle_t *handle) |
| Return the next long long int from the logger entry via the current next value pointer. Leading bytes may be skipped to get the required alignment. The internal next value pointer is advanced to the next location. More...
|
|
static float | SPHLFlogEntryGetNextFloat (SPHLFLoggerHandle_t *handle) |
| Return the next float from the logger entry via the current next value pointer. Leading bytes may be skipped to get the required alignment. The internal next value pointer is advanced to the next location. More...
|
|
static double | SPHLFlogEntryGetNextDouble (SPHLFLoggerHandle_t *handle) |
| Return the next double from the logger entry via the current next value pointer. Leading bytes may be skipped to get the required alignment. The internal next value pointer is advanced to the next location. More...
|
|
Shared Persistent Heap, logger entry status, update and access functions.
!
- Author
- Steven Munroe - initial API and implementation
For shared memory multi-thread/multi-core applications. Once the
SPHLFLogger_t functions have atomically allocated a Logger entry,
the "entry" APIs supports adding additional data to the entry and
retrieving that date later.
Supported functions include:
storing category specific event data,
atomic completion of an entry,
Getting entry status (complete and timestamped)
Getting entry header elements (timestamp, PID, TID, Category, and Sub-category),
Retrieving category specific event data entries,
and direct pointer access the header and data of the entry.
This Logger Entry access API supports read out of the 16 byte
entry header including: Entry status and length. Entry
Category and SubCategory codes. Process and Thread Ids. High
resolution timestamp.
Any additional storage allocated to the entry
is available for application specific data. This API also provides
several mechanisms to store application data including; direct
array or structure overlay, and a streams like mechanism. Finally
the API provides a completion functions (SPHLFLogEntryComplete)
which provides and memory barriers required by the platform and
marks the entry complete.
- Todo:
- This API should be migrated to use the common sphlfentry.h API.