13 #ifndef _VT_UNIFY_HOOKS_MARGINS_H_
14 #define _VT_UNIFY_HOOKS_MARGINS_H_
17 #include "vt_unify_hooks_base.h"
35 static bool isEnabled() {
return true; }
45 : wstream( 0 ), streamid( 0 ), first_event(
true ), last_time( 0 ) {}
60 void finalizeHook(
const bool & error );
65 void phaseHook_UnifyEvents_pre();
66 void phaseHook_UnifyEvents_post();
74 void writeRecHook_Event(
OTF_WStream ** wstream, uint64_t * time,
75 uint32_t * streamid,
bool * dowrite );
77 void writeRecHook_EventComment( HooksC::VaArgsT & args )
79 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
80 (uint32_t*)args[2], (
bool*)args[5] );
83 void writeRecHook_Enter( HooksC::VaArgsT & args )
85 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
86 (uint32_t*)args[3], (
bool*)args[6] );
89 void writeRecHook_Leave( HooksC::VaArgsT & args )
91 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
92 (uint32_t*)args[3], (
bool*)args[6] );
95 void writeRecHook_Counter( HooksC::VaArgsT & args )
97 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
98 (uint32_t*)args[2], (
bool*)args[7] );
101 void writeRecHook_BeginFileOp( HooksC::VaArgsT & args )
103 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
104 (uint32_t*)args[2], (
bool*)args[6] );
107 void writeRecHook_EndFileOp( HooksC::VaArgsT & args )
109 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
110 (uint32_t*)args[2], (
bool*)args[10] );
113 void writeRecHook_SendMsg( HooksC::VaArgsT & args )
115 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
116 (uint32_t*)args[2], (
bool*)args[9] );
119 void writeRecHook_RecvMsg( HooksC::VaArgsT & args )
121 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
122 (uint32_t*)args[2], (
bool*)args[9] );
125 void writeRecHook_BeginCollOp( HooksC::VaArgsT & args )
127 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
128 (uint32_t*)args[2], (
bool*)args[11] );
131 void writeRecHook_EndCollOp( HooksC::VaArgsT & args )
133 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
134 (uint32_t*)args[2], (
bool*)args[5] );
137 void writeRecHook_RMAPut( HooksC::VaArgsT & args )
139 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
140 (uint32_t*)args[2], (
bool*)args[10] );
143 void writeRecHook_RMAPutRemoteEnd( HooksC::VaArgsT & args )
145 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
146 (uint32_t*)args[2], (
bool*)args[10] );
148 void writeRecHook_RMAGet( HooksC::VaArgsT & args )
150 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
151 (uint32_t*)args[2], (
bool*)args[10] );
154 void writeRecHook_RMAEnd( HooksC::VaArgsT & args )
156 writeRecHook_Event( (
OTF_WStream**)args[0], (uint64_t*)args[1],
157 (uint32_t*)args[2], (
bool*)args[8] );
161 void genericHook(
const uint32_t &
id, HooksC::VaArgsT & args );
169 ThreadContextS * m_threadContexts;
173 #endif // _VT_UNIFY_HOOKS_MARGINS_H_
Main include file for applications using OTF.
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_unify_hooks_base.h:23
Definition: OTF_WStream.h:95
HooksProcessMarginsC()
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_unify_hooks_margins.cc:21
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_unify_hooks_margins.h:24