int handleDefsampclass( void *fcb, int sampleclasstoken, const char *sampleclassname ) { OTF_Writer_writeDefCounterGroup( ((fcbT*)fcb)->writer, 0, sampleclasstoken + 1, sampleclassname ); return 0; }
int handleDefCounterGroup( void* fcbx, uint32_t streamid, uint32_t deftoken, const char* name ) { 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_writeDefCounterGroup( ((fcbT*) fcbx)->writer, streamid, deftoken, name ) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; } }
int handleDefCounterGroup (void *userData, uint32_t stream, uint32_t counterGroup, const char *name) { return ( 0 == OTF_Writer_writeDefCounterGroup ( (OTF_Writer*) userData, stream, counterGroup, name) ) ? OTF_RETURN_ABORT : OTF_RETURN_OK; }