13 #ifndef _VT_UNIFY_HOOKS_TDB_H_
14 #define _VT_UNIFY_HOOKS_TDB_H_
16 #include "vt_unify_hooks_base.h"
18 #include "vt_inttypes.h"
37 static bool isEnabled();
49 CollOpC( uint64_t _num, uint64_t _bytes_sent, uint64_t _bytes_recv );
51 CollOpC operator+=(
const CollOpC & cs );
71 IoC operator+=(
const IoC & is );
76 uint64_t bytes_written;
95 uint64_t calcFilesize();
97 int setFilepath( std::string file_prefix );
101 void setOtfVersion();
103 std::string otf_version;
105 std::string filename;
106 std::string filepath;
107 std::string hostname;
112 uint64_t num_streams;
114 uint32_t num_processes;
115 uint32_t num_active_processes;
116 uint32_t num_threads;
123 std::map<std::string, std::string> vt_env;
124 std::vector<std::string> counter;
128 std::map<uint32_t, std::string> fgroup;
133 std::map<uint32_t, uint32_t> flush_fgroup_ids;
136 uint32_t vt_flush_id;
139 std::map<uint32_t, uint32_t> collop_def;
142 std::map<uint32_t, CollOpC> collop;
146 std::string intToHex(
int i );
147 std::string safeCwd();
160 ThreadDataC operator+=(
const ThreadDataC & td );
162 bool toBuffer( uint64_t * buf );
164 ThreadDataC fromBuffer(
const uint64_t * buf,
165 const uint64_t * num_bytes );
183 uint64_t num_vt_flushes;
186 std::map<uint32_t, CollOpC> collop;
189 std::map<uint32_t, IoC> io;
199 void finalizeHook(
const bool & error );
204 void phaseHook_GetUnifyControls_post();
205 void phaseHook_UnifyDefinitions_post();
206 void phaseHook_UnifyEvents_pre();
211 void writeRecHook_DefComment( HooksC::VaArgsT & args );
212 void writeRecHook_DefCreator( HooksC::VaArgsT & args );
213 void writeRecHook_DefProcess( HooksC::VaArgsT & args );
214 void writeRecHook_DefFunctionGroup( HooksC::VaArgsT & args );
215 void writeRecHook_DefFunction( HooksC::VaArgsT & args );
216 void writeRecHook_DefCollOp( HooksC::VaArgsT & args );
217 void writeRecHook_DefCounter( HooksC::VaArgsT & args );
218 void writeRecHook_FunctionSummary( HooksC::VaArgsT & args );
219 void writeRecHook_MessageSummary( HooksC::VaArgsT & args );
220 void writeRecHook_CollOpSummary( HooksC::VaArgsT & args );
221 void writeRecHook_FileOpSummary( HooksC::VaArgsT & args );
222 void writeRecHook_MarkerSpot( HooksC::VaArgsT & args );
223 void writeRecHook_Enter( HooksC::VaArgsT & args );
224 void writeRecHook_Leave( HooksC::VaArgsT & args );
225 void writeRecHook_BeginFileOp( HooksC::VaArgsT & args );
226 void writeRecHook_EndFileOp( HooksC::VaArgsT & args );
227 void writeRecHook_SendMsg( HooksC::VaArgsT & args );
228 void writeRecHook_RecvMsg( HooksC::VaArgsT & args );
229 void writeRecHook_BeginCollOp( HooksC::VaArgsT & args );
230 void writeRecHook_EndCollOp( HooksC::VaArgsT & args );
231 void writeRecHook_RMAPut( HooksC::VaArgsT & args );
232 void writeRecHook_RMAPutRemoteEnd( HooksC::VaArgsT & args );
233 void writeRecHook_RMAGet( HooksC::VaArgsT & args );
234 void writeRecHook_RMAEnd( HooksC::VaArgsT & args );
235 void writeRecHook_Counter( HooksC::VaArgsT & args );
236 void writeRecHook_EventComment( HooksC::VaArgsT & args );
239 void genericHook(
const uint32_t &
id, HooksC::VaArgsT & args );
243 void handleFileOperation( uint32_t *operation, uint64_t *bytes);
245 MasterDataC RootData;
246 std::vector<ThreadDataC> ThreadVector;
248 uint64_t MinStartTimeEpoch;
249 uint64_t MaxStopTimeEpoch;
253 #endif // _VT_UNIFY_HOOKS_TDB_H_
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_unify_hooks_base.h:23
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_unify_hooks_tdb.h:26