[97] | 1 | /* |
---|
| 2 | This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2008. |
---|
| 3 | Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | /** |
---|
| 7 | * @file OTF_CopyHandler.h |
---|
| 8 | * |
---|
| 9 | * @brief Provides handlers for copying a trace. |
---|
| 10 | * |
---|
| 11 | * \ingroup internal |
---|
| 12 | */ |
---|
| 13 | |
---|
| 14 | #ifndef OTF_COPYOTF_CopyHandler_R_H |
---|
| 15 | #define OTF_COPYOTF_CopyHandler_R_H |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | #include "OTF_inttypes.h" |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | #ifdef __cplusplus |
---|
| 22 | extern "C" { |
---|
| 23 | #endif /* __cplusplus */ |
---|
| 24 | |
---|
| 25 | /* *** Definition OTF_CopyHandler_r *** ************************************* */ |
---|
| 26 | |
---|
| 27 | int OTF_CopyHandler_DefinitionComment( void* userData, uint32_t stream, |
---|
| 28 | const char* comment ); |
---|
| 29 | |
---|
| 30 | int OTF_CopyHandler_DefTimerResolution( void* userData, uint32_t stream, |
---|
| 31 | uint64_t ticksPerSecond ); |
---|
| 32 | |
---|
| 33 | int OTF_CopyHandler_DefProcess( void* userData, uint32_t stream, uint32_t process, |
---|
| 34 | const char* name, uint32_t parent ); |
---|
| 35 | |
---|
| 36 | int OTF_CopyHandler_DefProcessGroup( void* userData, uint32_t stream, |
---|
| 37 | uint32_t procGroup, const char* name, uint32_t numberOfProcs, |
---|
| 38 | const uint32_t* procs ); |
---|
| 39 | |
---|
| 40 | int OTF_CopyHandler_DefFunction( void* userData, uint32_t stream, uint32_t func, |
---|
| 41 | const char* name, uint32_t funcGroup, uint32_t source ); |
---|
| 42 | |
---|
| 43 | int OTF_CopyHandler_DefFunctionGroup( void* userData, uint32_t stream, |
---|
| 44 | uint32_t funcGroup, const char* name ); |
---|
| 45 | |
---|
| 46 | int OTF_CopyHandler_DefCollectiveOperation( void* userData, uint32_t stream, |
---|
| 47 | uint32_t collOp, const char* name, uint32_t type ); |
---|
| 48 | |
---|
| 49 | int OTF_CopyHandler_DefCounter( void* userData, uint32_t stream, uint32_t counter, |
---|
| 50 | const char* name, uint32_t properties, uint32_t counterGroup, |
---|
| 51 | const char* unit ); |
---|
| 52 | |
---|
| 53 | int OTF_CopyHandler_DefCounterGroup( void* userData, uint32_t stream, |
---|
| 54 | uint32_t counterGroup, const char* name ); |
---|
| 55 | |
---|
| 56 | int OTF_CopyHandler_DefScl( void* userData, uint32_t stream, uint32_t source, |
---|
| 57 | uint32_t sourceFile, uint32_t line ); |
---|
| 58 | |
---|
| 59 | int OTF_CopyHandler_DefSclFile( void* userData, uint32_t stream, |
---|
| 60 | uint32_t sourceFile, const char* name ); |
---|
| 61 | |
---|
| 62 | int OTF_CopyHandler_DefVersion( void* userData, uint32_t stream, |
---|
| 63 | uint8_t major, uint8_t minor, uint8_t sub, const char* string ); |
---|
| 64 | |
---|
| 65 | int OTF_CopyHandler_DefCreator( void* userData, uint32_t stream, |
---|
| 66 | const char* creator ); |
---|
| 67 | |
---|
| 68 | int OTF_CopyHandler_DefFile( void* userData, uint32_t stream, uint32_t token, |
---|
| 69 | const char* name, uint32_t group ); |
---|
| 70 | |
---|
| 71 | int OTF_CopyHandler_DefFileGroup( void* userData, uint32_t stream, |
---|
| 72 | uint32_t token, const char* name ); |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | int OTF_CopyHandler_Enter( void* userData, uint64_t time, uint32_t function, |
---|
| 76 | uint32_t process, uint32_t source ); |
---|
| 77 | |
---|
| 78 | int OTF_CopyHandler_Leave( void* userData, uint64_t time, uint32_t function, |
---|
| 79 | uint32_t process, uint32_t source ); |
---|
| 80 | |
---|
| 81 | int OTF_CopyHandler_SendMsg( void* userData, uint64_t time, uint32_t sender, |
---|
| 82 | uint32_t receiver, uint32_t group, uint32_t type, uint32_t length, |
---|
| 83 | uint32_t source ); |
---|
| 84 | |
---|
| 85 | int OTF_CopyHandler_RecvMsg( void* userData, uint64_t time, uint32_t recvProc, |
---|
| 86 | uint32_t sendProc, uint32_t group, uint32_t type, uint32_t length, |
---|
| 87 | uint32_t source ); |
---|
| 88 | |
---|
| 89 | int OTF_CopyHandler_Counter( void* userData, uint64_t time, uint32_t process, |
---|
| 90 | uint32_t counter, uint64_t value ); |
---|
| 91 | |
---|
| 92 | int OTF_CopyHandler_CollectiveOperation( void* userData, uint64_t time, |
---|
| 93 | uint32_t process, uint32_t collective, uint32_t procGroup, |
---|
| 94 | uint32_t rootProc, uint32_t sent, uint32_t received, uint64_t duration, |
---|
| 95 | uint32_t source ); |
---|
| 96 | |
---|
| 97 | int OTF_CopyHandler_EventComment( void* userData, uint64_t time, uint32_t process, |
---|
| 98 | const char* comment ); |
---|
| 99 | |
---|
| 100 | int OTF_CopyHandler_BeginProcess( void* userData, uint64_t time, uint32_t process ); |
---|
| 101 | |
---|
| 102 | int OTF_CopyHandler_EndProcess( void* userData, uint64_t time, uint32_t process ); |
---|
| 103 | |
---|
| 104 | int OTF_CopyHandler_SnapshotComment( void* userData, uint64_t time, |
---|
| 105 | uint32_t process, const char* comment ); |
---|
| 106 | |
---|
| 107 | int OTF_CopyHandler_FileOperation( void* userData, uint64_t time, uint32_t fileid, |
---|
| 108 | uint32_t process, uint64_t handleid, uint32_t operation, uint64_t bytes, |
---|
| 109 | uint64_t duration, uint32_t source ); |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | int OTF_CopyHandler_EnterSnapshot( void *userData, uint64_t time, |
---|
| 113 | uint64_t originaltime, uint32_t function, uint32_t process, |
---|
| 114 | uint32_t source ); |
---|
| 115 | |
---|
| 116 | int OTF_CopyHandler_SendSnapshot( void *userData, uint64_t time, |
---|
| 117 | uint64_t originaltime, uint32_t sender, uint32_t receiver, |
---|
| 118 | uint32_t procGroup, uint32_t tag, uint32_t source ); |
---|
| 119 | |
---|
| 120 | int OTF_CopyHandler_OpenFileSnapshot( void* userData, uint64_t time, |
---|
| 121 | uint64_t originaltime, uint32_t fileid, uint32_t process, uint64_t handleid, |
---|
| 122 | uint32_t source ); |
---|
| 123 | |
---|
| 124 | |
---|
| 125 | int OTF_CopyHandler_SummaryComment( void * userData, uint64_t time, |
---|
| 126 | uint32_t process, const char* comment ); |
---|
| 127 | |
---|
| 128 | int OTF_CopyHandler_FunctionSummary( void* userData, uint64_t time, |
---|
| 129 | uint32_t function, uint32_t process, uint64_t invocations, |
---|
| 130 | uint64_t exclTime, uint64_t inclTime ); |
---|
| 131 | |
---|
| 132 | int OTF_CopyHandler_FunctionGroupSummary( void* userData, uint64_t time, |
---|
| 133 | uint32_t funcGroup, uint32_t process, uint64_t invocations, |
---|
| 134 | uint64_t exclTime, uint64_t inclTime ); |
---|
| 135 | |
---|
| 136 | int OTF_CopyHandler_MessageSummary( void* userData, uint64_t time, uint32_t process, |
---|
| 137 | uint32_t peer, uint32_t comm, uint32_t type, uint64_t sentNumber, |
---|
| 138 | uint64_t receivedNumber, uint64_t sentBytes, uint64_t receivedBytes ); |
---|
| 139 | |
---|
| 140 | int OTF_CopyHandler_FileOperationSummary( void* userData, uint64_t time, |
---|
| 141 | uint32_t fileid, uint32_t process, uint64_t nopen, uint64_t nclose, |
---|
| 142 | uint64_t nread, uint64_t nwrite, uint64_t nseek, uint64_t bytesread, |
---|
| 143 | uint64_t byteswrite ); |
---|
| 144 | |
---|
| 145 | int OTF_CopyHandler_FileGroupOperationSummary( void* userData, uint64_t time, |
---|
| 146 | uint32_t groupid, uint32_t process, uint64_t nopen, uint64_t nclose, |
---|
| 147 | uint64_t nread, uint64_t nwrite, uint64_t nseek, uint64_t bytesread, |
---|
| 148 | uint64_t byteswrite ); |
---|
| 149 | |
---|
| 150 | #ifdef __cplusplus |
---|
| 151 | } |
---|
| 152 | #endif /* __cplusplus */ |
---|
| 153 | |
---|
| 154 | #endif /* OTF_COPYOTF_CopyHandler_R_H */ |
---|
| 155 | |
---|