1.5.1 (revision 4026)
otf2/OTF2_SnapWriter.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of the Score-P software (http://www.score-p.org)
00003  *
00004  * Copyright (c) 2013,
00005  * Technische Universitaet Dresden, Germany
00006  *
00007  * This software may be modified and distributed under the terms of
00008  * a BSD-style license.  See the COPYING file in the package base
00009  * directory for details.
00010  */
00011 
00012 
00013 #ifndef OTF2_SNAP_WRITER_H
00014 #define OTF2_SNAP_WRITER_H
00015 
00016 
00027 #include <stdint.h>
00028 
00029 
00030 #include <otf2/OTF2_ErrorCodes.h>
00031 
00032 
00033 #include <otf2/OTF2_Events.h>
00034 #include <otf2/OTF2_AttributeList.h>
00035 
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif /* __cplusplus */
00040 
00041 
00047 typedef struct OTF2_SnapWriter_struct OTF2_SnapWriter;
00048 
00049 
00060 OTF2_ErrorCode
00061 OTF2_SnapWriter_GetLocationID( const OTF2_SnapWriter* writer,
00062                                OTF2_LocationRef*      locationID );
00063 
00064 
00065 
00088 OTF2_ErrorCode
00089 OTF2_SnapWriter_SnapshotStart( OTF2_SnapWriter*    writer,
00090                                OTF2_AttributeList* attributeList,
00091                                OTF2_TimeStamp      snapTime,
00092                                uint64_t            numberOfRecords );
00093 
00094 
00110 OTF2_ErrorCode
00111 OTF2_SnapWriter_SnapshotEnd( OTF2_SnapWriter*    writer,
00112                              OTF2_AttributeList* attributeList,
00113                              OTF2_TimeStamp      snapTime,
00114                              uint64_t            contReadPos );
00115 
00116 
00134 OTF2_ErrorCode
00135 OTF2_SnapWriter_MeasurementOnOff( OTF2_SnapWriter*     writer,
00136                                   OTF2_AttributeList*  attributeList,
00137                                   OTF2_TimeStamp       snapTime,
00138                                   OTF2_TimeStamp       origEventTime,
00139                                   OTF2_MeasurementMode measurementMode );
00140 
00141 
00160 OTF2_ErrorCode
00161 OTF2_SnapWriter_Enter( OTF2_SnapWriter*    writer,
00162                        OTF2_AttributeList* attributeList,
00163                        OTF2_TimeStamp      snapTime,
00164                        OTF2_TimeStamp      origEventTime,
00165                        OTF2_RegionRef      region );
00166 
00167 
00193 OTF2_ErrorCode
00194 OTF2_SnapWriter_MpiSend( OTF2_SnapWriter*    writer,
00195                          OTF2_AttributeList* attributeList,
00196                          OTF2_TimeStamp      snapTime,
00197                          OTF2_TimeStamp      origEventTime,
00198                          uint32_t            receiver,
00199                          OTF2_CommRef        communicator,
00200                          uint32_t            msgTag,
00201                          uint64_t            msgLength );
00202 
00203 
00231 OTF2_ErrorCode
00232 OTF2_SnapWriter_MpiIsend( OTF2_SnapWriter*    writer,
00233                           OTF2_AttributeList* attributeList,
00234                           OTF2_TimeStamp      snapTime,
00235                           OTF2_TimeStamp      origEventTime,
00236                           uint32_t            receiver,
00237                           OTF2_CommRef        communicator,
00238                           uint32_t            msgTag,
00239                           uint64_t            msgLength,
00240                           uint64_t            requestID );
00241 
00242 
00261 OTF2_ErrorCode
00262 OTF2_SnapWriter_MpiIsendComplete( OTF2_SnapWriter*    writer,
00263                                   OTF2_AttributeList* attributeList,
00264                                   OTF2_TimeStamp      snapTime,
00265                                   OTF2_TimeStamp      origEventTime,
00266                                   uint64_t            requestID );
00267 
00268 
00295 OTF2_ErrorCode
00296 OTF2_SnapWriter_MpiRecv( OTF2_SnapWriter*    writer,
00297                          OTF2_AttributeList* attributeList,
00298                          OTF2_TimeStamp      snapTime,
00299                          OTF2_TimeStamp      origEventTime,
00300                          uint32_t            sender,
00301                          OTF2_CommRef        communicator,
00302                          uint32_t            msgTag,
00303                          uint64_t            msgLength );
00304 
00305 
00327 OTF2_ErrorCode
00328 OTF2_SnapWriter_MpiIrecvRequest( OTF2_SnapWriter*    writer,
00329                                  OTF2_AttributeList* attributeList,
00330                                  OTF2_TimeStamp      snapTime,
00331                                  OTF2_TimeStamp      origEventTime,
00332                                  uint64_t            requestID );
00333 
00334 
00362 OTF2_ErrorCode
00363 OTF2_SnapWriter_MpiIrecv( OTF2_SnapWriter*    writer,
00364                           OTF2_AttributeList* attributeList,
00365                           OTF2_TimeStamp      snapTime,
00366                           OTF2_TimeStamp      origEventTime,
00367                           uint32_t            sender,
00368                           OTF2_CommRef        communicator,
00369                           uint32_t            msgTag,
00370                           uint64_t            msgLength,
00371                           uint64_t            requestID );
00372 
00373 
00389 OTF2_ErrorCode
00390 OTF2_SnapWriter_MpiCollectiveBegin( OTF2_SnapWriter*    writer,
00391                                     OTF2_AttributeList* attributeList,
00392                                     OTF2_TimeStamp      snapTime,
00393                                     OTF2_TimeStamp      origEventTime );
00394 
00395 
00419 OTF2_ErrorCode
00420 OTF2_SnapWriter_MpiCollectiveEnd( OTF2_SnapWriter*    writer,
00421                                   OTF2_AttributeList* attributeList,
00422                                   OTF2_TimeStamp      snapTime,
00423                                   OTF2_TimeStamp      origEventTime,
00424                                   OTF2_CollectiveOp   collectiveOp,
00425                                   OTF2_CommRef        communicator,
00426                                   uint32_t            root,
00427                                   uint64_t            sizeSent,
00428                                   uint64_t            sizeReceived );
00429 
00430 
00447 OTF2_ErrorCode
00448 OTF2_SnapWriter_OmpFork( OTF2_SnapWriter*    writer,
00449                          OTF2_AttributeList* attributeList,
00450                          OTF2_TimeStamp      snapTime,
00451                          OTF2_TimeStamp      origEventTime,
00452                          uint32_t            numberOfRequestedThreads );
00453 
00454 
00476 OTF2_ErrorCode
00477 OTF2_SnapWriter_OmpAcquireLock( OTF2_SnapWriter*    writer,
00478                                 OTF2_AttributeList* attributeList,
00479                                 OTF2_TimeStamp      snapTime,
00480                                 OTF2_TimeStamp      origEventTime,
00481                                 uint32_t            lockID,
00482                                 uint32_t            acquisitionOrder );
00483 
00484 
00502 OTF2_ErrorCode
00503 OTF2_SnapWriter_OmpTaskCreate( OTF2_SnapWriter*    writer,
00504                                OTF2_AttributeList* attributeList,
00505                                OTF2_TimeStamp      snapTime,
00506                                OTF2_TimeStamp      origEventTime,
00507                                uint64_t            taskID );
00508 
00509 
00527 OTF2_ErrorCode
00528 OTF2_SnapWriter_OmpTaskSwitch( OTF2_SnapWriter*    writer,
00529                                OTF2_AttributeList* attributeList,
00530                                OTF2_TimeStamp      snapTime,
00531                                OTF2_TimeStamp      origEventTime,
00532                                uint64_t            taskID );
00533 
00534 
00563 OTF2_ErrorCode
00564 OTF2_SnapWriter_Metric( OTF2_SnapWriter*        writer,
00565                         OTF2_AttributeList*     attributeList,
00566                         OTF2_TimeStamp          snapTime,
00567                         OTF2_TimeStamp          origEventTime,
00568                         OTF2_MetricRef          metric,
00569                         uint8_t                 numberOfMetrics,
00570                         const OTF2_Type*        typeIDs,
00571                         const OTF2_MetricValue* metricValues );
00572 
00573 
00597 OTF2_ErrorCode
00598 OTF2_SnapWriter_ParameterString( OTF2_SnapWriter*    writer,
00599                                  OTF2_AttributeList* attributeList,
00600                                  OTF2_TimeStamp      snapTime,
00601                                  OTF2_TimeStamp      origEventTime,
00602                                  OTF2_ParameterRef   parameter,
00603                                  OTF2_StringRef      string );
00604 
00605 
00626 OTF2_ErrorCode
00627 OTF2_SnapWriter_ParameterInt( OTF2_SnapWriter*    writer,
00628                               OTF2_AttributeList* attributeList,
00629                               OTF2_TimeStamp      snapTime,
00630                               OTF2_TimeStamp      origEventTime,
00631                               OTF2_ParameterRef   parameter,
00632                               int64_t             value );
00633 
00634 
00655 OTF2_ErrorCode
00656 OTF2_SnapWriter_ParameterUnsignedInt( OTF2_SnapWriter*    writer,
00657                                       OTF2_AttributeList* attributeList,
00658                                       OTF2_TimeStamp      snapTime,
00659                                       OTF2_TimeStamp      origEventTime,
00660                                       OTF2_ParameterRef   parameter,
00661                                       uint64_t            value );
00662 
00663 
00664 
00665 #ifdef __cplusplus
00666 }
00667 #endif /* __cplusplus */
00668 
00669 
00670 #endif /* !OTF2_SNAP_WRITER_H */