static void conv_write_cpunames() { int i, t; if ( ! isthreaded ) { for (i=0; i<totallocs; i++) { wbytes += VTF3_WriteDefcpuname(fcb, i, loctab[i].proc->name); } } else { for (i=0; i<totallocs; i++) { for (t=0; t<totallocs; t++) { if ( i == locmap[t] ) { wbytes += VTF3_WriteDefcpuname(fcb, i, loctab[t].thrd->name); break; } } } } }
void writenames_recursive ( void* firsthandlerarg, nodeT *p_node ) { #ifdef HAVE_VTF3 int i; if( p_node->name ) VTF3_WriteDefcpuname( firsthandlerarg, p_node->processi, p_node->name ); for( i = 0; i < p_node->childrensize; i++ ) writenames_recursive ( firsthandlerarg, p_node->p_children[i] ); #endif /* HAVE_VTF3 */ }