aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilliano Molaire2014-04-15 15:35:36 (EDT)
committerGenevieve Bastien2014-04-17 16:38:47 (EDT)
commit52e18ca5cd9700f2a09f4919d36f4fa627db8d9b (patch)
treed8fba012fef41a1ec8fbde30653abbffed6bf402
parent199228d1cd2d345c4cdcb2a1152d788949b43a25 (diff)
downloadorg.eclipse.linuxtools-52e18ca5cd9700f2a09f4919d36f4fa627db8d9b.zip
org.eclipse.linuxtools-52e18ca5cd9700f2a09f4919d36f4fa627db8d9b.tar.gz
org.eclipse.linuxtools-52e18ca5cd9700f2a09f4919d36f4fa627db8d9b.tar.bz2
TMF: Add an interface for strings regarding a session configurationrefs/changes/22/23422/8
Creation of the lttng2.core.session package with the strings that will be used for session configuration generation. We also externalized the bundle for the kernel and ust plugin. Change-Id: If51a4805064ed701a2bbf31a7f327406410f71a6 Signed-off-by: Guilliano Molaire <guilliamo-jaime.molaire@polymtl.ca> Reviewed-on: https://git.eclipse.org/r/23422 Tested-by: Hudson CI Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net> Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.core/META-INF/MANIFEST.MF3
-rw-r--r--lttng/org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/lttng2/core/session/SessionConfigStrings.java82
2 files changed, 84 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.lttng2.core/META-INF/MANIFEST.MF b/lttng/org.eclipse.linuxtools.lttng2.core/META-INF/MANIFEST.MF
index 3a353a5..94c7cbe 100644
--- a/lttng/org.eclipse.linuxtools.lttng2.core/META-INF/MANIFEST.MF
+++ b/lttng/org.eclipse.linuxtools.lttng2.core/META-INF/MANIFEST.MF
@@ -11,4 +11,5 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Require-Bundle: org.eclipse.core.runtime
Export-Package: org.eclipse.linuxtools.internal.lttng2.core;x-friends:="org.eclipse.linuxtools.lttng2.core.tests",
org.eclipse.linuxtools.internal.lttng2.core.control.model;x-friends:="org.eclipse.linuxtools.lttng2.ui,org.eclipse.linuxtools.lttng2.ui.tests,org.eclipse.linuxtools.lttng2.core.tests",
- org.eclipse.linuxtools.internal.lttng2.core.control.model.impl;x-friends:="org.eclipse.linuxtools.lttng2.ui,org.eclipse.linuxtools.lttng2.ui.tests,org.eclipse.linuxtools.lttng2.core.tests"
+ org.eclipse.linuxtools.internal.lttng2.core.control.model.impl;x-friends:="org.eclipse.linuxtools.lttng2.ui,org.eclipse.linuxtools.lttng2.ui.tests,org.eclipse.linuxtools.lttng2.core.tests",
+ org.eclipse.linuxtools.lttng2.core.session
diff --git a/lttng/org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/lttng2/core/session/SessionConfigStrings.java b/lttng/org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/lttng2/core/session/SessionConfigStrings.java
new file mode 100644
index 0000000..ee8e77d
--- /dev/null
+++ b/lttng/org.eclipse.linuxtools.lttng2.core/src/org/eclipse/linuxtools/lttng2/core/session/SessionConfigStrings.java
@@ -0,0 +1,82 @@
+/**********************************************************************
+ * Copyright (c) 2014 École Polytechnique de Montréal
+ *
+ * All rights reserved. This program and the accompanying materials are
+ * made available under the terms of the Eclipse Public License v1.0 which
+ * accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Guilliano Molaire - Initial API and implementation
+ *********************************************************************/
+package org.eclipse.linuxtools.lttng2.core.session;
+
+/**
+ * This file defines most markers from a session configuration file used to
+ * configure a trace session. They can be found in the session configuration
+ * schema "session.xsd" in src/common/config/ folder of LTTng-tools.
+ *
+ * @author Guilliano Molaire
+ * @since 3.0
+ */
+@SuppressWarnings({ "javadoc", "nls" })
+public interface SessionConfigStrings {
+
+ /* Session configuration file extension */
+ static final String SESSION_CONFIG_FILE_EXTENSION = "lttng";
+
+ /* Elements of the session configuration file */
+ static final String CONFIG_ELEMENT_SESSIONS = "sessions";
+ static final String CONFIG_ELEMENT_SESSION = "session";
+ static final String CONFIG_ELEMENT_DOMAINS = "domains";
+ static final String CONFIG_ELEMENT_DOMAIN = "domain";
+ static final String CONFIG_ELEMENT_CHANNELS = "channels";
+ static final String CONFIG_ELEMENT_CHANNEL = "channel";
+ static final String CONFIG_ELEMENT_EVENTS = "events";
+ static final String CONFIG_ELEMENT_EVENT = "event";
+ static final String CONFIG_ELEMENT_OUTPUT = "output";
+ static final String CONFIG_ELEMENT_ATTRIBUTES = "attributes";
+ static final String CONFIG_ELEMENT_NET_OUTPUT = "net_output";
+ static final String CONFIG_ELEMENT_MAX_SIZE = "max_size";
+ static final String CONFIG_ELEMENT_SNAPSHOT_OUTPUTS = "snapshot_outputs";
+ static final String CONFIG_ELEMENT_CONSUMER_OUTPUT = "consumer_output";
+ static final String CONFIG_ELEMENT_DESTINATION = "destination";
+ static final String CONFIG_ELEMENT_CONTROL_URI = "control_uri";
+ static final String CONFIG_ELEMENT_DATA_URI = "data_uri";
+ static final String CONFIG_ELEMENT_SNAPSHOT_MODE = "snapshot_mode";
+ static final String CONFIG_ELEMENT_PATH = "path";
+ static final String CONFIG_ELEMENT_NAME = "name";
+ static final String CONFIG_ELEMENT_ENABLED = "enabled";
+ static final String CONFIG_ELEMENT_TYPE = "type";
+ static final String CONFIG_ELEMENT_STARTED = "started";
+ static final String CONFIG_ELEMENT_DOMAIN_BUFFER_TYPE = "buffer_type";
+ static final String CONFIG_ELEMENT_OVERWRITE_MODE = "overwrite_mode";
+ static final String CONFIG_ELEMENT_SUBBUFFER_SIZE = "subbuffer_size";
+ static final String CONFIG_ELEMENT_SUBBUFFER_COUNT = "subbuffer_count";
+ static final String CONFIG_ELEMENT_SWITCH_TIMER_INTERVAL = "switch_timer_interval";
+ static final String CONFIG_ELEMENT_READ_TIMER_INTERVAL = "read_timer_interval";
+ static final String CONFIG_ELEMENT_OUTPUT_TYPE = "output_type";
+ static final String CONFIG_ELEMENT_TRACEFILE_SIZE = "tracefile_size";
+ static final String CONFIG_ELEMENT_TRACEFILE_COUNT = "tracefile_count";
+ static final String CONFIG_ELEMENT_LIVE_TIMER_INTERVAL = "live_timer_interval";
+ static final String CONFIG_ELEMENT_LOGLEVEL_TYPE = "loglevel_type";
+ static final String CONFIG_ELEMENT_LOGLEVEL = "loglevel";
+
+ /* Common element values */
+ static final String CONFIG_STRING_TRUE = "true";
+ static final String CONFIG_STRING_FALSE = "false";
+ static final String CONFIG_STRING_ZERO = "0";
+
+ static final String CONFIG_DOMAIN_TYPE_KERNEL = "KERNEL";
+ static final String CONFIG_DOMAIN_TYPE_UST = "UST";
+
+ static final String CONFIG_BUFFER_TYPE_PER_UID = "PER_UID";
+ static final String CONFIG_BUFFER_TYPE_PER_PID = "PER_PID";
+ static final String CONFIG_BUFFER_TYPE_GLOBAL = "GLOBAL";
+
+ static final String CONFIG_OVERWRITE_MODE_DISCARD = "DISCARD";
+ static final String CONFIG_OVERWRITE_MODE_OVERWRITE = "OVERWRITE";
+
+ static final String CONFIG_OUTPUT_TYPE_SPLICE = "SPLICE";
+ static final String CONFIG_OUTPUT_TYPE_MMAP = "MMAP";
+}