use of org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpLttngEventMatching in project tracecompass by tracecompass.
the class EventMatchingBenchmark method setUp.
/**
* Initialize some data
*/
@BeforeClass
public static void setUp() {
TmfEventMatching.registerMatchObject(new TcpEventMatching());
TmfEventMatching.registerMatchObject(new TcpLttngEventMatching());
}
use of org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpLttngEventMatching in project tracecompass by tracecompass.
the class TraceSynchronizationBenchmark method setUp.
/**
* Initialize some data
*/
@BeforeClass
public static void setUp() {
TmfEventMatching.registerMatchObject(new TcpEventMatching());
TmfEventMatching.registerMatchObject(new TcpLttngEventMatching());
}
use of org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpLttngEventMatching in project tracecompass by tracecompass.
the class ExperimentSyncTest method setUp.
/**
* Initialize some data
*/
@BeforeClass
public static void setUp() {
TmfEventMatching.registerMatchObject(new TcpEventMatching());
TmfEventMatching.registerMatchObject(new TcpLttngEventMatching());
}
use of org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpLttngEventMatching in project tracecompass by tracecompass.
the class MatchAndSyncTest method testMatching.
/**
* Testing the packet matching
*/
@Test
public void testMatching() {
CtfTmfTrace trace1 = CtfTmfTestTraceUtils.getTrace(CtfTestTrace.SYNC_SRC);
CtfTmfTrace trace2 = CtfTmfTestTraceUtils.getTrace(CtfTestTrace.SYNC_DEST);
List<@NonNull ITmfTrace> tracearr = new LinkedList<>();
tracearr.add(trace1);
tracearr.add(trace2);
TmfEventMatching.registerMatchObject(new TcpEventMatching());
TmfEventMatching.registerMatchObject(new TcpLttngEventMatching());
TmfEventMatching twoTraceMatch = new TmfEventMatching(tracearr);
assertTrue(twoTraceMatch.matchEvents());
/* Set method and fields accessible to make sure the counts are ok */
try {
/* Verify number of matches */
Method method = TmfEventMatching.class.getDeclaredMethod("getProcessingUnit");
method.setAccessible(true);
IMatchProcessingUnit procUnit = (IMatchProcessingUnit) method.invoke(twoTraceMatch);
assertEquals(46, procUnit.countMatches());
} catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
fail(e.getMessage());
} finally {
trace1.dispose();
trace2.dispose();
}
}
use of org.eclipse.tracecompass.internal.lttng2.kernel.core.event.matching.TcpLttngEventMatching in project tracecompass by tracecompass.
the class Activator method start.
// ------------------------------------------------------------------------
// Operators
// ------------------------------------------------------------------------
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
TmfEventMatching.registerMatchObject(new TcpEventMatching());
TmfEventMatching.registerMatchObject(new TcpLttngEventMatching());
try {
LttngAnalysesLoader.load();
} catch (LamiAnalysisFactoryException | IOException e) {
// Not the end of the world if the analyses are not available
// $NON-NLS-1$
logWarning("Cannot find LTTng analyses configuration files: " + e.getMessage());
}
}
Aggregations