Skip to content

Commit fd95d55

Browse files
committed
Fix issue with LTTng ref trace with channel filenames like chan1_0 does load.
1 parent 7d12ba7 commit fd95d55

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

LTTngCds/CtfExtensions/FolderInput/LTTngFolderInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public LTTngFolderInput(string folderPath)
3535
Debug.Assert(traceDirectoryPath != null, nameof(traceDirectoryPath) + " != null");
3636

3737
var associatedEntries = Directory.GetFiles(traceDirectoryPath).Where(entry =>
38-
Path.GetFileName(entry).StartsWith("channel"));
38+
Path.GetFileName(entry).StartsWith("chan"));
3939

4040
traceInput.EventStreams = associatedEntries.Select(
4141
fileName => new LTTngFileInputStream(fileName)).Cast<ICtfInputStream>().ToList();

LTTngCds/CtfExtensions/ZipArchiveInput/LTTngZipArchiveInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public LTTngZipArchiveInput(ZipArchive archive)
3939

4040
var associatedArchiveEntries = archive.Entries.Where(entry =>
4141
Path.GetDirectoryName(entry.FullName) == traceDirectoryPath &&
42-
Path.GetFileName(entry.FullName).StartsWith("channel"));
42+
Path.GetFileName(entry.FullName).StartsWith("chan"));
4343

4444
traceInput.EventStreams = associatedArchiveEntries.Select(
4545
archiveEntry => new LTTngZipArchiveInputStream(archiveEntry)).Cast<ICtfInputStream>().ToList();

PerfCds/CtfExtensions/FolderInput/PerfCTFFolderInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public PerfCTFFolderInput(string folderPath)
3535
Debug.Assert(traceDirectoryPath != null, nameof(traceDirectoryPath) + " != null");
3636

3737
var associatedEntries = Directory.GetFiles(traceDirectoryPath).Where(entry =>
38-
Path.GetFileName(entry).StartsWith("channel"));
38+
Path.GetFileName(entry).StartsWith("chan"));
3939

4040
traceInput.EventStreams = associatedEntries.Select(
4141
fileName => new PerfCTFFileInputStream(fileName)).Cast<ICtfInputStream>().ToList();

0 commit comments

Comments
 (0)