![]() |
1.5.1 (revision 4026)
|
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 00030 #include <stdint.h> 00031 00032 00033 #include <otf2/OTF2_ErrorCodes.h> 00034 00035 00036 #include <otf2/OTF2_Events.h> 00037 #include <otf2/OTF2_Definitions.h> 00038 #include <otf2/OTF2_AttributeList.h> 00039 #include <otf2/OTF2_EvtReaderCallbacks.h> 00040 00041 00042 #ifdef __cplusplus 00043 extern "C" { 00044 #endif /* __cplusplus */ 00045 00046 00055 OTF2_ErrorCode 00056 OTF2_EvtReader_GetLocationID( const OTF2_EvtReader* reader, 00057 OTF2_LocationRef* location ); 00058 00059 00069 OTF2_ErrorCode 00070 OTF2_EvtReader_GetPos( OTF2_EvtReader* reader, 00071 uint64_t* position ); 00072 00073 00091 OTF2_ErrorCode 00092 OTF2_EvtReader_SetCallbacks( OTF2_EvtReader* reader, 00093 const OTF2_EvtReaderCallbacks* callbacks, 00094 void* userData ); 00095 00096 00106 OTF2_ErrorCode 00107 OTF2_EvtReader_Seek( OTF2_EvtReader* reader, 00108 uint64_t position ); 00109 00110 00122 OTF2_ErrorCode 00123 OTF2_EvtReader_ReadEvents( OTF2_EvtReader* reader, 00124 uint64_t recordsToRead, 00125 uint64_t* recordsRead ); 00126 00127 00144 OTF2_ErrorCode 00145 OTF2_EvtReader_TimeStampRewrite( OTF2_EvtReader* reader, 00146 OTF2_TimeStamp time ); 00147 00148 00158 OTF2_ErrorCode 00159 OTF2_EvtReader_ReadEventsBackward( OTF2_EvtReader* reader, 00160 uint64_t recordsToRead, 00161 uint64_t* recordsRead ); 00162 00163 00175 OTF2_ErrorCode 00176 OTF2_EvtReader_ApplyMappingTables( OTF2_EvtReader* reader, 00177 bool action ); 00178 00179 00192 OTF2_ErrorCode 00193 OTF2_EvtReader_ApplyClockOffsets( OTF2_EvtReader* reader, 00194 bool action ); 00195 00196 00197 #ifdef __cplusplus 00198 } 00199 #endif /* __cplusplus */ 00200 00201 00202 #endif /* !OTF2_EVT_READER_H */