![]() |
1.2 (revision 3183)
|
Reading interface for OTF2 archives. More...
#include <stdint.h>#include <otf2/OTF2_ErrorCodes.h>#include <otf2/OTF2_Archive.h>Go to the source code of this file.
Typedefs | |
| typedef struct OTF2_Reader_struct | OTF2_Reader |
| Keeps all neccessary information for the reader. | |
Functions | |
| OTF2_ErrorCode | OTF2_Reader_Close (OTF2_Reader *reader) |
| Close a reader handle. | |
| OTF2_ErrorCode | OTF2_Reader_CloseDefReader (OTF2_Reader *reader, OTF2_DefReader *defReader) |
| Close a local definition reader. | |
| OTF2_ErrorCode | OTF2_Reader_CloseEvtReader (OTF2_Reader *reader, OTF2_EvtReader *evtReader) |
| Close a local event reader. | |
| OTF2_ErrorCode | OTF2_Reader_CloseGlobalDefReader (OTF2_Reader *reader, OTF2_GlobalDefReader *globalDefReader) |
| Closes the global definition reader. | |
| OTF2_ErrorCode | OTF2_Reader_CloseGlobalEvtReader (OTF2_Reader *reader, OTF2_GlobalEvtReader *globalEvtReader) |
| Closes the global event reader. | |
| OTF2_ErrorCode | OTF2_Reader_CloseGlobalSnapReader (OTF2_Reader *reader, OTF2_GlobalSnapReader *globalSnapReader) |
| Closes the global snapshot reader. | |
| OTF2_ErrorCode | OTF2_Reader_CloseMarkerReader (OTF2_Reader *reader, OTF2_MarkerReader *markerReader) |
| Closes the marker reader. | |
| OTF2_ErrorCode | OTF2_Reader_CloseMarkerWriter (OTF2_Reader *reader, OTF2_MarkerWriter *markerWriter) |
| Closes the marker writer. | |
| OTF2_ErrorCode | OTF2_Reader_CloseSnapReader (OTF2_Reader *reader, OTF2_SnapReader *snapReader) |
| Close a local snapshot reader. | |
| OTF2_ErrorCode | OTF2_Reader_CloseThumbReader (OTF2_Reader *reader, OTF2_ThumbReader *thumbReader) |
| Close an opened thumbnail reader. | |
| OTF2_ErrorCode | OTF2_Reader_GetBoolProperty (OTF2_Reader *reader, const char *name, bool *value) |
| Get the value of the named trace file property as boolean. | |
| OTF2_ErrorCode | OTF2_Reader_GetChunkSize (OTF2_Reader *reader, uint64_t *chunkSizeEvents, uint64_t *chunkSizeDefinitions) |
| Get event and definition chunk sizes. | |
| OTF2_ErrorCode | OTF2_Reader_GetCompression (OTF2_Reader *reader, OTF2_Compression *compression) |
| Get copression mode. | |
| OTF2_ErrorCode | OTF2_Reader_GetCreator (OTF2_Reader *reader, char **creator) |
| Get creator name. | |
| OTF2_DefReader * | OTF2_Reader_GetDefReader (OTF2_Reader *reader, OTF2_LocationRef location) |
| Get a local definition reader. | |
| OTF2_ErrorCode | OTF2_Reader_GetDescription (OTF2_Reader *reader, char **description) |
| Get description. | |
| OTF2_EvtReader * | OTF2_Reader_GetEvtReader (OTF2_Reader *reader, OTF2_LocationRef location) |
| Get a local event reader. | |
| OTF2_ErrorCode | OTF2_Reader_GetFileSubstrate (OTF2_Reader *reader, OTF2_FileSubstrate *substrate) |
| Get file substrate information. | |
| OTF2_GlobalDefReader * | OTF2_Reader_GetGlobalDefReader (OTF2_Reader *reader) |
| Get a global definition reader. | |
| OTF2_GlobalEvtReader * | OTF2_Reader_GetGlobalEvtReader (OTF2_Reader *reader) |
| Get a global event reader. | |
| OTF2_GlobalSnapReader * | OTF2_Reader_GetGlobalSnapReader (OTF2_Reader *reader) |
| Get a global snap reader. | |
| OTF2_ErrorCode | OTF2_Reader_GetMachineName (OTF2_Reader *reader, char **machineName) |
| Get machine name. | |
| OTF2_MarkerReader * | OTF2_Reader_GetMarkerReader (OTF2_Reader *reader) |
| Get a marker reader. | |
| OTF2_MarkerWriter * | OTF2_Reader_GetMarkerWriter (OTF2_Reader *reader) |
| Get a marker writer. | |
| OTF2_ErrorCode | OTF2_Reader_GetNumberOfGlobalDefinitions (OTF2_Reader *reader, uint64_t *numberOfDefinitions) |
| Get number of global definitions. | |
| OTF2_ErrorCode | OTF2_Reader_GetNumberOfLocations (OTF2_Reader *reader, uint64_t *numberOfLocations) |
| Get number of locations. | |
| OTF2_ErrorCode | OTF2_Reader_GetNumberOfSnapshots (OTF2_Reader *reader, uint32_t *number) |
| Get number of snapshots. | |
| OTF2_ErrorCode | OTF2_Reader_GetNumberOfThumbnails (OTF2_Reader *reader, uint32_t *number) |
| Get number of thumbs. | |
| OTF2_ErrorCode | OTF2_Reader_GetProperty (OTF2_Reader *reader, const char *name, char **value) |
| Get the value of the named trace file property. | |
| OTF2_ErrorCode | OTF2_Reader_GetPropertyNames (OTF2_Reader *reader, uint32_t *numberOfProperties, char ***names) |
| Get the names of all trace file properties. | |
| OTF2_SnapReader * | OTF2_Reader_GetSnapReader (OTF2_Reader *reader, OTF2_LocationRef location) |
| Get a local snapshot reader. | |
| OTF2_ThumbReader * | OTF2_Reader_GetThumbReader (OTF2_Reader *reader, uint32_t number) |
| Get a thumb reader. | |
| OTF2_ErrorCode | OTF2_Reader_GetTraceId (OTF2_Reader *reader, uint64_t *id) |
| Get the identifier of the trace file. | |
| OTF2_ErrorCode | OTF2_Reader_GetVersion (OTF2_Reader *reader, uint8_t *major, uint8_t *minor, uint8_t *bugfix) |
| Get OTF2 version. | |
| OTF2_ErrorCode | OTF2_Reader_HasGlobalEvent (OTF2_Reader *reader, OTF2_GlobalEvtReader *evtReader, int *flag) |
| Has the global event reader at least one more event to deliver. | |
| OTF2_Reader * | OTF2_Reader_Open (const char *anchorFilePath) |
| Create a new reader handle. | |
| OTF2_ErrorCode | OTF2_Reader_ReadAllGlobalDefinitions (OTF2_Reader *reader, OTF2_GlobalDefReader *defReader, uint64_t *definitionsRead) |
| Read all definitions via a global definition reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadAllGlobalEvents (OTF2_Reader *reader, OTF2_GlobalEvtReader *evtReader, uint64_t *eventsRead) |
| Read all events via a global event reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadAllGlobalSnapshots (OTF2_Reader *reader, OTF2_GlobalSnapReader *snapReader, uint64_t *recordsRead) |
| Read all records via a global snapshot reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadAllLocalDefinitions (OTF2_Reader *reader, OTF2_DefReader *defReader, uint64_t *definitionsRead) |
| Read all definitions via a local definition reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadAllLocalEvents (OTF2_Reader *reader, OTF2_EvtReader *evtReader, uint64_t *eventsRead) |
| Read all events via a local event reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadAllLocalSnapshots (OTF2_Reader *reader, OTF2_SnapReader *snapReader, uint64_t *recordsRead) |
| Read all records via a local snapshot reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadAllMarkers (OTF2_Reader *reader, OTF2_MarkerReader *markerReader, uint64_t *markersRead) |
| Read all markers via a marker reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadGlobalDefinitions (OTF2_Reader *reader, OTF2_GlobalDefReader *defReader, uint64_t definitionsToRead, uint64_t *definitionsRead) |
| Read a given number of definitions via a global definition reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadGlobalEvent (OTF2_Reader *reader, OTF2_GlobalEvtReader *evtReader) |
| Read an event via a global event reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadGlobalEvents (OTF2_Reader *reader, OTF2_GlobalEvtReader *evtReader, uint64_t eventsToRead, uint64_t *eventsRead) |
| Read a given number of events via a global event reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadGlobalSnapshots (OTF2_Reader *reader, OTF2_GlobalSnapReader *snapReader, uint64_t recordsToRead, uint64_t *recordsRead) |
| Read a given number of records via a global snapshot reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadLocalDefinitions (OTF2_Reader *reader, OTF2_DefReader *defReader, uint64_t definitionsToRead, uint64_t *definitionsRead) |
| Read a given number of definitions via a local definition reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadLocalEvents (OTF2_Reader *reader, OTF2_EvtReader *evtReader, uint64_t eventsToRead, uint64_t *eventsRead) |
| Read a given number of events via a local event reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadLocalEventsBackward (OTF2_Reader *reader, OTF2_EvtReader *evtReader, uint64_t eventsToRead, uint64_t *eventsRead) |
| Read a given number of events via a local event reader backwards. | |
| OTF2_ErrorCode | OTF2_Reader_ReadLocalSnapshots (OTF2_Reader *reader, OTF2_SnapReader *snapReader, uint64_t recordsToRead, uint64_t *recordsRead) |
| Read a given number of records via a local snapshot reader. | |
| OTF2_ErrorCode | OTF2_Reader_ReadMarkers (OTF2_Reader *reader, OTF2_MarkerReader *markerReader, uint64_t markersToRead, uint64_t *markersRead) |
| Read a given number of markers via a marker reader. | |
| OTF2_ErrorCode | OTF2_Reader_RegisterDefCallbacks (OTF2_Reader *reader, OTF2_DefReader *defReader, const OTF2_DefReaderCallbacks *callbacks, void *userData) |
| Register local definition reader callbacks. | |
| OTF2_ErrorCode | OTF2_Reader_RegisterEvtCallbacks (OTF2_Reader *reader, OTF2_EvtReader *evtReader, const OTF2_EvtReaderCallbacks *callbacks, void *userData) |
| Register event reader callbacks. | |
| OTF2_ErrorCode | OTF2_Reader_RegisterGlobalDefCallbacks (OTF2_Reader *reader, OTF2_GlobalDefReader *defReader, const OTF2_GlobalDefReaderCallbacks *callbacks, void *userData) |
| Register global definition reader callbacks. | |
| OTF2_ErrorCode | OTF2_Reader_RegisterGlobalEvtCallbacks (OTF2_Reader *reader, OTF2_GlobalEvtReader *evtReader, const OTF2_GlobalEvtReaderCallbacks *callbacks, void *userData) |
| Register global event reader callbacks. | |
| OTF2_ErrorCode | OTF2_Reader_RegisterGlobalSnapCallbacks (OTF2_Reader *reader, OTF2_GlobalSnapReader *evtReader, const OTF2_GlobalSnapReaderCallbacks *callbacks, void *userData) |
| Register global event reader callbacks. | |
| OTF2_ErrorCode | OTF2_Reader_RegisterMarkerCallbacks (OTF2_Reader *reader, OTF2_MarkerReader *markerReader, const OTF2_MarkerReaderCallbacks *callbacks, void *userData) |
| Register marker reader callbacks. | |
| OTF2_ErrorCode | OTF2_Reader_RegisterSnapCallbacks (OTF2_Reader *reader, OTF2_SnapReader *snapReader, const OTF2_SnapReaderCallbacks *callbacks, void *userData) |
| Register snapshot event reader callbacks. | |
| OTF2_ErrorCode | OTF2_Reader_SetFileSionCallbacks (OTF2_Reader *reader, const OTF2_FileSionCallbacks *fileSionCallbacks, void *fileSionData) |
| Register SION callbacks to the reader. | |
Reading interface for OTF2 archives.
| OTF2_ErrorCode OTF2_Reader_Close | ( | OTF2_Reader * | reader | ) |
Close a reader handle.
Closes a reader handle and releases all associated handles. Does nothing if NULL is provided.
| reader | Reader handle. |
| OTF2_ErrorCode OTF2_Reader_CloseDefReader | ( | OTF2_Reader * | reader, |
| OTF2_DefReader * | defReader | ||
| ) |
Close a local definition reader.
| reader | Valid reader handle. |
| defReader | Definition reader to be closed. |
| OTF2_ErrorCode OTF2_Reader_CloseEvtReader | ( | OTF2_Reader * | reader, |
| OTF2_EvtReader * | evtReader | ||
| ) |
Close a local event reader.
| reader | Valid reader handle. |
| evtReader | Event reader to be closed. |
| OTF2_ErrorCode OTF2_Reader_CloseGlobalDefReader | ( | OTF2_Reader * | reader, |
| OTF2_GlobalDefReader * | globalDefReader | ||
| ) |
Closes the global definition reader.
| reader | Valid reader handle. |
| globalDefReader | The global definition reader. |
| OTF2_ErrorCode OTF2_Reader_CloseGlobalEvtReader | ( | OTF2_Reader * | reader, |
| OTF2_GlobalEvtReader * | globalEvtReader | ||
| ) |
Closes the global event reader.
This closes also all local event readers.
| reader | Valid reader handle. |
| globalEvtReader | The global event reader. |
| OTF2_ErrorCode OTF2_Reader_CloseGlobalSnapReader | ( | OTF2_Reader * | reader, |
| OTF2_GlobalSnapReader * | globalSnapReader | ||
| ) |
Closes the global snapshot reader.
| reader | Valid reader handle. |
| globalSnapReader | The global snapshot reader. |
| OTF2_ErrorCode OTF2_Reader_CloseMarkerReader | ( | OTF2_Reader * | reader, |
| OTF2_MarkerReader * | markerReader | ||
| ) |
Closes the marker reader.
| reader | Valid reader handle. |
| markerReader | The marker reader. |
| OTF2_ErrorCode OTF2_Reader_CloseMarkerWriter | ( | OTF2_Reader * | reader, |
| OTF2_MarkerWriter * | markerWriter | ||
| ) |
Closes the marker writer.
| reader | Valid reader handle. |
| markerWriter | The marker writer. |
| OTF2_ErrorCode OTF2_Reader_CloseSnapReader | ( | OTF2_Reader * | reader, |
| OTF2_SnapReader * | snapReader | ||
| ) |
Close a local snapshot reader.
| reader | Valid reader handle. |
| snapReader | snapshot reader to be closed. |
| OTF2_ErrorCode OTF2_Reader_CloseThumbReader | ( | OTF2_Reader * | reader, |
| OTF2_ThumbReader * | thumbReader | ||
| ) |
Close an opened thumbnail reader.
| reader | Reader handle. |
| thumbReader | Thumbn reader handle to be closed. |
| OTF2_ErrorCode OTF2_Reader_GetBoolProperty | ( | OTF2_Reader * | reader, |
| const char * | name, | ||
| bool * | value | ||
| ) |
Get the value of the named trace file property as boolean.
| reader | Reader handle. | |
| name | Name of the property. | |
| [out] | value | Returned boolean value of the property. |
if successful
if the named property was not found
if the value could not be interpreted as an boolean value
| OTF2_ErrorCode OTF2_Reader_GetChunkSize | ( | OTF2_Reader * | reader, |
| uint64_t * | chunkSizeEvents, | ||
| uint64_t * | chunkSizeDefinitions | ||
| ) |
Get event and definition chunk sizes.
| reader | Reader handle. | |
| [out] | chunkSizeEvents | Returned size of event chunks |
| [out] | chunkSizeDefinitions | Returned size of definition chunks. |
| OTF2_ErrorCode OTF2_Reader_GetCompression | ( | OTF2_Reader * | reader, |
| OTF2_Compression * | compression | ||
| ) |
Get copression mode.
| reader | Reader handle. | |
| [out] | compression | Returned compression mode. |
| OTF2_ErrorCode OTF2_Reader_GetCreator | ( | OTF2_Reader * | reader, |
| char ** | creator | ||
| ) |
Get creator name.
| reader | Reader handle. | |
| [out] | creator | Returned creator. Allocated with malloc. |
| OTF2_DefReader* OTF2_Reader_GetDefReader | ( | OTF2_Reader * | reader, |
| OTF2_LocationRef | location | ||
| ) |
Get a local definition reader.
| reader | Valid reader handle. |
| location | Location ID for the requested local reader. |
| OTF2_ErrorCode OTF2_Reader_GetDescription | ( | OTF2_Reader * | reader, |
| char ** | description | ||
| ) |
Get description.
| reader | Reader handle. | |
| [out] | description | Returned description. Allocated with malloc. |
| OTF2_EvtReader* OTF2_Reader_GetEvtReader | ( | OTF2_Reader * | reader, |
| OTF2_LocationRef | location | ||
| ) |
Get a local event reader.
| reader | Valid reader handle. |
| location | Location ID for the requested local reader. |
| OTF2_ErrorCode OTF2_Reader_GetFileSubstrate | ( | OTF2_Reader * | reader, |
| OTF2_FileSubstrate * | substrate | ||
| ) |
Get file substrate information.
| reader | Reader handle. | |
| [out] | substrate | Returned file substrate. |
| OTF2_GlobalDefReader* OTF2_Reader_GetGlobalDefReader | ( | OTF2_Reader * | reader | ) |
Get a global definition reader.
| reader | Valid reader handle. |
| OTF2_GlobalEvtReader* OTF2_Reader_GetGlobalEvtReader | ( | OTF2_Reader * | reader | ) |
Get a global event reader.
| reader | Valid reader handle. |
| OTF2_GlobalSnapReader* OTF2_Reader_GetGlobalSnapReader | ( | OTF2_Reader * | reader | ) |
Get a global snap reader.
| reader | Valid reader handle. |
| OTF2_ErrorCode OTF2_Reader_GetMachineName | ( | OTF2_Reader * | reader, |
| char ** | machineName | ||
| ) |
Get machine name.
| reader | Reader handle. | |
| [out] | machineName | Returned machine name. Allocated with malloc. |
| OTF2_MarkerReader* OTF2_Reader_GetMarkerReader | ( | OTF2_Reader * | reader | ) |
Get a marker reader.
| reader | Valid reader handle. |
| OTF2_MarkerWriter* OTF2_Reader_GetMarkerWriter | ( | OTF2_Reader * | reader | ) |
Get a marker writer.
| reader | Valid reader handle. |
| OTF2_ErrorCode OTF2_Reader_GetNumberOfGlobalDefinitions | ( | OTF2_Reader * | reader, |
| uint64_t * | numberOfDefinitions | ||
| ) |
Get number of global definitions.
| reader | Reader handle. | |
| [out] | numberOfDefinitions | Returned number of global definitions. |
| OTF2_ErrorCode OTF2_Reader_GetNumberOfLocations | ( | OTF2_Reader * | reader, |
| uint64_t * | numberOfLocations | ||
| ) |
Get number of locations.
| reader | Reader handle. | |
| [out] | numberOfLocations | Returned number of locations. |
| OTF2_ErrorCode OTF2_Reader_GetNumberOfSnapshots | ( | OTF2_Reader * | reader, |
| uint32_t * | number | ||
| ) |
Get number of snapshots.
| reader | Reader handle. | |
| [out] | number | Returned number of snapshots. |
| OTF2_ErrorCode OTF2_Reader_GetNumberOfThumbnails | ( | OTF2_Reader * | reader, |
| uint32_t * | number | ||
| ) |
Get number of thumbs.
| reader | Reader handle. | |
| [out] | number | Returned number of thumbs. |
| OTF2_ErrorCode OTF2_Reader_GetProperty | ( | OTF2_Reader * | reader, |
| const char * | name, | ||
| char ** | value | ||
| ) |
Get the value of the named trace file property.
| reader | Reader handle. | |
| name | Name of the property. | |
| [out] | value | Returned value of the property. Allocated with malloc. |
if successful
if the named property was not found
| OTF2_ErrorCode OTF2_Reader_GetPropertyNames | ( | OTF2_Reader * | reader, |
| uint32_t * | numberOfProperties, | ||
| char *** | names | ||
| ) |
Get the names of all trace file properties.
| reader | Reader handle. | |
| [out] | numberOfProperties | Returned number of trace file properties. |
| [out] | names | Returned list of property names. Allocated with malloc. To release memory, just pass *names to free. |
| OTF2_SnapReader* OTF2_Reader_GetSnapReader | ( | OTF2_Reader * | reader, |
| OTF2_LocationRef | location | ||
| ) |
Get a local snapshot reader.
| reader | Valid reader handle. |
| location | Location ID for the requested local reader. |
| OTF2_ThumbReader* OTF2_Reader_GetThumbReader | ( | OTF2_Reader * | reader, |
| uint32_t | number | ||
| ) |
Get a thumb reader.
| reader | Reader handle. |
| number | Thumbnail number. |
| OTF2_ErrorCode OTF2_Reader_GetTraceId | ( | OTF2_Reader * | reader, |
| uint64_t * | id | ||
| ) |
Get the identifier of the trace file.
| reader | Reader handle. | |
| [out] | id | Trace identifier. |
| OTF2_ErrorCode OTF2_Reader_GetVersion | ( | OTF2_Reader * | reader, |
| uint8_t * | major, | ||
| uint8_t * | minor, | ||
| uint8_t * | bugfix | ||
| ) |
Get OTF2 version.
| reader | Valid reader handle. | |
| [out] | major | Major version. |
| [out] | minor | Minor version. |
| [out] | bugfix | Bugfix revision. |
| OTF2_ErrorCode OTF2_Reader_HasGlobalEvent | ( | OTF2_Reader * | reader, |
| OTF2_GlobalEvtReader * | evtReader, | ||
| int * | flag | ||
| ) |
Has the global event reader at least one more event to deliver.
| reader | Global event reader handle. | |
| evtReader | Global event reader handle. | |
| [out] | flag | In case of success, the flag will be set to 1 when there is at least more more event to read. To 0 if not. Otherwise the value is undefined. |
| OTF2_Reader* OTF2_Reader_Open | ( | const char * | anchorFilePath | ) |
Create a new reader handle.
Creates a new reader handle, opens an according archive handle, and calls a routine to register all neccessary function pointers.
| anchorFilePath | Path to the anchor file e.g. 'trace.otf2'. This can be a relative as well as an absolute path. |
| OTF2_ErrorCode OTF2_Reader_ReadAllGlobalDefinitions | ( | OTF2_Reader * | reader, |
| OTF2_GlobalDefReader * | defReader, | ||
| uint64_t * | definitionsRead | ||
| ) |
Read all definitions via a global definition reader.
| reader | Reader handle. | |
| defReader | Global definition reader handle. | |
| [out] | definitionsRead | Return pointer to the number of definitions actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadAllGlobalEvents | ( | OTF2_Reader * | reader, |
| OTF2_GlobalEvtReader * | evtReader, | ||
| uint64_t * | eventsRead | ||
| ) |
Read all events via a global event reader.
| reader | Reader handle. | |
| evtReader | Global event reader handle. | |
| [out] | eventsRead | Return pointer to the number of events actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadAllGlobalSnapshots | ( | OTF2_Reader * | reader, |
| OTF2_GlobalSnapReader * | snapReader, | ||
| uint64_t * | recordsRead | ||
| ) |
Read all records via a global snapshot reader.
| reader | Reader handle. | |
| snapReader | Global snapshot reader handle. | |
| [out] | recordsRead | Return pointer to the number of records |
| OTF2_ErrorCode OTF2_Reader_ReadAllLocalDefinitions | ( | OTF2_Reader * | reader, |
| OTF2_DefReader * | defReader, | ||
| uint64_t * | definitionsRead | ||
| ) |
Read all definitions via a local definition reader.
| reader | Reader handle. | |
| defReader | Local definition reader handle. | |
| [out] | definitionsRead | Return pointer to the number of definitions actually read. |
if successful
if an user supplied callback returned OTF2_CALLBACK_INTERRUPT
if an duplicate mapping table definition was read
the error code
| OTF2_ErrorCode OTF2_Reader_ReadAllLocalEvents | ( | OTF2_Reader * | reader, |
| OTF2_EvtReader * | evtReader, | ||
| uint64_t * | eventsRead | ||
| ) |
Read all events via a local event reader.
| reader | Reader handle. | |
| evtReader | Local event reader handle. | |
| [out] | eventsRead | Return pointer to the number of events actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadAllLocalSnapshots | ( | OTF2_Reader * | reader, |
| OTF2_SnapReader * | snapReader, | ||
| uint64_t * | recordsRead | ||
| ) |
Read all records via a local snapshot reader.
| reader | Reader handle. | |
| snapReader | Local snapshot reader handle. | |
| [out] | recordsRead | Return pointer to the number of records |
| OTF2_ErrorCode OTF2_Reader_ReadAllMarkers | ( | OTF2_Reader * | reader, |
| OTF2_MarkerReader * | markerReader, | ||
| uint64_t * | markersRead | ||
| ) |
Read all markers via a marker reader.
| reader | Reader handle. | |
| markerReader | Marker reader handle. | |
| [out] | markersRead | Return pointer to the number of markers actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadGlobalDefinitions | ( | OTF2_Reader * | reader, |
| OTF2_GlobalDefReader * | defReader, | ||
| uint64_t | definitionsToRead, | ||
| uint64_t * | definitionsRead | ||
| ) |
Read a given number of definitions via a global definition reader.
| reader | Reader handle. | |
| defReader | Global definition reader handle. | |
| definitionsToRead | Number definitions to be read. | |
| [out] | definitionsRead | Return pointer to the number of definitions actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadGlobalEvent | ( | OTF2_Reader * | reader, |
| OTF2_GlobalEvtReader * | evtReader | ||
| ) |
Read an event via a global event reader.
| reader | Reader handle. |
| evtReader | Global event reader handle. |
| OTF2_ErrorCode OTF2_Reader_ReadGlobalEvents | ( | OTF2_Reader * | reader, |
| OTF2_GlobalEvtReader * | evtReader, | ||
| uint64_t | eventsToRead, | ||
| uint64_t * | eventsRead | ||
| ) |
Read a given number of events via a global event reader.
| reader | Reader handle. | |
| evtReader | Global event reader handle. | |
| eventsToRead | Number events to be read. | |
| [out] | eventsRead | Return pointer to the number of events actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadGlobalSnapshots | ( | OTF2_Reader * | reader, |
| OTF2_GlobalSnapReader * | snapReader, | ||
| uint64_t | recordsToRead, | ||
| uint64_t * | recordsRead | ||
| ) |
Read a given number of records via a global snapshot reader.
| reader | Reader handle. | |
| snapReader | Global snapshot reader handle. | |
| recordsToRead | Number records to be read. | |
| [out] | recordsRead | Return pointer to the number of records actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadLocalDefinitions | ( | OTF2_Reader * | reader, |
| OTF2_DefReader * | defReader, | ||
| uint64_t | definitionsToRead, | ||
| uint64_t * | definitionsRead | ||
| ) |
Read a given number of definitions via a local definition reader.
| reader | Reader handle. | |
| defReader | Local definition reader handle. | |
| definitionsToRead | Number definitions to be read. | |
| [out] | definitionsRead | Return pointer to the number of definitions actually read. |
if successful
if an user supplied callback returned OTF2_CALLBACK_INTERRUPT
if an duplicate mapping table definition was read
the error code
| OTF2_ErrorCode OTF2_Reader_ReadLocalEvents | ( | OTF2_Reader * | reader, |
| OTF2_EvtReader * | evtReader, | ||
| uint64_t | eventsToRead, | ||
| uint64_t * | eventsRead | ||
| ) |
Read a given number of events via a local event reader.
| reader | Reader handle. |
| evtReader | Local event reader handle. |
| eventsToRead | Number events to be read. |
| eventsRead | Return pointer to the number of events actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadLocalEventsBackward | ( | OTF2_Reader * | reader, |
| OTF2_EvtReader * | evtReader, | ||
| uint64_t | eventsToRead, | ||
| uint64_t * | eventsRead | ||
| ) |
Read a given number of events via a local event reader backwards.
| reader | Reader handle. | |
| evtReader | Local event reader handle. | |
| eventsToRead | Number events to be read. | |
| [out] | eventsRead | Return pointer to the number of events actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadLocalSnapshots | ( | OTF2_Reader * | reader, |
| OTF2_SnapReader * | snapReader, | ||
| uint64_t | recordsToRead, | ||
| uint64_t * | recordsRead | ||
| ) |
Read a given number of records via a local snapshot reader.
| reader | Reader handle. |
| snapReader | Local snapshot reader handle. |
| recordsToRead | Number records to be read. |
| recordsRead | Return pointer to the number of records actually read. |
| OTF2_ErrorCode OTF2_Reader_ReadMarkers | ( | OTF2_Reader * | reader, |
| OTF2_MarkerReader * | markerReader, | ||
| uint64_t | markersToRead, | ||
| uint64_t * | markersRead | ||
| ) |
Read a given number of markers via a marker reader.
| reader | Reader handle. | |
| markerReader | Marker reader handle. | |
| markersToRead | Number markers to be read. | |
| [out] | markersRead | Return pointer to the number of markers actually read. |
| OTF2_ErrorCode OTF2_Reader_RegisterDefCallbacks | ( | OTF2_Reader * | reader, |
| OTF2_DefReader * | defReader, | ||
| const OTF2_DefReaderCallbacks * | callbacks, | ||
| void * | userData | ||
| ) |
Register local definition reader callbacks.
| reader | OTF2_Reader handle. |
| defReader | Local definition reader handle. |
| callbacks | Callbacks for the local definition readers. |
| userData | Addition user data. |
| OTF2_ErrorCode OTF2_Reader_RegisterEvtCallbacks | ( | OTF2_Reader * | reader, |
| OTF2_EvtReader * | evtReader, | ||
| const OTF2_EvtReaderCallbacks * | callbacks, | ||
| void * | userData | ||
| ) |
Register event reader callbacks.
| reader | OTF2_Reader handle. |
| evtReader | Local event reader handle. |
| callbacks | Callbacks for the event readers. |
| userData | Addition user data. |
| OTF2_ErrorCode OTF2_Reader_RegisterGlobalDefCallbacks | ( | OTF2_Reader * | reader, |
| OTF2_GlobalDefReader * | defReader, | ||
| const OTF2_GlobalDefReaderCallbacks * | callbacks, | ||
| void * | userData | ||
| ) |
Register global definition reader callbacks.
| reader | OTF2_Reader handle. |
| defReader | Global definition reader handle. |
| callbacks | Callbacks for the global definition readers. |
| userData | Addition user data. |
| OTF2_ErrorCode OTF2_Reader_RegisterGlobalEvtCallbacks | ( | OTF2_Reader * | reader, |
| OTF2_GlobalEvtReader * | evtReader, | ||
| const OTF2_GlobalEvtReaderCallbacks * | callbacks, | ||
| void * | userData | ||
| ) |
Register global event reader callbacks.
| reader | OTF2_Reader handle. |
| evtReader | Global event reader handle. |
| callbacks | Callbacks for the global event reader. |
| userData | Addition user data. |
| OTF2_ErrorCode OTF2_Reader_RegisterGlobalSnapCallbacks | ( | OTF2_Reader * | reader, |
| OTF2_GlobalSnapReader * | evtReader, | ||
| const OTF2_GlobalSnapReaderCallbacks * | callbacks, | ||
| void * | userData | ||
| ) |
Register global event reader callbacks.
| reader | OTF2_Reader handle. |
| evtReader | Global event reader handle. |
| callbacks | Callbacks for the global event reader. |
| userData | Addition user data. |
| OTF2_ErrorCode OTF2_Reader_RegisterMarkerCallbacks | ( | OTF2_Reader * | reader, |
| OTF2_MarkerReader * | markerReader, | ||
| const OTF2_MarkerReaderCallbacks * | callbacks, | ||
| void * | userData | ||
| ) |
Register marker reader callbacks.
| reader | OTF2_Reader handle. |
| markerReader | Marker reader handle. |
| callbacks | Callbacks for the marker reader. |
| userData | Addition user data. |
| OTF2_ErrorCode OTF2_Reader_RegisterSnapCallbacks | ( | OTF2_Reader * | reader, |
| OTF2_SnapReader * | snapReader, | ||
| const OTF2_SnapReaderCallbacks * | callbacks, | ||
| void * | userData | ||
| ) |
Register snapshot event reader callbacks.
| reader | OTF2_Reader handle. |
| snapReader | Local snap reader handle. |
| callbacks | Callbacks for the event readers. |
| userData | Addition user data. |
| OTF2_ErrorCode OTF2_Reader_SetFileSionCallbacks | ( | OTF2_Reader * | reader, |
| const OTF2_FileSionCallbacks * | fileSionCallbacks, | ||
| void * | fileSionData | ||
| ) |
Register SION callbacks to the reader.
It suffice to provide a function for OTF2_FileSionGetRank. The neccessary information for the rank mapping can be extracted from the global group definition of type OTF2_GROUP_TYPE_MPI_LOCATIONS or by the locationGroupId attribute of the Location definitions.
| reader | Reader handle. |
| fileSionCallbacks | Struct holding the callbacks. |
| fileSionData | Pointer passed to the callbacks by the caller. |