Fix bug when tracefile is not aligned. Now supports exotic architectures.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core.tests / src / org / eclipse / linuxtools / ctf / core / tests / headless / ReadTrace.java
index d54a02ba4981f5ce1f55335959ea4af3ba3516f8..9f09b810fbe79f6bf7d50beae826877d9b842f18 100644 (file)
@@ -29,10 +29,10 @@ public class ReadTrace {
      */
     @SuppressWarnings("nls")
     public static void main(String[] args) {
-        final String TRACE_PATH = "Tests/traces/trace20m1";
+        final String TRACE_PATH = "/home/ematkho/lttng-traces/lt-hello-4175-20120405-092230";
 
         // Change this to enable text output
-        final boolean USE_TEXT = false;
+        final boolean USE_TEXT = true;
 
         final int LOOP_COUNT = 1;
 
@@ -70,7 +70,7 @@ public class ReadTrace {
                                 + trace.getOffset());
                         System.out.println(traceReader.getIndex() + ", "
                                 + output + ", " + ed.getDeclaration().getName()
-                                + ", " + ed.getCPU());
+                                + ", " + ed.getCPU() + ed.getFields().toString()) ;
                     }
 
                     traceReader.advance();
@@ -93,20 +93,8 @@ public class ReadTrace {
             System.out.print(val);
             System.out.print(", ");
         }
-        try {
-            testSeekIndex(trace);
-        } catch (CTFReaderException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        }
-
-        try {
-            testSeekIndex(trace);
-        } catch (CTFReaderException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        }
-
+        testSeekIndex(trace);
+        testSeekIndex(trace);
     }
 
     /**
@@ -119,7 +107,7 @@ public class ReadTrace {
         return Long.MIN_VALUE;
     }
 
-    public static void testSeekIndex(CTFTrace trace) throws CTFReaderException {
+    public static void testSeekIndex(CTFTrace trace) {
         CTFTraceReader fixture = new CTFTraceReader(trace);
         long rank = 300000L;
         long timeRank = 4281275394331L;
This page took 0.025193 seconds and 5 git commands to generate.