Ejemplo n.º 1
0
int handleDefscl( void *fcb, int scltoken, int sclarraydim,
		const int *sclfiletokenarray, const int *scllinepositionarray ) {


	int i;


	for( i = 0; i < sclarraydim; ++i ) {


		OTF_Writer_writeDefScl( ((fcbT*)fcb)->writer, 0, scltoken,
		sclfiletokenarray[i] + 1, scllinepositionarray[i] );
	}

	return 0;
}
Ejemplo n.º 2
0
int handleDefScl(  void* fcbx, uint32_t streamid,
		uint32_t deftoken, uint32_t sclfile, uint32_t sclline ) {


	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_writeDefScl( ((fcbT*) fcbx)->writer, streamid, deftoken,
			sclfile, sclline ) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK;

	}
}
Ejemplo n.º 3
0
int handleDefScl (void *userData, uint32_t stream, uint32_t source, uint32_t sourceFile, uint32_t line) {

    return ( 0 == OTF_Writer_writeDefScl ( (OTF_Writer*) userData, stream, source, sourceFile, line) )
           ? OTF_RETURN_ABORT : OTF_RETURN_OK;
}