Beispiel #1
0
int handleDefinitionComment( void* fcbx, uint32_t streamid,
	const char* comment ) {
	

	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_writeDefinitionComment( ((fcbT*) fcbx)->writer, streamid,
			comment ) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK;
			
	}
}
Beispiel #2
0
int handleComment( void *fcb, double time, const char *comment ) {


	/** always write a VTF3 comment to an OTF DefinitionComment. a time stamp 
	in the VTF3 comment record is ignored it */
	OTF_Writer_writeDefinitionComment( ((fcbT*)fcb)->writer, 0, comment );


	/* old version:
	if ( time == 0 )
		OTF_Writer_writeDefinitionComment( fcb->writer, 0, comment );
	else

		/ *  which process to write the EventComment to * /

		OTF_Writer_writeEventComment( fcb->writer, time, ??? , comment );
	*/

	return 0;
}
Beispiel #3
0
int handleDefinitionComment (void *userData, uint32_t stream, const char *comment) {

    return ( 0 == OTF_Writer_writeDefinitionComment ( (OTF_Writer*) userData, stream, comment) )
           ? OTF_RETURN_ABORT : OTF_RETURN_OK;
}