3.2 (revision 440b9273)
OTF2_EvtWriter.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Score-P software (http://www.score-p.org)
3  *
4  * Copyright (c) 2009-2013,
5  * RWTH Aachen University, Germany
6  *
7  * Copyright (c) 2009-2013,
8  * Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
9  *
10  * Copyright (c) 2009-2013, 2021,
11  * Technische Universitaet Dresden, Germany
12  *
13  * Copyright (c) 2009-2013,
14  * University of Oregon, Eugene, USA
15  *
16  * Copyright (c) 2009-2013,
17  * Forschungszentrum Juelich GmbH, Germany
18  *
19  * Copyright (c) 2009-2013,
20  * German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
21  *
22  * Copyright (c) 2009-2013,
23  * Technische Universitaet Muenchen, Germany
24  *
25  * This software may be modified and distributed under the terms of
26  * a BSD-style license. See the COPYING file in the package base
27  * directory for details.
28  *
29  */
30 
31 
32 #ifndef OTF2_EVT_WRITER_H
33 #define OTF2_EVT_WRITER_H
34 
35 
46 #include <stdint.h>
47 
48 
49 #include "otf2_compiler.h"
50 
51 
52 #include <otf2/OTF2_ErrorCodes.h>
53 
54 
55 #include <otf2/OTF2_Events.h>
57 
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif /* __cplusplus */
62 
63 
66 typedef struct OTF2_EvtWriter_struct OTF2_EvtWriter;
67 
68 
79  OTF2_LocationRef* locationID );
80 
81 
93  void* userData );
94 
95 
106  void** userData );
107 
108 
121  OTF2_LocationRef location );
122 
123 
137  uint64_t* numberOfEvents );
138 
139 
156  OTF2_AttributeList* attributeList,
157  OTF2_TimeStamp time,
158  OTF2_TimeStamp stopTime );
159 
160 
179  OTF2_AttributeList* attributeList,
180  OTF2_TimeStamp time,
181  OTF2_MeasurementMode measurementMode );
182 
183 
202  OTF2_AttributeList* attributeList,
203  OTF2_TimeStamp time,
204  OTF2_RegionRef region );
205 
206 
225  OTF2_AttributeList* attributeList,
226  OTF2_TimeStamp time,
227  OTF2_RegionRef region );
228 
229 
255  OTF2_AttributeList* attributeList,
256  OTF2_TimeStamp time,
257  uint32_t receiver,
258  OTF2_CommRef communicator,
259  uint32_t msgTag,
260  uint64_t msgLength );
261 
262 
289  OTF2_AttributeList* attributeList,
290  OTF2_TimeStamp time,
291  uint32_t receiver,
292  OTF2_CommRef communicator,
293  uint32_t msgTag,
294  uint64_t msgLength,
295  uint64_t requestID );
296 
297 
318  OTF2_AttributeList* attributeList,
319  OTF2_TimeStamp time,
320  uint64_t requestID );
321 
322 
339  OTF2_AttributeList* attributeList,
340  OTF2_TimeStamp time,
341  uint64_t requestID );
342 
343 
369  OTF2_AttributeList* attributeList,
370  OTF2_TimeStamp time,
371  uint32_t sender,
372  OTF2_CommRef communicator,
373  uint32_t msgTag,
374  uint64_t msgLength );
375 
376 
403  OTF2_AttributeList* attributeList,
404  OTF2_TimeStamp time,
405  uint32_t sender,
406  OTF2_CommRef communicator,
407  uint32_t msgTag,
408  uint64_t msgLength,
409  uint64_t requestID );
410 
411 
428  OTF2_AttributeList* attributeList,
429  OTF2_TimeStamp time,
430  uint64_t requestID );
431 
432 
448  OTF2_AttributeList* attributeList,
449  OTF2_TimeStamp time,
450  uint64_t requestID );
451 
452 
468  OTF2_AttributeList* attributeList,
469  OTF2_TimeStamp time );
470 
471 
499  OTF2_AttributeList* attributeList,
500  OTF2_TimeStamp time,
501  OTF2_CollectiveOp collectiveOp,
502  OTF2_CommRef communicator,
503  uint32_t root,
504  uint64_t sizeSent,
505  uint64_t sizeReceived );
506 
507 
529  OTF2_AttributeList* attributeList,
530  OTF2_TimeStamp time,
531  uint32_t numberOfRequestedThreads ) __otf2_deprecated__;
532 
533 
555  OTF2_AttributeList* attributeList,
556  OTF2_TimeStamp time ) __otf2_deprecated__;
557 
558 
586  OTF2_AttributeList* attributeList,
587  OTF2_TimeStamp time,
588  uint32_t lockID,
589  uint32_t acquisitionOrder ) __otf2_deprecated__;
590 
591 
619  OTF2_AttributeList* attributeList,
620  OTF2_TimeStamp time,
621  uint32_t lockID,
622  uint32_t acquisitionOrder ) __otf2_deprecated__;
623 
624 
647  OTF2_AttributeList* attributeList,
648  OTF2_TimeStamp time,
649  uint64_t taskID ) __otf2_deprecated__;
650 
651 
676  OTF2_AttributeList* attributeList,
677  OTF2_TimeStamp time,
678  uint64_t taskID ) __otf2_deprecated__;
679 
680 
703  OTF2_AttributeList* attributeList,
704  OTF2_TimeStamp time,
705  uint64_t taskID ) __otf2_deprecated__;
706 
707 
735  OTF2_AttributeList* attributeList,
736  OTF2_TimeStamp time,
737  OTF2_MetricRef metric,
738  uint8_t numberOfMetrics,
739  const OTF2_Type* typeIDs,
740  const OTF2_MetricValue* metricValues );
741 
742 
766  OTF2_AttributeList* attributeList,
767  OTF2_TimeStamp time,
768  OTF2_ParameterRef parameter,
769  OTF2_StringRef string );
770 
771 
792  OTF2_AttributeList* attributeList,
793  OTF2_TimeStamp time,
794  OTF2_ParameterRef parameter,
795  int64_t value );
796 
797 
818  OTF2_AttributeList* attributeList,
819  OTF2_TimeStamp time,
820  OTF2_ParameterRef parameter,
821  uint64_t value );
822 
823 
849  OTF2_AttributeList* attributeList,
850  OTF2_TimeStamp time,
851  OTF2_RmaWinRef win );
852 
853 
881  OTF2_AttributeList* attributeList,
882  OTF2_TimeStamp time,
883  OTF2_RmaWinRef win );
884 
885 
901  OTF2_AttributeList* attributeList,
902  OTF2_TimeStamp time );
903 
904 
930  OTF2_AttributeList* attributeList,
931  OTF2_TimeStamp time,
932  OTF2_CollectiveOp collectiveOp,
933  OTF2_RmaSyncLevel syncLevel,
934  OTF2_RmaWinRef win,
935  uint32_t root,
936  uint64_t bytesSent,
937  uint64_t bytesReceived );
938 
939 
964  OTF2_AttributeList* attributeList,
965  OTF2_TimeStamp time,
966  OTF2_RmaSyncLevel syncLevel,
967  OTF2_RmaWinRef win,
968  OTF2_GroupRef group );
969 
970 
998  OTF2_AttributeList* attributeList,
999  OTF2_TimeStamp time,
1000  OTF2_RmaWinRef win,
1001  uint32_t remote,
1002  uint64_t lockId,
1003  OTF2_LockType lockType );
1004 
1005 
1031  OTF2_AttributeList* attributeList,
1032  OTF2_TimeStamp time,
1033  OTF2_RmaWinRef win,
1034  uint32_t remote,
1035  uint64_t lockId,
1036  OTF2_LockType lockType );
1037 
1038 
1064  OTF2_AttributeList* attributeList,
1065  OTF2_TimeStamp time,
1066  OTF2_RmaWinRef win,
1067  uint32_t remote,
1068  uint64_t lockId,
1069  OTF2_LockType lockType );
1070 
1071 
1095  OTF2_AttributeList* attributeList,
1096  OTF2_TimeStamp time,
1097  OTF2_RmaWinRef win,
1098  uint32_t remote,
1099  uint64_t lockId );
1100 
1101 
1123  OTF2_AttributeList* attributeList,
1124  OTF2_TimeStamp time,
1125  OTF2_RmaWinRef win,
1126  uint32_t remote,
1127  OTF2_RmaSyncType syncType );
1128 
1129 
1149  OTF2_AttributeList* attributeList,
1150  OTF2_TimeStamp time,
1151  OTF2_RmaWinRef win );
1152 
1153 
1176  OTF2_AttributeList* attributeList,
1177  OTF2_TimeStamp time,
1178  OTF2_RmaWinRef win,
1179  uint32_t remote,
1180  uint64_t bytes,
1181  uint64_t matchingId );
1182 
1183 
1206  OTF2_AttributeList* attributeList,
1207  OTF2_TimeStamp time,
1208  OTF2_RmaWinRef win,
1209  uint32_t remote,
1210  uint64_t bytes,
1211  uint64_t matchingId );
1212 
1213 
1239  OTF2_AttributeList* attributeList,
1240  OTF2_TimeStamp time,
1241  OTF2_RmaWinRef win,
1242  uint32_t remote,
1243  OTF2_RmaAtomicType type,
1244  uint64_t bytesSent,
1245  uint64_t bytesReceived,
1246  uint64_t matchingId );
1247 
1248 
1270  OTF2_AttributeList* attributeList,
1271  OTF2_TimeStamp time,
1272  OTF2_RmaWinRef win,
1273  uint64_t matchingId );
1274 
1275 
1297  OTF2_AttributeList* attributeList,
1298  OTF2_TimeStamp time,
1299  OTF2_RmaWinRef win,
1300  uint64_t matchingId );
1301 
1302 
1324  OTF2_AttributeList* attributeList,
1325  OTF2_TimeStamp time,
1326  OTF2_RmaWinRef win,
1327  uint64_t matchingId );
1328 
1329 
1351  OTF2_AttributeList* attributeList,
1352  OTF2_TimeStamp time,
1353  OTF2_RmaWinRef win,
1354  uint64_t matchingId );
1355 
1356 
1373  OTF2_AttributeList* attributeList,
1374  OTF2_TimeStamp time,
1375  OTF2_Paradigm model,
1376  uint32_t numberOfRequestedThreads );
1377 
1378 
1395  OTF2_AttributeList* attributeList,
1396  OTF2_TimeStamp time,
1397  OTF2_Paradigm model );
1398 
1399 
1418  OTF2_AttributeList* attributeList,
1419  OTF2_TimeStamp time,
1420  OTF2_CommRef threadTeam );
1421 
1422 
1441  OTF2_AttributeList* attributeList,
1442  OTF2_TimeStamp time,
1443  OTF2_CommRef threadTeam );
1444 
1445 
1467  OTF2_AttributeList* attributeList,
1468  OTF2_TimeStamp time,
1469  OTF2_Paradigm model,
1470  uint32_t lockID,
1471  uint32_t acquisitionOrder );
1472 
1473 
1495  OTF2_AttributeList* attributeList,
1496  OTF2_TimeStamp time,
1497  OTF2_Paradigm model,
1498  uint32_t lockID,
1499  uint32_t acquisitionOrder );
1500 
1501 
1525  OTF2_AttributeList* attributeList,
1526  OTF2_TimeStamp time,
1527  OTF2_CommRef threadTeam,
1528  uint32_t creatingThread,
1529  uint32_t generationNumber );
1530 
1531 
1557  OTF2_AttributeList* attributeList,
1558  OTF2_TimeStamp time,
1559  OTF2_CommRef threadTeam,
1560  uint32_t creatingThread,
1561  uint32_t generationNumber );
1562 
1563 
1587  OTF2_AttributeList* attributeList,
1588  OTF2_TimeStamp time,
1589  OTF2_CommRef threadTeam,
1590  uint32_t creatingThread,
1591  uint32_t generationNumber );
1592 
1593 
1615  OTF2_AttributeList* attributeList,
1616  OTF2_TimeStamp time,
1617  OTF2_CommRef threadContingent,
1618  uint64_t sequenceCount );
1619 
1620 
1642  OTF2_AttributeList* attributeList,
1643  OTF2_TimeStamp time,
1644  OTF2_CommRef threadContingent,
1645  uint64_t sequenceCount );
1646 
1647 
1669  OTF2_AttributeList* attributeList,
1670  OTF2_TimeStamp time,
1671  OTF2_CommRef threadContingent,
1672  uint64_t sequenceCount );
1673 
1674 
1698  OTF2_AttributeList* attributeList,
1699  OTF2_TimeStamp time,
1700  OTF2_CommRef threadContingent,
1701  uint64_t sequenceCount );
1702 
1703 
1738  OTF2_AttributeList* attributeList,
1739  OTF2_TimeStamp time,
1740  OTF2_CallingContextRef callingContext,
1741  uint32_t unwindDistance );
1742 
1743 
1783  OTF2_AttributeList* attributeList,
1784  OTF2_TimeStamp time,
1785  OTF2_CallingContextRef callingContext );
1786 
1787 
1821  OTF2_AttributeList* attributeList,
1822  OTF2_TimeStamp time,
1823  OTF2_CallingContextRef callingContext,
1824  uint32_t unwindDistance,
1825  OTF2_InterruptGeneratorRef interruptGenerator );
1826 
1827 
1865  OTF2_AttributeList* attributeList,
1866  OTF2_TimeStamp time,
1867  OTF2_IoHandleRef handle,
1868  OTF2_IoAccessMode mode,
1869  OTF2_IoCreationFlag creationFlags,
1870  OTF2_IoStatusFlag statusFlags );
1871 
1872 
1902  OTF2_AttributeList* attributeList,
1903  OTF2_TimeStamp time,
1904  OTF2_IoHandleRef handle );
1905 
1906 
1941  OTF2_AttributeList* attributeList,
1942  OTF2_TimeStamp time,
1943  OTF2_IoHandleRef oldHandle,
1944  OTF2_IoHandleRef newHandle,
1945  OTF2_IoStatusFlag statusFlags );
1946 
1947 
1973  OTF2_AttributeList* attributeList,
1974  OTF2_TimeStamp time,
1975  OTF2_IoHandleRef handle,
1976  int64_t offsetRequest,
1977  OTF2_IoSeekOption whence,
1978  uint64_t offsetResult );
1979 
1980 
2001  OTF2_AttributeList* attributeList,
2002  OTF2_TimeStamp time,
2003  OTF2_IoHandleRef handle,
2004  OTF2_IoStatusFlag statusFlags );
2005 
2006 
2027  OTF2_AttributeList* attributeList,
2028  OTF2_TimeStamp time,
2029  OTF2_IoParadigmRef ioParadigm,
2030  OTF2_IoFileRef file );
2031 
2032 
2060  OTF2_AttributeList* attributeList,
2061  OTF2_TimeStamp time,
2062  OTF2_IoHandleRef handle,
2063  OTF2_IoOperationMode mode,
2064  OTF2_IoOperationFlag operationFlags,
2065  uint64_t bytesRequest,
2066  uint64_t matchingId );
2067 
2068 
2093  OTF2_AttributeList* attributeList,
2094  OTF2_TimeStamp time,
2095  OTF2_IoHandleRef handle,
2096  uint64_t matchingId );
2097 
2098 
2124  OTF2_AttributeList* attributeList,
2125  OTF2_TimeStamp time,
2126  OTF2_IoHandleRef handle,
2127  uint64_t matchingId );
2128 
2129 
2155  OTF2_AttributeList* attributeList,
2156  OTF2_TimeStamp time,
2157  OTF2_IoHandleRef handle,
2158  uint64_t bytesResult,
2159  uint64_t matchingId );
2160 
2161 
2187  OTF2_AttributeList* attributeList,
2188  OTF2_TimeStamp time,
2189  OTF2_IoHandleRef handle,
2190  uint64_t matchingId );
2191 
2192 
2212  OTF2_AttributeList* attributeList,
2213  OTF2_TimeStamp time,
2214  OTF2_IoHandleRef handle,
2215  OTF2_LockType lockType );
2216 
2217 
2237  OTF2_AttributeList* attributeList,
2238  OTF2_TimeStamp time,
2239  OTF2_IoHandleRef handle,
2240  OTF2_LockType lockType );
2241 
2242 
2263  OTF2_AttributeList* attributeList,
2264  OTF2_TimeStamp time,
2265  OTF2_IoHandleRef handle,
2266  OTF2_LockType lockType );
2267 
2268 
2300  OTF2_AttributeList* attributeList,
2301  OTF2_TimeStamp time,
2302  OTF2_StringRef programName,
2303  uint32_t numberOfArguments,
2304  const OTF2_StringRef* programArguments );
2305 
2306 
2337  OTF2_AttributeList* attributeList,
2338  OTF2_TimeStamp time,
2339  int64_t exitStatus );
2340 
2341 
2358  OTF2_AttributeList* attributeList,
2359  OTF2_TimeStamp time,
2360  uint64_t requestID );
2361 
2362 
2388  OTF2_AttributeList* attributeList,
2389  OTF2_TimeStamp time,
2390  OTF2_CollectiveOp collectiveOp,
2391  OTF2_CommRef communicator,
2392  uint32_t root,
2393  uint64_t sizeSent,
2394  uint64_t sizeReceived,
2395  uint64_t requestID );
2396 
2397 
2422  OTF2_AttributeList* attributeList,
2423  OTF2_TimeStamp time,
2424  OTF2_CommRef communicator );
2425 
2426 
2452  OTF2_AttributeList* attributeList,
2453  OTF2_TimeStamp time,
2454  OTF2_CommRef communicator );
2455 
2456 
2482  OTF2_AttributeList* attributeList,
2483  OTF2_TimeStamp time,
2484  uint32_t sender,
2485  OTF2_CommRef communicator,
2486  uint32_t tag,
2487  uint64_t messageId );
2488 
2489 
2506  OTF2_AttributeList* attributeList,
2507  OTF2_TimeStamp time,
2508  uint64_t messageId,
2509  uint64_t msgLength );
2510 
2511 
2529  OTF2_AttributeList* attributeList,
2530  OTF2_TimeStamp time,
2531  uint64_t messageId,
2532  uint64_t requestId );
2533 
2534 
2551  OTF2_AttributeList* attributeList,
2552  OTF2_TimeStamp time,
2553  uint64_t requestId,
2554  uint64_t msgLength );
2555 
2556 
2568  uint32_t rewindId );
2569 
2570 
2582  uint32_t rewindId );
2583 
2584 
2596  uint32_t rewindId );
2597 
2598 
2599 #ifdef __cplusplus
2600 }
2601 #endif /* __cplusplus */
2602 
2603 
2604 #endif /* !OTF2_EVT_WRITER_H */
uint8_t OTF2_RmaSyncType
Wrapper for enum OTF2_RmaSyncType_enum.
Definition: OTF2_Events.h:190
OTF2_ErrorCode OTF2_EvtWriter_RmaOpTest(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint64_t matchingId)
Records a RmaOpTest event.
uint8_t OTF2_IoSeekOption
Wrapper for enum OTF2_IoSeekOption_enum.
Definition: OTF2_Events.h:414
OTF2_ErrorCode OTF2_EvtWriter_ThreadCreate(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadContingent, uint64_t sequenceCount)
Records a ThreadCreate event.
OTF2_ErrorCode OTF2_EvtWriter_StoreRewindPoint(OTF2_EvtWriter *writer, uint32_t rewindId)
Please give me a documentation.
OTF2_ErrorCode OTF2_EvtWriter_GetNumberOfEvents(OTF2_EvtWriter *writer, uint64_t *numberOfEvents)
Get the number of events.
uint64_t OTF2_LocationRef
Type used to indicate a reference to a Location definition.
Definition: OTF2_GeneralDefinitions.h:142
OTF2_ErrorCode OTF2_EvtWriter_RmaGet(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, uint64_t bytes, uint64_t matchingId)
Records a RmaGet event.
OTF2_ErrorCode OTF2_EvtWriter_SetLocationID(OTF2_EvtWriter *writer, OTF2_LocationRef location)
The location ID is not always known on measurement start, and only needed on the first buffer flush t...
uint8_t OTF2_Type
Wrapper for enum OTF2_Type_enum.
Definition: OTF2_GeneralDefinitions.h:596
OTF2_ErrorCode OTF2_EvtWriter_ThreadTaskSwitch(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadTeam, uint32_t creatingThread, uint32_t generationNumber)
Records a ThreadTaskSwitch event.
OTF2_ErrorCode OTF2_EvtWriter_MpiImrecv(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t requestId, uint64_t msgLength)
Records a MpiImrecv event.
OTF2_ErrorCode OTF2_EvtWriter_RmaOpCompleteRemote(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint64_t matchingId)
Records a RmaOpCompleteRemote event.
OTF2_ErrorCode OTF2_EvtWriter_IoReleaseLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, OTF2_LockType lockType)
Records a IoReleaseLock event.
uint8_t OTF2_Paradigm
Wrapper for enum OTF2_Paradigm_enum.
Definition: OTF2_GeneralDefinitions.h:778
OTF2_ErrorCode OTF2_EvtWriter_RmaCollectiveEnd(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CollectiveOp collectiveOp, OTF2_RmaSyncLevel syncLevel, OTF2_RmaWinRef win, uint32_t root, uint64_t bytesSent, uint64_t bytesReceived)
Records a RmaCollectiveEnd event.
uint32_t OTF2_StringRef
Type used to indicate a reference to a String definition.
Definition: OTF2_GeneralDefinitions.h:118
uint8_t OTF2_IoParadigmRef
Type used to indicate a reference to a IoParadigm definition.
Definition: OTF2_GeneralDefinitions.h:112
OTF2_ErrorCode OTF2_EvtWriter_RmaTryLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, uint64_t lockId, OTF2_LockType lockType)
Records a RmaTryLock event.
OTF2_ErrorCode OTF2_EvtWriter_MpiIrecvRequest(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t requestID)
Records a MpiIrecvRequest event.
OTF2_ErrorCode OTF2_EvtWriter_RmaAtomic(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, OTF2_RmaAtomicType type, uint64_t bytesSent, uint64_t bytesReceived, uint64_t matchingId)
Records a RmaAtomic event.
OTF2_ErrorCode OTF2_EvtWriter_IoSeek(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, int64_t offsetRequest, OTF2_IoSeekOption whence, uint64_t offsetResult)
Records a IoSeek event.
Enums and types used in event records.
uint8_t OTF2_MeasurementMode
Wrapper for enum OTF2_MeasurementMode_enum.
Definition: OTF2_Events.h:59
Metric value.
Definition: OTF2_Events.h:563
uint32_t OTF2_ParameterRef
Type used to indicate a reference to a Parameter definition.
Definition: OTF2_GeneralDefinitions.h:190
This layer enables dynamic appending of arbitrary attributes to any type of event record...
OTF2_ErrorCode OTF2_EvtWriter_IoCreateHandle(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, OTF2_IoAccessMode mode, OTF2_IoCreationFlag creationFlags, OTF2_IoStatusFlag statusFlags)
Records a IoCreateHandle event.
OTF2_ErrorCode OTF2_EvtWriter_CommDestroy(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef communicator)
Records a CommDestroy event.
uint8_t OTF2_RmaAtomicType
Wrapper for enum OTF2_RmaAtomicType_enum.
Definition: OTF2_Events.h:262
uint32_t OTF2_RmaSyncLevel
Wrapper for enum OTF2_RmaSyncLevel_enum.
Definition: OTF2_Events.h:214
OTF2_ErrorCode OTF2_EvtWriter_ParameterString(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_ParameterRef parameter, OTF2_StringRef string)
Records a ParameterString event.
OTF2_ErrorCode OTF2_EvtWriter_MpiCollectiveBegin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time)
Records a MpiCollectiveBegin event.
struct OTF2_AttributeList_struct OTF2_AttributeList
Attribute list handle.
Definition: OTF2_AttributeList.h:104
uint32_t OTF2_IoStatusFlag
Wrapper for enum OTF2_IoStatusFlag_enum.
Definition: OTF2_Definitions.h:1016
OTF2_ErrorCode
Definition: OTF2_ErrorCodes.h:36
OTF2_ErrorCode OTF2_EvtWriter_NonBlockingCollectiveRequest(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t requestID)
Records a NonBlockingCollectiveRequest event.
OTF2_ErrorCode OTF2_EvtWriter_ThreadTaskComplete(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadTeam, uint32_t creatingThread, uint32_t generationNumber)
Records a ThreadTaskComplete event.
OTF2_ErrorCode OTF2_EvtWriter_OmpTaskComplete(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t taskID)
Records a OmpTaskComplete event.
uint32_t OTF2_IoOperationFlag
Wrapper for enum OTF2_IoOperationFlag_enum.
Definition: OTF2_Events.h:488
OTF2_ErrorCode OTF2_EvtWriter_RmaGroupSync(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaSyncLevel syncLevel, OTF2_RmaWinRef win, OTF2_GroupRef group)
Records a RmaGroupSync event.
OTF2_ErrorCode OTF2_EvtWriter_GetLocationID(const OTF2_EvtWriter *writer, OTF2_LocationRef *locationID)
Function to get the location ID of a writer object.
OTF2_ErrorCode OTF2_EvtWriter_OmpReleaseLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t lockID, uint32_t acquisitionOrder)
Records a OmpReleaseLock event.
uint32_t OTF2_InterruptGeneratorRef
Type used to indicate a reference to a InterruptGenerator definition.
Definition: OTF2_GeneralDefinitions.h:226
uint8_t OTF2_LockType
Wrapper for enum OTF2_LockType_enum.
Definition: OTF2_Events.h:241
OTF2_ErrorCode OTF2_EvtWriter_ThreadTeamBegin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadTeam)
Records a ThreadTeamBegin event.
OTF2_ErrorCode OTF2_EvtWriter_ThreadTaskCreate(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadTeam, uint32_t creatingThread, uint32_t generationNumber)
Records a ThreadTaskCreate event.
OTF2_ErrorCode OTF2_EvtWriter_NonBlockingCollectiveComplete(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CollectiveOp collectiveOp, OTF2_CommRef communicator, uint32_t root, uint64_t sizeSent, uint64_t sizeReceived, uint64_t requestID)
Records a NonBlockingCollectiveComplete event.
OTF2_ErrorCode OTF2_EvtWriter_MpiIsendComplete(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t requestID)
Records a MpiIsendComplete event.
OTF2_ErrorCode OTF2_EvtWriter_RmaRequestLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, uint64_t lockId, OTF2_LockType lockType)
Records a RmaRequestLock event.
OTF2_ErrorCode OTF2_EvtWriter_IoOperationTest(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, uint64_t matchingId)
Records a IoOperationTest event.
uint64_t OTF2_TimeStamp
OTF2 time stamp.
Definition: OTF2_GeneralDefinitions.h:106
OTF2_ErrorCode OTF2_EvtWriter_RmaWaitChange(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win)
Records a RmaWaitChange event.
OTF2_ErrorCode OTF2_EvtWriter_ParameterUnsignedInt(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_ParameterRef parameter, uint64_t value)
Records a ParameterUnsignedInt event.
uint32_t OTF2_IoHandleRef
Type used to indicate a reference to a IoHandle definition.
Definition: OTF2_GeneralDefinitions.h:238
OTF2_ErrorCode OTF2_EvtWriter_Leave(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RegionRef region)
Records a Leave event.
OTF2_ErrorCode OTF2_EvtWriter_MpiIsend(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t receiver, OTF2_CommRef communicator, uint32_t msgTag, uint64_t msgLength, uint64_t requestID)
Records a MpiIsend event.
OTF2_ErrorCode OTF2_EvtWriter_RmaAcquireLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, uint64_t lockId, OTF2_LockType lockType)
Records a RmaAcquireLock event.
uint32_t OTF2_MetricRef
Type used to indicate a reference to a MetricClass, or a MetricInstance definition.
Definition: OTF2_GeneralDefinitions.h:178
OTF2_ErrorCode OTF2_EvtWriter_OmpAcquireLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t lockID, uint32_t acquisitionOrder)
Records a OmpAcquireLock event.
OTF2_ErrorCode OTF2_EvtWriter_MpiRequestCancelled(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t requestID)
Records a MpiRequestCancelled event.
OTF2_ErrorCode OTF2_EvtWriter_IoOperationComplete(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, uint64_t bytesResult, uint64_t matchingId)
Records a IoOperationComplete event.
OTF2_ErrorCode OTF2_EvtWriter_IoDuplicateHandle(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef oldHandle, OTF2_IoHandleRef newHandle, OTF2_IoStatusFlag statusFlags)
Records a IoDuplicateHandle event.
OTF2_ErrorCode OTF2_EvtWriter_RmaReleaseLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, uint64_t lockId)
Records a RmaReleaseLock event.
OTF2_ErrorCode OTF2_EvtWriter_OmpJoin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time)
Records a OmpJoin event.
OTF2_ErrorCode OTF2_EvtWriter_IoOperationCancelled(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, uint64_t matchingId)
Records a IoOperationCancelled event.
OTF2_ErrorCode OTF2_EvtWriter_OmpFork(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t numberOfRequestedThreads)
Records a OmpFork event.
uint32_t OTF2_CallingContextRef
Type used to indicate a reference to a CallingContext definition.
Definition: OTF2_GeneralDefinitions.h:220
OTF2_ErrorCode OTF2_EvtWriter_SetUserData(OTF2_EvtWriter *writer, void *userData)
Function to set user defined data to a writer object.
OTF2_ErrorCode OTF2_EvtWriter_RmaOpCompleteNonBlocking(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint64_t matchingId)
Records a RmaOpCompleteNonBlocking event.
OTF2_ErrorCode OTF2_EvtWriter_IoDestroyHandle(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle)
Records a IoDestroyHandle event.
OTF2_ErrorCode OTF2_EvtWriter_MpiCollectiveEnd(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CollectiveOp collectiveOp, OTF2_CommRef communicator, uint32_t root, uint64_t sizeSent, uint64_t sizeReceived)
Records a MpiCollectiveEnd event.
OTF2_ErrorCode OTF2_EvtWriter_IoOperationBegin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, OTF2_IoOperationMode mode, OTF2_IoOperationFlag operationFlags, uint64_t bytesRequest, uint64_t matchingId)
Records a IoOperationBegin event.
uint8_t OTF2_CollectiveOp
Wrapper for enum OTF2_CollectiveOp_enum.
Definition: OTF2_Events.h:79
Compiler feature test macros.
OTF2_ErrorCode OTF2_EvtWriter_MpiRequestTest(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t requestID)
Records a MpiRequestTest event.
OTF2_ErrorCode OTF2_EvtWriter_OmpTaskSwitch(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t taskID)
Records a OmpTaskSwitch event.
OTF2_ErrorCode OTF2_EvtWriter_OmpTaskCreate(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t taskID)
Records a OmpTaskCreate event.
OTF2_ErrorCode OTF2_EvtWriter_ThreadEnd(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadContingent, uint64_t sequenceCount)
Records a ThreadEnd event.
OTF2_ErrorCode OTF2_EvtWriter_Metric(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_MetricRef metric, uint8_t numberOfMetrics, const OTF2_Type *typeIDs, const OTF2_MetricValue *metricValues)
Records a Metric event.
OTF2_ErrorCode OTF2_EvtWriter_IoOperationIssued(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, uint64_t matchingId)
Records a IoOperationIssued event.
OTF2_ErrorCode OTF2_EvtWriter_RmaWinCreate(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win)
Records a RmaWinCreate event.
OTF2_ErrorCode OTF2_EvtWriter_Enter(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RegionRef region)
Records a Enter event.
OTF2_ErrorCode OTF2_EvtWriter_MpiSend(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t receiver, OTF2_CommRef communicator, uint32_t msgTag, uint64_t msgLength)
Records a MpiSend event.
uint32_t OTF2_IoFileRef
Type used to indicate a reference to a IoRegularFile, or a IoDirectory definition.
Definition: OTF2_GeneralDefinitions.h:232
OTF2_ErrorCode OTF2_EvtWriter_GetUserData(const OTF2_EvtWriter *writer, void **userData)
Function to get the location of a writer object.
OTF2_ErrorCode OTF2_EvtWriter_IoAcquireLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, OTF2_LockType lockType)
Records a IoAcquireLock event.
OTF2_ErrorCode OTF2_EvtWriter_ThreadWait(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadContingent, uint64_t sequenceCount)
Records a ThreadWait event.
OTF2_ErrorCode OTF2_EvtWriter_MpiIrecv(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t sender, OTF2_CommRef communicator, uint32_t msgTag, uint64_t msgLength, uint64_t requestID)
Records a MpiIrecv event.
OTF2_ErrorCode OTF2_EvtWriter_CallingContextEnter(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CallingContextRef callingContext, uint32_t unwindDistance)
Records a CallingContextEnter event.
OTF2_ErrorCode OTF2_EvtWriter_CallingContextLeave(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CallingContextRef callingContext)
Records a CallingContextLeave event.
OTF2_ErrorCode OTF2_EvtWriter_CommCreate(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef communicator)
Records a CommCreate event.
OTF2_ErrorCode OTF2_EvtWriter_ThreadJoin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_Paradigm model)
Records a ThreadJoin event.
OTF2_ErrorCode OTF2_EvtWriter_RmaCollectiveBegin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time)
Records a RmaCollectiveBegin event.
OTF2_ErrorCode OTF2_EvtWriter_RmaWinDestroy(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win)
Records a RmaWinDestroy event.
OTF2_ErrorCode OTF2_EvtWriter_ClearRewindPoint(OTF2_EvtWriter *writer, uint32_t rewindId)
Please give me a documentation.
struct OTF2_EvtWriter_struct OTF2_EvtWriter
Keeps all necessary information about the event writer. See OTF2_EvtWriter_struct for detailed inform...
Definition: OTF2_EvtWriter.h:66
OTF2_ErrorCode OTF2_EvtWriter_ThreadAcquireLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_Paradigm model, uint32_t lockID, uint32_t acquisitionOrder)
Records a ThreadAcquireLock event.
uint32_t OTF2_CommRef
Type used to indicate a reference to a Comm, or a InterComm definition.
Definition: OTF2_GeneralDefinitions.h:184
OTF2_ErrorCode OTF2_EvtWriter_BufferFlush(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_TimeStamp stopTime)
Records a BufferFlush event.
uint32_t OTF2_RegionRef
Type used to indicate a reference to a Region definition.
Definition: OTF2_GeneralDefinitions.h:148
OTF2_ErrorCode OTF2_EvtWriter_ThreadReleaseLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_Paradigm model, uint32_t lockID, uint32_t acquisitionOrder)
Records a ThreadReleaseLock event.
OTF2_ErrorCode OTF2_EvtWriter_ThreadFork(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_Paradigm model, uint32_t numberOfRequestedThreads)
Records a ThreadFork event.
OTF2_ErrorCode OTF2_EvtWriter_ProgramEnd(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, int64_t exitStatus)
Records a ProgramEnd event.
OTF2_ErrorCode OTF2_EvtWriter_MpiImrecvRequest(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t messageId, uint64_t requestId)
Records a MpiImrecvRequest event.
OTF2_ErrorCode OTF2_EvtWriter_Rewind(OTF2_EvtWriter *writer, uint32_t rewindId)
Please give me a documentation.
OTF2_ErrorCode OTF2_EvtWriter_IoDeleteFile(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoParadigmRef ioParadigm, OTF2_IoFileRef file)
Records a IoDeleteFile event.
OTF2_ErrorCode OTF2_EvtWriter_RmaPut(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, uint64_t bytes, uint64_t matchingId)
Records a RmaPut event.
uint32_t OTF2_GroupRef
Type used to indicate a reference to a Group definition.
Definition: OTF2_GeneralDefinitions.h:166
OTF2_ErrorCode OTF2_EvtWriter_ThreadTeamEnd(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadTeam)
Records a ThreadTeamEnd event.
OTF2_ErrorCode OTF2_EvtWriter_ProgramBegin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_StringRef programName, uint32_t numberOfArguments, const OTF2_StringRef *programArguments)
Records a ProgramBegin event.
uint32_t OTF2_IoCreationFlag
Wrapper for enum OTF2_IoCreationFlag_enum.
Definition: OTF2_Events.h:314
uint8_t OTF2_IoAccessMode
Wrapper for enum OTF2_IoAccessMode_enum.
Definition: OTF2_Definitions.h:967
OTF2_ErrorCode OTF2_EvtWriter_MpiRecv(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t sender, OTF2_CommRef communicator, uint32_t msgTag, uint64_t msgLength)
Records a MpiRecv event.
OTF2_ErrorCode OTF2_EvtWriter_RmaSync(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint32_t remote, OTF2_RmaSyncType syncType)
Records a RmaSync event.
OTF2_ErrorCode OTF2_EvtWriter_IoChangeStatusFlags(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, OTF2_IoStatusFlag statusFlags)
Records a IoChangeStatusFlags event.
OTF2_ErrorCode OTF2_EvtWriter_CallingContextSample(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CallingContextRef callingContext, uint32_t unwindDistance, OTF2_InterruptGeneratorRef interruptGenerator)
Records a CallingContextSample event.
OTF2_ErrorCode OTF2_EvtWriter_RmaOpCompleteBlocking(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_RmaWinRef win, uint64_t matchingId)
Records a RmaOpCompleteBlocking event.
Error codes and error handling.
uint32_t OTF2_RmaWinRef
Type used to indicate a reference to a RmaWin definition.
Definition: OTF2_GeneralDefinitions.h:196
OTF2_ErrorCode OTF2_EvtWriter_MpiProbe(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint32_t sender, OTF2_CommRef communicator, uint32_t tag, uint64_t messageId)
Records a MpiProbe event.
OTF2_ErrorCode OTF2_EvtWriter_IoTryLock(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_IoHandleRef handle, OTF2_LockType lockType)
Records a IoTryLock event.
OTF2_ErrorCode OTF2_EvtWriter_ParameterInt(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_ParameterRef parameter, int64_t value)
Records a ParameterInt event.
uint8_t OTF2_IoOperationMode
Wrapper for enum OTF2_IoOperationMode_enum.
Definition: OTF2_Events.h:464
OTF2_ErrorCode OTF2_EvtWriter_ThreadBegin(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_CommRef threadContingent, uint64_t sequenceCount)
Records a ThreadBegin event.
OTF2_ErrorCode OTF2_EvtWriter_MeasurementOnOff(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, OTF2_MeasurementMode measurementMode)
Records a MeasurementOnOff event.
OTF2_ErrorCode OTF2_EvtWriter_MpiMrecv(OTF2_EvtWriter *writer, OTF2_AttributeList *attributeList, OTF2_TimeStamp time, uint64_t messageId, uint64_t msgLength)
Records a MpiMrecv event.