32 #ifndef OTF2_EVT_READER_H
33 #define OTF2_EVT_READER_H
138 uint64_t recordsToRead,
139 uint64_t* recordsRead );
174 uint64_t recordsToRead,
175 uint64_t* recordsRead );
uint64_t OTF2_LocationRef
Type used to indicate a reference to a Location definition.
Definition: OTF2_GeneralDefinitions.h:139
OTF2_ErrorCode OTF2_EvtReader_ReadEvents(OTF2_EvtReader *reader, uint64_t recordsToRead, uint64_t *recordsRead)
After callback registration, the local events could be read with the following function. Reads at most recordsToRead records. The reader indicates that it reached the end of the trace by just reading less records than requested.
Enums and types used in event records.
This layer enables dynamic appending of arbitrary attributes to any type of event record...
OTF2_ErrorCode
Definition: OTF2_ErrorCodes.h:54
OTF2_ErrorCode OTF2_EvtReader_Seek(OTF2_EvtReader *reader, uint64_t position)
Seek jumps to an event position.
Data types used in the definition records.
OTF2_ErrorCode OTF2_EvtReader_GetLocationID(const OTF2_EvtReader *reader, OTF2_LocationRef *location)
Return the location ID of the reading related location.
OTF2_ErrorCode OTF2_EvtReader_ApplyMappingTables(OTF2_EvtReader *reader, bool action)
Enable or disable applying of the mapping tables to events read from this event reader.
uint64_t OTF2_TimeStamp
OTF2 time stamp.
Definition: OTF2_GeneralDefinitions.h:103
OTF2_ErrorCode OTF2_EvtReader_ReadEventsBackward(OTF2_EvtReader *reader, uint64_t recordsToRead, uint64_t *recordsRead)
This functions reads recordsRead events backwards from the current position.
OTF2_ErrorCode OTF2_EvtReader_SetCallbacks(OTF2_EvtReader *reader, const OTF2_EvtReaderCallbacks *callbacks, void *userData)
Sets the callback functions for the given reader object. Every time when OTF2 reads a record...
OTF2_ErrorCode OTF2_EvtReader_GetPos(OTF2_EvtReader *reader, uint64_t *position)
The following function can be used to get the position (number of the event in the stream) of last re...
This defines the callbacks for the event reader.
OTF2_ErrorCode OTF2_EvtReader_TimeStampRewrite(OTF2_EvtReader *reader, OTF2_TimeStamp time)
The following function rewrites the timestamp from the event on the actual reading position if the bu...
Error codes and error handling.
struct OTF2_EvtReader_struct OTF2_EvtReader
OTF2 local event reader handle.
Definition: OTF2_GeneralDefinitions.h:244
struct OTF2_EvtReaderCallbacks_struct OTF2_EvtReaderCallbacks
Opaque struct which holds all event record callbacks.
Definition: OTF2_EvtReaderCallbacks.h:62
OTF2_ErrorCode OTF2_EvtReader_ApplyClockOffsets(OTF2_EvtReader *reader, bool action)
Enable or disable applying of the clock offset to event timestamps read from this event reader...