OpenMPI  0.1.1
OTF_Parse.h
Go to the documentation of this file.
1 /*
2  This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012.
3  Authors: Andreas Knuepfer, Holger Brunst, Ronny Brendel, Thomas Kriebitzsch
4 */
5 
6 /**
7  * @file OTF_Parse.h
8  *
9  * @brief All record parsing is located here.
10  *
11  * \ingroup internal
12  */
13 
14 #ifndef OTF_PARSE_H
15 #define OTF_PARSE_H
16 
17 
18 #include "OTF_RStream.h"
19 #include "OTF_HandlerArray.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif /* __cplusplus */
24 
25 /** Parse one event record from buffer and call the appropriate
26  function - internal use only. */
28  OTF_HandlerArray* handlers );
29 
30 /** Parse one definition record from buffer and call the appropriate
31  function - internal use only. */
33  OTF_HandlerArray* handlers, uint32_t streamid );
34 
35 /** Parse one statisitc summary record from buffer and call the
36  appropriate function - internal use only. */
38  OTF_HandlerArray* handlers );
39 
40 /** Parse one snapshot record from buffer and call the
41  appropriate function - internal use only. */
43  OTF_HandlerArray* handlers );
44 
45 /** Parse one marker record from buffer and call the appropriate
46  function - internal use only. */
48  OTF_HandlerArray* handlers, uint32_t streamid );
49 
50 
51 /* *** handle unknown records or parts of it - internal use only! ****** *** */
52 
53 /* These functions are external because OTF_Reader uses them */
54 int OTF_Reader_readUnknownRecord( OTF_RBuffer* buffer,
55  OTF_HandlerArray* handlers );
56 
57 int OTF_Reader_readUnknownDefRecord( OTF_RBuffer* buffer,
58  OTF_HandlerArray* handlers, uint32_t streamid );
59 
60 int OTF_Reader_readUnknownMarkerRecord( OTF_RBuffer* buffer,
61  OTF_HandlerArray* handlers, uint32_t streamid );
62 
63 #ifdef __cplusplus
64 }
65 #endif /* __cplusplus */
66 
67 #endif /* OTF_PARSE_H */
int OTF_Reader_parseEventRecord(OTF_RBuffer *buffer, OTF_HandlerArray *handlers)
Parse one event record from buffer and call the appropriate function - internal use only...
Definition: OTF_Parse.c:371
Definition: OTF_RBuffer.h:40
Object structure which holds OTF record handlers.
Definition: OTF_HandlerArray.h:52
int OTF_Reader_parseMarkerRecord(OTF_RBuffer *buffer, OTF_HandlerArray *handlers, uint32_t streamid)
Parse one marker record from buffer and call the appropriate function - internal use only...
Definition: OTF_Parse.c:1039
int OTF_Reader_parseDefRecord(OTF_RBuffer *buffer, OTF_HandlerArray *handlers, uint32_t streamid)
Parse one definition record from buffer and call the appropriate function - internal use only...
Definition: OTF_Parse.c:598
int OTF_Reader_parseSnapshotsRecord(OTF_RBuffer *buffer, OTF_HandlerArray *handlers)
Parse one snapshot record from buffer and call the appropriate function - internal use only...
Definition: OTF_Parse.c:935
int OTF_Reader_parseStatisticsRecord(OTF_RBuffer *buffer, OTF_HandlerArray *handlers)
Parse one statisitc summary record from buffer and call the appropriate function - internal use only...
Definition: OTF_Parse.c:822
Provides read access to trace streams, which consist of multiple buffers.
Provides read access to OTF traces which consist of multiple streams.