// Version constants
// ------------------------------------------------------------------------
/**
- * Constant for the LTTng toolchain version
+ * Pattern to match the LTTng toolchain version 2.x.y.
*/
- public final static String LTTNG_MAJOR_VERSION_2_0 = "2.0"; //$NON-NLS-1$
+ public final static Pattern VERSION_2_PATTERN = Pattern.compile("(2\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
// ------------------------------------------------------------------------
// Command constants
* Pattern to match introduction line of context list.
*/
public final static Pattern ADD_CONTEXT_HELP_CONTEXTS_END_LINE = Pattern.compile("\\s*Example.*"); //$NON-NLS-1$
-
+ /**
+ * Pattern to match error line if no kernel tracer is available or installed.
+ */
+ public final static Pattern LIST_KERNEL_NO_KERNEL_PROVIDER_PATTERN = Pattern.compile("\\s*Error:\\s+Unable\\s+to\\s+list\\s+kernel\\s+events.*"); //$NON-NLS-1$;
}