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