int handleDefglobalop( void *fcb, int globaloptoken, const char* globalopname ) { OTF_Writer_writeDefCollectiveOperation( ((fcbT*)fcb)->writer, 0 /* uint32_t stream */, globaloptoken + 1/* uint32_t collOp */, globalopname /* const char* name */, OTF_COLLECTIVE_TYPE_UNKNOWN /* uint32_t type */ ); return 0; }
int handleDefCollectiveOperation( void* fcbx, uint32_t streamid, uint32_t collOp, const char* name, uint32_t type ) { if( 0 != streamid ) { fprintf( stderr, "ERROR: cannot merge traces with local definitions. aborting\n" ); assert( 0 ); return OTF_RETURN_ABORT; } else { return ( 0 == OTF_Writer_writeDefCollectiveOperation( ((fcbT*) fcbx)->writer, streamid, collOp, name, type ) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; } }
int handleDefCollectiveOperation (void *userData, uint32_t stream, uint32_t collOp, const char *name, uint32_t type) { return ( 0 == OTF_Writer_writeDefCollectiveOperation ( (OTF_Writer*) userData, stream, collOp, name, type) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; }