Skip to content

Commit f4dc97d

Browse files
committed
lttng: detect ctf2 kernel traces as kernel traces
Signed-off-by: Arnaud Fiorini <fiorini.arnaud@gmail.com>
1 parent 98c306b commit f4dc97d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lttng/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/lttng2/kernel/core/trace

lttng/org.eclipse.tracecompass.lttng2.kernel.core/src/org/eclipse/tracecompass/lttng2/kernel/core/trace/LttngKernelTrace.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public IStatus validate(final IProject project, final String path) {
181181
Map<String, String> environment = ((CtfTraceValidationStatus) status).getEnvironment();
182182
/* Make sure the domain is "kernel" in the trace's env vars */
183183
String domain = environment.get("domain"); //$NON-NLS-1$
184-
if (domain == null || !domain.equals("\"kernel\"")) { //$NON-NLS-1$
184+
if (domain == null || !(domain.equals("kernel") || domain.equals("\"kernel\""))) { //$NON-NLS-1$ //$NON-NLS-2$
185185
return new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.LttngKernelTrace_DomainError);
186186
}
187187
return new TraceValidationStatus(CONFIDENCE, Activator.PLUGIN_ID);

0 commit comments

Comments
 (0)