ctf: Add lost events to synthetic LTTng kernel trace generator
authorPatrick Tasse <patrick.tasse@gmail.com>
Mon, 30 Nov 2015 21:51:44 +0000 (16:51 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Tue, 8 Dec 2015 17:32:39 +0000 (12:32 -0500)
commit9709972d88d1a5c0ac8be628764922bf83b6450d
tree91b704af63d97efe972423550922c71cc07ec0fe
parentf450c256d549c6c9bd7fe12306b6f5bed7d3643a
ctf: Add lost events to synthetic LTTng kernel trace generator

The trace generator now creates packets with lost events pseudo-randomly
approximately once out of 10 times the number of channels.

The trace generator also now sets the content size of the last packet of
each channel so that the total number of events (including lost events)
is exactly the number of requested trace events.

Change-Id: Ie804e5650d5a4186225b5dfcc75526b0fe9c2704
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61599
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
ctf/org.eclipse.tracecompass.ctf.core.tests/shared/org/eclipse/tracecompass/ctf/core/tests/shared/LttngKernelTraceGenerator.java
This page took 0.025812 seconds and 5 git commands to generate.