-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: consider index of all files for data stream groups with multiple…
… files The indexes associated to data stream file groups (dsfg) with multiple files are incorrect. The first time we process a file for a given dsfg, the group is created using the index of that file. Up to that point, it's fine. When processing the other files for that dsfg, the index is never used. The result is that the index for that dsfg only covers the time range of the first file that was parsed, instead of the whole data stream. Fix it by merging the index of the added file in add_ds_file_to_ds_file_group, in the case where we add the file to an existing group. A test is added for this, in the form of a trace infos query. The implementation of this query uses the index data directly. Change-Id: If1afd68be347210d1e258f8115b50547bc773760 Signed-off-by: Simon Marchi <simon.marchi@efficios.com> Reviewed-on: https://review.lttng.org/c/babeltrace/+/2212 Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
- Loading branch information
Showing
29 changed files
with
125,499 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/README
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Trace created with: | ||
|
||
lttng create | ||
lttng enable-channel --kernel --tracefile-size=64k --subbuf-size=64k mychan | ||
lttng enable-event -k --channel=mychan 'sched_*' | ||
lttng start | ||
sleep 2 | ||
lttng stop | ||
|
||
|
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_0.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_1.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_2.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_0.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_1.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_2.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_0.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_1.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_2.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_0.idx
Binary file not shown.
Binary file added
BIN
+88 Bytes
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_1.idx
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+64 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_0
Binary file not shown.
Binary file added
BIN
+64 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_1
Binary file not shown.
Binary file added
BIN
+24 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_2
Binary file not shown.
Binary file added
BIN
+64 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_0
Binary file not shown.
Binary file added
BIN
+64 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_1
Binary file not shown.
Binary file added
BIN
+16 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_2
Binary file not shown.
Binary file added
BIN
+64 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_0
Binary file not shown.
Binary file added
BIN
+64 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_1
Binary file not shown.
Binary file added
BIN
+12 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_2
Binary file not shown.
Binary file added
BIN
+64 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_0
Binary file not shown.
Binary file added
BIN
+44 KB
tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_1
Binary file not shown.
Oops, something went wrong.