![]() |
1.2.1 (revision 3238)
|
00001 /* 00002 * This file is part of the Score-P software (http://www.score-p.org) 00003 * 00004 * Copyright (c) 2009-2013, 00005 * RWTH Aachen University, Germany 00006 * Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany 00007 * Technische Universitaet Dresden, Germany 00008 * University of Oregon, Eugene, USA 00009 * Forschungszentrum Juelich GmbH, Germany 00010 * German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany 00011 * Technische Universitaet Muenchen, Germany 00012 * 00013 * See the COPYING file in the package base directory for details. 00014 * 00015 */ 00016 00017 00018 #ifndef OTF2_EVT_READER_H 00019 #define OTF2_EVT_READER_H 00020 00021 00034 #include <stdint.h> 00035 00036 00037 #include <otf2/OTF2_ErrorCodes.h> 00038 00039 00040 #include <otf2/OTF2_Events.h> 00041 #include <otf2/OTF2_Definitions.h> 00042 #include <otf2/OTF2_AttributeList.h> 00043 #include <otf2/OTF2_EvtReaderCallbacks.h> 00044 00045 00046 #ifdef __cplusplus 00047 extern "C" { 00048 #endif /* __cplusplus */ 00049 00050 00059 OTF2_ErrorCode 00060 OTF2_EvtReader_GetLocationID( const OTF2_EvtReader* reader, 00061 OTF2_LocationRef* location ); 00062 00063 00073 OTF2_ErrorCode 00074 OTF2_EvtReader_GetPos( OTF2_EvtReader* reader, 00075 uint64_t* position ); 00076 00077 00095 OTF2_ErrorCode 00096 OTF2_EvtReader_SetCallbacks( OTF2_EvtReader* reader, 00097 const OTF2_EvtReaderCallbacks* callbacks, 00098 void* userData ); 00099 00100 00110 OTF2_ErrorCode 00111 OTF2_EvtReader_Seek( OTF2_EvtReader* reader, 00112 uint64_t position ); 00113 00114 00126 OTF2_ErrorCode 00127 OTF2_EvtReader_ReadEvents( OTF2_EvtReader* reader, 00128 uint64_t recordsToRead, 00129 uint64_t* recordsRead ); 00130 00131 00148 OTF2_ErrorCode 00149 OTF2_EvtReader_TimeStampRewrite( OTF2_EvtReader* reader, 00150 OTF2_TimeStamp time ); 00151 00152 00162 OTF2_ErrorCode 00163 OTF2_EvtReader_ReadEventsBackward( OTF2_EvtReader* reader, 00164 uint64_t recordsToRead, 00165 uint64_t* recordsRead ); 00166 00167 00179 OTF2_ErrorCode 00180 OTF2_EvtReader_ApplyMappingTables( OTF2_EvtReader* reader, 00181 bool action ); 00182 00183 00196 OTF2_ErrorCode 00197 OTF2_EvtReader_ApplyClockOffsets( OTF2_EvtReader* reader, 00198 bool action ); 00199 00200 00201 #ifdef __cplusplus 00202 } 00203 #endif /* __cplusplus */ 00204 00205 00206 #endif /* !OTF2_EVT_READER_H */