Skip to content

Changes

Summary

  1. Integrate FTrace binary parsers into trace compass incubator (details)
Commit fa8aa7af8fc809d419b426a9e18dd1d0ff27e6d3 by Marco Miller
Integrate FTrace binary parsers into trace compass incubator

Currently, trace compass uses trace-cmd to convert binary FTrace traces
into text traces, and then processes it. It requires trace-cmd to be
installed on the running machine. Parsing the binary files directly will
allow trace reading to be platform independent.

This commit integrates FTrace parsers into trace compass incubator by
providing trace event reading logic and trace reading context. It also
adds initial tests for integration. The supported FTrace version is
v2.6. Other versions default to trace-cmd reports (legacy way of
working). Test traces for binary FTrace are stored in
tracecompass/tracecompass-test-traces, which is a separate repository.

Change-Id: Id6c78763dd4070a933f2c8da46592e5562b20063
Signed-off-by: Hoang Thuan Pham <hoang.pham@calian.ca>
Reviewed-on: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/189034
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Trace Compass Bot <tracecompass-bot@eclipse.org>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Marco Miller <marco.miller@ericsson.com>
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core.tests/src/org/eclipse/tracecompass/incubator/ftrace/core/tests/binary/iterator/BinaryFTraceIteratorTest.java
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core.tests/src/org/eclipse/tracecompass/incubator/ftrace/core/tests/binary/header/FTraceBinaryHeaderTest.java (diff)
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/trace/BinaryFTrace.java (diff)
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/context/BinaryFTraceContext.java
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/trace/GenericFtrace.java (diff)
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/header/BinaryFTraceVersion.java
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/iterator/BinaryFTraceIterator.java
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core.tests/src/org/eclipse/tracecompass/incubator/ftrace/core/tests/binary/iterator/BinaryFTraceIteratorTestData.java
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/META-INF/MANIFEST.MF (diff)
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/strategies/IBinaryFTraceStrategy.java
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/header/BinaryFTraceVersionHeader.java (diff)
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/header/BinaryFTraceHeaderInfo.java (diff)
The file was modified tracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/parser/BinaryFTraceFileParser.java (diff)
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/context/BinaryFTraceLocation.java
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/strategies/BinaryFTraceV6Strategy.java
The file was addedtracetypes/org.eclipse.tracecompass.incubator.ftrace.core/src/org/eclipse/tracecompass/incubator/internal/ftrace/core/binary/context/BinaryFTraceLocationInfo.java