/* Copyright (c) 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.jtsan;

/**
 *
 * All supported events.
 *
 * @author Sergey Vorobyev
 */
public enum EventType {

  // Tsan offline events.
  EXPECT_RACE_BEGIN,
  EXPECT_RACE_END,
  READ,
  READER_LOCK,
  RTN_CALL,
  RTN_EXIT,
  SBLOCK_ENTER,
  SIGNAL,
  STACK_TRACE,
  THR_END,
  THR_FIRST_INSN,
  THR_JOIN_AFTER,
  THR_START,
  UNLOCK,
  WAIT,
  WRITE,
  WRITER_LOCK,

  // Comments, PC events for binary format.
  COMMENT,
  CODE_POSITION,
  ;

  private EventType() {
  }

}

@@ -747,16 +747,30 @@
 E_BEGIN,
+ // tid pc 0 0
 %0A  EXPEC
@@ -784,107 +784,236 @@
 END,
-%0A  READ,%0A  READER_LOCK,%0A  RTN_CALL,%0A  RTN_EXIT,%0A  SBLOCK_ENTER,%0A  SIGNAL,%0A  STACK_TRACE,%0A  THR_END,
+   // tid pc 0 0%0A  READ, //tid pc id 1%0A  READER_LOCK, // tid pc id 0%0A  RTN_CALL, // tid 0 0 0%0A  RTN_EXIT, // tid pc 0 0%0A  SBLOCK_ENTER, // tid pc 0 0%0A  SIGNAL, // tid pc id 0%0A  STACK_TRACE, // tid pc 0 0%0A  THR_END, // tid pc 0 0
 %0A  T
@@ -1026,16 +1026,27 @@
 ST_INSN,
+ // 0 0 0 0
 %0A  THR_J
@@ -1059,63 +1059,150 @@
 TER,
-%0A  THR_START,%0A  UNLOCK,%0A  WAIT,%0A  WRITE,%0A  WRITER_LOCK,
+ // tid pc tid 0%0A  THR_START, // 0 0 0 0%0A  UNLOCK, // tid pc id 0%0A  WAIT, // tid pc id 0%0A  WRITE, // tid pc id 1%0A  WRITER_LOCK, // tid pc id 0
 %0A%0A  
@@ -1253,16 +1253,31 @@
 COMMENT,
+ // strsize str
 %0A  CODE_
@@ -1285,16 +1285,34 @@
 OSITION,
+ // pc strsize str
 %0A  ;%0A%0A  

Add str-events-format in comments