On Mon, 22 Jan 2024 17:43:31 +0100 Pierre Gondois <pierre.gondois@xxxxxxx> wrote: > With a trace.dat file having events timestamped between > [284443.0, 284448.0] seconds, the following command: > trace-cmd split -i trace.dat -o trace2.dat -r -m 100 284444 284445 > should produce ten trace2.dat.XXX files between [284444.0, 284445.0], > each one lasting 100ms. > > Currently only one trace2.dat.001 file is produced, with events > within the [284444.0, 284445.1] time window. > > Don't stop splitting the input file after the first iteration. > Add a end_reached to detect when the end timestamp is reached. > > Signed-off-by: Pierre Gondois <pierre.gondois@xxxxxxx> > --- > FYI, I applied the first two patches of your series. You don't need to include them in future versions. -- Steve