int encoding = (buffer_code << 16) + pid; if(VM_HardwarePerformanceMonitors.verbose>=5 || VM_HardwarePerformanceMonitors.hpm_trace_verbose == pid) {
int encoding = (buffer_code << 16) + vpid; if(VM_HardwarePerformanceMonitors.verbose>=5 || VM_HardwarePerformanceMonitors.hpm_trace_verbose == vpid) {
  private void tracing(int tid, int global_tid, long startOfWallTime, 		       long endOfWallTime, HPM_counters counters)   {    //-#if RVM_WITH_HPM    // which buffer to use    if (! processCallbacksFromConsumer()) return;    if (! pickBuffer(VM_HardwarePerformanceMonitors.getRecordSize())) return;    // buffer != null only if active==true    int encoding = (buffer_code << 16) + pid;    if(VM_HardwarePerformanceMonitors.verbose>=5 || VM_HardwarePerformanceMonitors.hpm_trace_verbose == pid) {      VM.sysWrite(index,": ");      VM.sysWrite(TRACE_FORMAT," BC ");      VM.sysWrite(buffer_code," PID ", pid);        //      VM.sysWrite(" ("); VM.sysWriteHex(encoding); VM.sysWrite(")");      VM.sysWrite(" GTID ", global_tid);      VM.sysWrite(" TID ", tid);      VM.sysWrite(" SWT ");    VM.sysWriteLong(startOfWallTime);VM.sysWrite("\n  ");      VM.sysWrite(" EWT " ); VM.sysWriteLong(endOfWallTime);    }    if (buffer != null) { // write record header      VM_Magic.setIntAtOffset( buffer, index, TRACE_FORMAT);	// format      index += VM_HardwarePerformanceMonitors.SIZE_OF_INT;      VM_Magic.setIntAtOffset( buffer, index, encoding);	// buffer_code & pid      index += VM_HardwarePerformanceMonitors.SIZE_OF_INT;      VM_Magic.setIntAtOffset( buffer, index, global_tid);	// globally unique tid        index += VM_HardwarePerformanceMonitors.SIZE_OF_INT;      VM_Magic.setIntAtOffset( buffer, index, tid);		// local tid        index += VM_HardwarePerformanceMonitors.SIZE_OF_INT;      VM_Magic.setLongAtOffset(buffer, index, startOfWallTime);	// start of global time      index += VM_HardwarePerformanceMonitors.SIZE_OF_LONG;      VM_Magic.setLongAtOffset(buffer, index,   endOfWallTime);	// end   of global time      index += VM_HardwarePerformanceMonitors.SIZE_OF_LONG;    }    for(int i=1; i<=n_counters; i++) {      long value = counters.counters[i];      if(VM_HardwarePerformanceMonitors.verbose>=5 || VM_HardwarePerformanceMonitors.hpm_trace_verbose == pid) {	VM.sysWrite(" ",i,": ");VM.sysWriteLong(value);       }      if (buffer != null) { // write HPM counter values	VM_Magic.setLongAtOffset(buffer, index, value);		  	index += VM_HardwarePerformanceMonitors.SIZE_OF_LONG;      }    }    if (VM_HardwarePerformanceMonitors.verbose>=5 || VM_HardwarePerformanceMonitors.hpm_trace_verbose == pid) {      VM.sysWriteln();    }    updateBufferIndex();    //-#endif  }