tmf.ctf: fix findbugs in ctfIteratorManager
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / service / LTTngControlServiceConstants.java
CommitLineData
276c17e7 1/**********************************************************************
ed902a2b 2 * Copyright (c) 2012, 2015 Ericsson
cfdb727a 3 *
276c17e7
BH
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
cfdb727a
AM
8 *
9 * Contributors:
276c17e7 10 * Bernd Hufmann - Initial API and implementation
ba3a9bd2 11 * Bernd Hufmann - Updated for support of LTTng Tools 2.1
e799e5f3 12 * Simon Delisle - Updated for support of LTTng Tools 2.2
81d5dc3a 13 * Marc-Andre Laperle - Support for creating a live session
276c17e7 14 **********************************************************************/
9bc60be7 15package org.eclipse.tracecompass.internal.lttng2.control.ui.views.service;
276c17e7
BH
16
17import java.util.regex.Pattern;
18
19/**
276c17e7
BH
20 * <p>
21 * Constants for LTTng Control Service.
22 * </p>
cfdb727a 23 *
dbd4432d 24 * @author Bernd Hufmann
276c17e7 25 */
046b6849 26public interface LTTngControlServiceConstants {
276c17e7
BH
27
28 // ------------------------------------------------------------------------
29 // Version constants
30 // ------------------------------------------------------------------------
cfdb727a 31 /**
cfe737e4 32 * Pattern to match the LTTng toolchain version 2.x.y.
cfdb727a 33 */
046b6849 34 static final Pattern VERSION_2_PATTERN = Pattern.compile("(2\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
276c17e7 35
e799e5f3
SD
36 // ------------------------------------------------------------------------
37 // Constants
38 // ------------------------------------------------------------------------
39 /**
40 * Unused value
41 */
42 static final int UNUSED_VALUE = -1;
0df4af5f
JRJ
43 /**
44 * String representation of numerical true element
45 */
304712fe 46 String TRUE_NUMERICAL = "1"; //$NON-NLS-1$
e799e5f3 47
0df4af5f
JRJ
48 // ------------------------------------------------------------------------
49 // LTTng Machine Interface constants
50 // ------------------------------------------------------------------------
51
52 /**
53 * Name of the XSD to validate against the xml machine interface
54 * output from LTTng
55 */
304712fe 56 String MI_XSD_FILENAME = "mi_lttng.xsd"; //$NON-NLS-1$
276c17e7
BH
57 // ------------------------------------------------------------------------
58 // Command constants
59 // ------------------------------------------------------------------------
60 /**
61 * The lttng tools command.
62 */
304712fe 63 String CONTROL_COMMAND = "lttng"; //$NON-NLS-1$
0df4af5f
JRJ
64 /**
65 * The lttng tools machine interface command.
66 */
774a7993 67 static final String CONTROL_COMMAND_MI_OPTION = "--mi"; //$NON-NLS-1$
0df4af5f
JRJ
68 /**
69 * The lttng tools XML machine interface command.
70 */
774a7993 71 static final String CONTROL_COMMAND_MI_XML = "xml"; //$NON-NLS-1$
276c17e7
BH
72 /**
73 * Command: lttng version.
74 */
774a7993 75 static final String COMMAND_VERSION = "version"; //$NON-NLS-1$
276c17e7
BH
76 /**
77 * Command: lttng list.
78 */
774a7993 79 static final String COMMAND_LIST = "list"; //$NON-NLS-1$
276c17e7 80 /**
cfdb727a 81 * Command to create a session.
276c17e7 82 */
774a7993 83 static final String COMMAND_CREATE_SESSION = "create"; //$NON-NLS-1$
276c17e7 84 /**
cfdb727a 85 * Command to destroy a session.
276c17e7 86 */
774a7993 87 static final String COMMAND_DESTROY_SESSION = "destroy"; //$NON-NLS-1$
276c17e7 88 /**
cfdb727a 89 * Command to destroy a session.
276c17e7 90 */
774a7993 91 static final String COMMAND_START_SESSION = "start"; //$NON-NLS-1$
276c17e7 92 /**
cfdb727a 93 * Command to destroy a session.
276c17e7 94 */
774a7993 95 static final String COMMAND_STOP_SESSION = "stop"; //$NON-NLS-1$
276c17e7 96 /**
cfdb727a 97 * Command to enable a channel.
276c17e7 98 */
774a7993 99 static final String COMMAND_ENABLE_CHANNEL = "enable-channel"; //$NON-NLS-1$
276c17e7 100 /**
cfdb727a 101 * Command to disable a channel.
276c17e7 102 */
774a7993 103 static final String COMMAND_DISABLE_CHANNEL = "disable-channel"; //$NON-NLS-1$
276c17e7 104 /**
cfdb727a 105 * Command to enable a event.
276c17e7 106 */
774a7993 107 static final String COMMAND_ENABLE_EVENT = "enable-event"; //$NON-NLS-1$
276c17e7 108 /**
cfdb727a 109 * Command to disable a event.
276c17e7 110 */
774a7993 111 static final String COMMAND_DISABLE_EVENT = "disable-event"; //$NON-NLS-1$
276c17e7
BH
112 /**
113 * Command to add a context to channels and/or events
114 */
774a7993 115 static final String COMMAND_ADD_CONTEXT = "add-context"; //$NON-NLS-1$
276c17e7
BH
116 /**
117 * Command to execute calibrate command to quantify LTTng overhead
118 */
774a7993 119 static final String COMMAND_CALIBRATE = "calibrate"; //$NON-NLS-1$
589d0d33 120 /**
774a7993 121 * Command to execute sub-command snapshot
589d0d33 122 */
774a7993 123 static final String COMMAND_SNAPSHOT = "snapshot"; //$NON-NLS-1$
589d0d33 124 /**
774a7993
BH
125 * Command to list the snapshot outputs
126 */
127 static final String COMMAND_LIST_SNAPSHOT_OUTPUT = "list-output"; //$NON-NLS-1$
128 /**
129 * Command to record a snapshot
589d0d33 130 */
774a7993 131 static final String COMMAND_RECORD_SNAPSHOT = "record"; //$NON-NLS-1$
276c17e7
BH
132
133 // ------------------------------------------------------------------------
134 // Command line options constants
135 // ------------------------------------------------------------------------
136 /**
137 * Command line option to add tracing group of user.
138 */
774a7993 139 static final String OPTION_TRACING_GROUP = "-g"; //$NON-NLS-1$
276c17e7
BH
140 /**
141 * Command line option for verbose output.
142 */
774a7993 143 static final String OPTION_VERBOSE = "-v"; //$NON-NLS-1$
276c17e7
BH
144 /**
145 * Command line option for verbose output.
146 */
774a7993 147 static final String OPTION_VERY_VERBOSE = "-vv"; //$NON-NLS-1$
276c17e7
BH
148 /**
149 * Command line option for verbose output.
150 */
774a7993 151 static final String OPTION_VERY_VERY_VERBOSE = "-vvv"; //$NON-NLS-1$
276c17e7
BH
152 /**
153 * Command line option for output path.
154 */
774a7993 155 static final String OPTION_OUTPUT_PATH = "-o"; //$NON-NLS-1$
589d0d33
BH
156 /**
157 * Command line option for output path.
158 */
774a7993 159 static final String OPTION_SNAPSHOT = "--snapshot"; //$NON-NLS-1$
81d5dc3a
MAL
160 /**
161 * Command line option for live
162 */
774a7993 163 static final String OPTION_LIVE = "--live"; //$NON-NLS-1$
276c17e7
BH
164 /**
165 * Command line option for kernel tracer.
166 */
774a7993 167 static final String OPTION_KERNEL = "-k"; //$NON-NLS-1$
276c17e7
BH
168 /**
169 * Command line option for UST tracer.
170 */
774a7993 171 static final String OPTION_UST = "-u"; //$NON-NLS-1$
276c17e7
BH
172 /**
173 * Command line option for specifying a session.
174 */
774a7993 175 static final String OPTION_SESSION = "-s"; //$NON-NLS-1$
276c17e7
BH
176 /**
177 * Command line option for specifying a channel.
178 */
774a7993 179 static final String OPTION_CHANNEL = "-c"; //$NON-NLS-1$
276c17e7
BH
180 /**
181 * Command line option for specifying a event.
182 */
774a7993 183 static final String OPTION_EVENT = "-e"; //$NON-NLS-1$
276c17e7
BH
184 /**
185 * Command line option for specifying all events.
186 */
774a7993 187 static final String OPTION_ALL = "-a"; //$NON-NLS-1$
276c17e7
BH
188 /**
189 * Command line option for specifying a context.
190 */
774a7993 191 static final String OPTION_CONTEXT_TYPE = "-t"; //$NON-NLS-1$
276c17e7
BH
192 /**
193 * Command line option for specifying tracepoint events.
194 */
774a7993 195 static final String OPTION_TRACEPOINT = "--tracepoint"; //$NON-NLS-1$
276c17e7
BH
196 /**
197 * Command line option for specifying syscall events.
198 */
774a7993 199 static final String OPTION_SYSCALL = "--syscall"; //$NON-NLS-1$
276c17e7
BH
200 /**
201 * Command line option for specifying a dynamic probe.
202 */
774a7993 203 static final String OPTION_PROBE = "--probe"; //$NON-NLS-1$
276c17e7
BH
204 /**
205 * Command line option for specifying a dynamic function entry/return probe.
206 */
774a7993 207 static final String OPTION_FUNCTION_PROBE = "--function"; //$NON-NLS-1$
276c17e7
BH
208 /**
209 * Command line option for specifying a log level range.
210 */
774a7993 211 static final String OPTION_LOGLEVEL = "--loglevel"; //$NON-NLS-1$
276c17e7
BH
212 /**
213 * Command line option for specifying a specific log level.
214 */
774a7993 215 static final String OPTION_LOGLEVEL_ONLY = "--loglevel-only"; //$NON-NLS-1$
276c17e7
BH
216 /**
217 * Optional command line option for configuring a channel's overwrite mode.
218 */
774a7993 219 static final String OPTION_OVERWRITE = "--overwrite"; //$NON-NLS-1$
276c17e7
BH
220 /**
221 * Optional command line option for configuring a channel's number of sub buffers.
222 */
774a7993 223 static final String OPTION_NUM_SUB_BUFFERS = "--num-subbuf"; //$NON-NLS-1$
276c17e7
BH
224 /**
225 * Optional command line option for configuring a channel's sub buffer size.
226 */
774a7993 227 static final String OPTION_SUB_BUFFER_SIZE = "--subbuf-size"; //$NON-NLS-1$
276c17e7
BH
228 /**
229 * Optional command line option for configuring a channel's switch timer interval.
230 */
774a7993 231 static final String OPTION_SWITCH_TIMER = "--switch-timer"; //$NON-NLS-1$
276c17e7
BH
232 /**
233 * Optional command line option for configuring a channel's read timer interval.
234 */
774a7993 235 static final String OPTION_READ_TIMER = "--read-timer"; //$NON-NLS-1$
276c17e7 236 /**
cfdb727a 237 * Command line option for printing the help of a specif command
276c17e7 238 */
774a7993 239 static final String OPTION_HELP = "-h"; //$NON-NLS-1$
d4514365
BH
240 /**
241 * Command line option for listing the fields of UST tracepoints
242 */
774a7993 243 static final String OPTION_FIELDS = "-f"; //$NON-NLS-1$
d4514365
BH
244 /**
245 * Command line option for configuring event's filter
246 */
774a7993 247 static final String OPTION_FILTER = "--filter"; //$NON-NLS-1$
f3b33d40
BH
248 /**
249 * Command line option for configuring the streaming network URL (common for control and data channel).
250 */
774a7993 251 static final String OPTION_NETWORK_URL = "-U"; //$NON-NLS-1$
f3b33d40
BH
252 /**
253 * Command line option for configuring the streaming control URL.
254 */
774a7993 255 static final String OPTION_CONTROL_URL = "-C"; //$NON-NLS-1$
f3b33d40
BH
256 /**
257 * Command line option for configuring the streaming data URL.
258 */
774a7993 259 static final String OPTION_DATA_URL = "-D"; //$NON-NLS-1$
e799e5f3
SD
260 /**
261 * Command line option for per UID buffers
262 */
774a7993 263 static final String OPTION_PER_UID_BUFFERS = "--buffers-uid"; //$NON-NLS-1$
83051fc3
BH
264 /**
265 * Command line option for per PID buffers
266 */
774a7993 267 static final String OPTION_PER_PID_BUFFERS = "--buffers-pid"; //$NON-NLS-1$
e799e5f3
SD
268 /**
269 * Command line option for maximum size of trace files
270 */
774a7993 271 static final String OPTION_MAX_SIZE_TRACE_FILES = "-C"; //$NON-NLS-1$
e799e5f3
SD
272 /**
273 * Command line option for maximum trace files
274 */
774a7993 275 static final String OPTION_MAX_TRACE_FILES = "-W"; //$NON-NLS-1$
276c17e7
BH
276
277 // ------------------------------------------------------------------------
278 // Parsing constants
279 // ------------------------------------------------------------------------
280 /**
281 * Pattern to match the version.
282 */
c541f121 283 static final Pattern VERSION_PATTERN = Pattern.compile(".*lttng\\s+version\\s+.*(\\d+\\.\\d+\\.\\d+).*"); //$NON-NLS-1$
276c17e7
BH
284 /**
285 * Pattern to match for error output
286 */
046b6849 287 static final Pattern ERROR_PATTERN = Pattern.compile("\\s*Error\\:.*"); //$NON-NLS-1$
276c17e7
BH
288 /**
289 * Pattern to match for session information (lttng list)
290 */
589d0d33 291 static final Pattern SESSION_PATTERN = Pattern.compile("\\s+(\\d+)\\)\\s+(.*)\\s+\\((.*)\\)\\s+\\[(active|inactive).*\\].*"); //$NON-NLS-1$
276c17e7
BH
292 /**
293 * Pattern to match for session information (lttng list <session>)
294 */
046b6849 295 static final Pattern TRACE_SESSION_PATTERN = Pattern.compile("\\s*Tracing\\s+session\\s+(.*)\\:\\s+\\[(active|inactive)\\].*"); //$NON-NLS-1$
589d0d33
BH
296 /**
297 * Pattern to match for snapshot session information (lttng list <session>)
298 */
299 static final Pattern TRACE_SNAPSHOT_SESSION_PATTERN = Pattern.compile("\\s*Tracing\\s+session\\s+(.*)\\:\\s+\\[(active|inactive)\\s*snapshot\\].*"); //$NON-NLS-1$
276c17e7
BH
300 /**
301 * Pattern to match for session path information (lttng list <session>)
302 */
046b6849 303 static final Pattern TRACE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(.*)"); //$NON-NLS-1$
f3b33d40 304 /**
a30e79fe
BH
305 * Pattern to match session path for network tracing (lttng list <session>)
306 * Note: file for protocol is not considered as network trace since local consumer will be used.
f3b33d40 307 */
ca8a1860 308 static final Pattern TRACE_NETWORK_PATH_PATTERN = Pattern.compile("\\s*Trace\\s+path\\:\\s+(net|net4|net6|tcp|tcp4|tcp6)\\:\\/\\/(.*)(\\:(\\d*)\\/(.*)\\[data\\:\\s+(\\d*)\\]){0,1}"); //$NON-NLS-1$
0df4af5f
JRJ
309 /**
310 * Pattern to match session path for network tracing
311 * Note: file for protocol is not considered as network trace since local consumer will be used.
312 */
313 static final Pattern TRACE_NETWORK_PATTERN = Pattern.compile("\\s*(net|net4|net6|tcp|tcp4|tcp6)\\:\\/\\/(.*)(\\:(\\d*)\\/(.*)\\[data\\:\\s+(\\d*)\\]){0,1}"); //$NON-NLS-1$
d128c979
BH
314 /**
315 * Sub-pattern to pattern TRACE_NETWORK_PATH_PATTERN to match file protocol
316 */
046b6849 317 static final Pattern TRACE_FILE_PROTOCOL_PATTERN = Pattern.compile("(file)\\:\\/\\/(.*)"); //$NON-NLS-1$
276c17e7
BH
318 /**
319 * Pattern to match for kernel domain information (lttng list <session>)
320 */
046b6849 321 static final Pattern DOMAIN_KERNEL_PATTERN = Pattern.compile("=== Domain: Kernel ==="); //$NON-NLS-1$
276c17e7
BH
322 /**
323 * Pattern to match for ust domain information (lttng list <session>)
324 */
046b6849 325 static final Pattern DOMAIN_UST_GLOBAL_PATTERN = Pattern.compile("=== Domain: UST global ==="); //$NON-NLS-1$
a30e79fe
BH
326 /**
327 * Pattern to match for matching warning about no kernel channel
328 */
046b6849 329 static final Pattern DOMAIN_NO_KERNEL_CHANNEL_PATTERN = Pattern.compile("\\s*Warning\\:\\s+No kernel\\s+channel.*"); //$NON-NLS-1$
a30e79fe
BH
330 /**
331 * Pattern to match for matching warning about no UST channel
332 */
046b6849 333 static final Pattern DOMAIN_NO_UST_CHANNEL_PATTERN = Pattern.compile("\\s*Error\\:\\s+UST\\s+channel\\s+not\\s+found.*"); //$NON-NLS-1$
ca8c54b3
SD
334 /**
335 * Pattern to match for buffer type (lttng list <session>)
336 */
337 static final Pattern BUFFER_TYPE_PATTERN = Pattern.compile("\\s*Buffer\\s+type\\:.*"); //$NON-NLS-1$
276c17e7
BH
338 /**
339 * Pattern to match for channels section (lttng list <session>)
340 */
046b6849 341 static final Pattern CHANNELS_SECTION_PATTERN = Pattern.compile("\\s*Channels\\:"); //$NON-NLS-1$
276c17e7
BH
342 /**
343 * Pattern to match for channel information (lttng list <session>)
344 */
046b6849 345 static final Pattern CHANNEL_PATTERN = Pattern.compile("\\s*-\\s+(.*)\\:\\s+\\[(enabled|disabled)\\]"); //$NON-NLS-1$
276c17e7
BH
346 /**
347 * Pattern to match for events section information (lttng list <session>)
348 */
046b6849 349 static final Pattern EVENT_SECTION_PATTERN = Pattern.compile("\\s*Events\\:"); //$NON-NLS-1$
276c17e7
BH
350 /**
351 * Pattern to match for event information (lttng list <session>)
352 */
54f2dcc0 353 static final Pattern EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(loglevel\\s*(:|<=|==)\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
276c17e7
BH
354 /**
355 * Pattern to match a wildcarded event information (lttng list <session>)
356 */
046b6849 357 static final Pattern WILDCARD_EVENT_PATTERN = Pattern.compile("\\s+(.*)\\s+\\(type:\\s+(.*)\\)\\s+\\[(enabled|disabled)\\]\\s*(\\[.*\\]){0,1}.*"); //$NON-NLS-1$
276c17e7
BH
358 /**
359 * Pattern to match a probe address information (lttng list <session>)
360 */
1fdb800e 361 static final Pattern PROBE_ADDRESS_PATTERN = Pattern.compile("\\s+(addr)\\:\\s+(0x[0-9a-fA-F]{1,16})"); //$NON-NLS-1$
276c17e7
BH
362 /**
363 * Pattern to match a probe OFFSET information (lttng list <session>)
364 */
1fdb800e 365 static final Pattern PROBE_OFFSET_PATTERN = Pattern.compile("\\s+(offset)\\:\\s+(0x[0-9a-fA-F]{1,16})"); //$NON-NLS-1$
276c17e7
BH
366 /**
367 * Pattern to match a probe SYMBOL information (lttng list <session>)
368 */
046b6849 369 static final Pattern PROBE_SYMBOL_PATTERN = Pattern.compile("\\s+(symbol)\\:\\s+(.+)"); //$NON-NLS-1$
276c17e7
BH
370 /**
371 * Pattern to match for channel (overwite mode) information (lttng list <session>)
372 */
046b6849 373 static final Pattern OVERWRITE_MODE_ATTRIBUTE = Pattern.compile("\\s+overwrite\\s+mode\\:.*"); //$NON-NLS-1$
276c17e7
BH
374 /**
375 * Pattern to match indicating false for overwrite mode
376 */
304712fe 377 String OVERWRITE_MODE_ATTRIBUTE_FALSE = "0"; //$NON-NLS-1$
f4401569
JRJ
378 /**
379 * Pattern to match indicating false for overwrite mode in machine interface mode
380 */
304712fe 381 String OVERWRITE_MODE_ATTRIBUTE_FALSE_MI = "DISCARD"; //$NON-NLS-1$
276c17e7
BH
382 /**
383 * Pattern to match for channel (sub-buffer size) information (lttng list <session>)
384 */
046b6849 385 static final Pattern SUBBUFFER_SIZE_ATTRIBUTE = Pattern.compile("\\s+subbufers\\s+size\\:.*"); //$NON-NLS-1$
276c17e7
BH
386 /**
387 * Pattern to match for channel (number of sub-buffers) information (lttng list <session>)
388 */
046b6849 389 static final Pattern NUM_SUBBUFFERS_ATTRIBUTE = Pattern.compile("\\s+number\\s+of\\s+subbufers\\:.*"); //$NON-NLS-1$
276c17e7
BH
390 /**
391 * Pattern to match for channel (switch timer) information (lttng list <session>)
392 */
046b6849 393 static final Pattern SWITCH_TIMER_ATTRIBUTE = Pattern.compile("\\s+switch\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
276c17e7
BH
394 /**
395 * Pattern to match for channel (read timer) information (lttng list <session>)
396 */
046b6849 397 static final Pattern READ_TIMER_ATTRIBUTE = Pattern.compile("\\s+read\\s+timer\\s+interval\\:.*"); //$NON-NLS-1$
276c17e7
BH
398 /**
399 * Pattern to match for channel (output type) information (lttng list <session>)
400 */
046b6849 401 static final Pattern OUTPUT_ATTRIBUTE = Pattern.compile("\\s+output\\:.*"); //$NON-NLS-1$
276c17e7
BH
402 /**
403 * Pattern to match for provider information (lttng list -k/-u)
404 */
046b6849 405 static final Pattern PROVIDER_EVENT_PATTERN = Pattern.compile("\\s*(.*)\\s+\\(loglevel:\\s+(.*)\\s+\\(\\d*\\)\\)\\s+\\(type:\\s+(.*)\\)"); //$NON-NLS-1$
d4514365
BH
406 /**
407 * Pattern to match event fields
408 */
046b6849 409 static final Pattern EVENT_FIELD_PATTERN = Pattern.compile("\\s*(field:)\\s+(.*)\\s+\\((.*)\\)"); //$NON-NLS-1$
276c17e7
BH
410 /**
411 * Pattern to match for UST provider information (lttng list -u)
412 */
046b6849 413 static final Pattern UST_PROVIDER_PATTERN = Pattern.compile("\\s*PID\\:\\s+(\\d+)\\s+-\\s+Name\\:\\s+(.*)"); //$NON-NLS-1$
276c17e7
BH
414 /**
415 * Pattern to match for session information (lttng create <session name>)
416 */
046b6849 417 static final Pattern CREATE_SESSION_NAME_PATTERN = Pattern.compile(".*Session\\s+(.*)\\s+created\\."); //$NON-NLS-1$
276c17e7
BH
418 /**
419 * Pattern to match for session path information (lttng create <session name>)
420 */
046b6849 421 static final Pattern CREATE_SESSION_PATH_PATTERN = Pattern.compile("\\s*Traces\\s+will\\s+be\\s+written\\s+in\\s+(.*).*"); //$NON-NLS-1$
276c17e7
BH
422 /**
423 * Pattern to match for session command output for "session name not found".
424 */
1ed5ac2e 425 static final Pattern SESSION_NOT_FOUND_ERROR_PATTERN = Pattern.compile("\\s*Error:\\s+Session\\s+name\\s.*not\\s+found"); //$NON-NLS-1$
276c17e7
BH
426 /**
427 * Pattern to match introduction line of context list.
428 */
046b6849 429 static final Pattern ADD_CONTEXT_HELP_CONTEXTS_INTRO = Pattern.compile("\\s*TYPE can\\s+be\\s+one\\s+of\\s+the\\s+strings\\s+below.*"); //$NON-NLS-1$
276c17e7
BH
430 /**
431 * Pattern to match introduction line of context list.
432 */
046b6849 433 static final Pattern ADD_CONTEXT_HELP_CONTEXTS_END_LINE = Pattern.compile("\\s*Example.*"); //$NON-NLS-1$
a07c7629
BH
434 /**
435 * Pattern to match error line if no kernel tracer is available or installed.
436 */
046b6849 437 static final Pattern LIST_KERNEL_NO_KERNEL_PROVIDER_PATTERN = Pattern.compile("\\s*Error:\\s+Unable\\s+to\\s+list\\s+kernel\\s+events.*"); //$NON-NLS-1$;
f3e2f354
BH
438 /**
439 * Pattern to match error line if no ust tracer is available or installed.
440 */
046b6849 441 static final Pattern LIST_UST_NO_UST_PROVIDER_PATTERN = Pattern.compile(".*Unable\\s*to\\s*list\\s*UST\\s*event.*"); //$NON-NLS-1$;
589d0d33
BH
442 /**
443 * Pattern to match for list snapshot information (lttng snapshot list-output)
444 */
ad311f36 445 static final Pattern LIST_SNAPSHOT_OUTPUT_PATTERN = Pattern.compile("\\s+\\[(\\d+)\\]\\s+(\\S*)\\:\\s+(\\S*)(.*)"); //$NON-NLS-1$
92fe6900
MAL
446 /**
447 * Pattern to match the live timer interval line of session list.
448 */
449 static final Pattern LIST_LIVE_TIMER_INTERVAL_PATTERN = Pattern.compile("\\s*Live\\stimer\\sinterval\\s\\(usec\\):\\s(\\d+)"); //$NON-NLS-1$
589d0d33
BH
450 /**
451 * Pattern to match snapshot path for network tracing (lttng list <session>)
452 * Note: file for protocol is not considered as network trace since local consumer will be used.
453 */
ca8a1860 454 static final Pattern SNAPSHOT_NETWORK_PATH_PATTERN = Pattern.compile("(net|net4|net6|tcp|tcp4|tcp6)\\:\\/\\/(.*)(\\:(\\d*)\\/(.*)\\[data\\:\\s+(\\d*)\\]){0,1}"); //$NON-NLS-1$
589d0d33 455
276c17e7 456}
This page took 0.077862 seconds and 5 git commands to generate.