aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2015-06-15 09:57:02 -0400
committerUwe Stieber2015-06-16 02:36:19 -0400
commit6b968e82d080de468e846ded50752f8fe34a5b32 (patch)
tree0a89ec5a4051de8cf2e1a950a2bc3e1de6fa2a62
parentb89ce9367e92247c7c1dde0a5b88cc2cb7024998 (diff)
downloadorg.eclipse.tcf-1.3_WR_20150619_4.2.0_bugfix.zip
org.eclipse.tcf-1.3_WR_20150619_4.2.0_bugfix.tar.gz
org.eclipse.tcf-1.3_WR_20150619_4.2.0_bugfix.tar.xz
Bug 470179 - Add SysMonitor context properties "Exe" and "ExeType"1.3_WR_20150619_4.2.0_bugfix
Change-Id: I7d2e9658aaf30023b622c5d28277754b80cbea31 Signed-off-by: Anton Leherbauer <anton.leherbauer@windriver.com>
-rw-r--r--docs/TCF Service - System Monitor.html14
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java25
2 files changed, 36 insertions, 3 deletions
diff --git a/docs/TCF Service - System Monitor.html b/docs/TCF Service - System Monitor.html
index 2763e68..6333266 100644
--- a/docs/TCF Service - System Monitor.html
+++ b/docs/TCF Service - System Monitor.html
@@ -35,6 +35,10 @@
<td>0.1
<td>2008-01-10
<td>Initial contribution
+ <tr>
+ <td>1.4
+ <td>2015-06-15
+ <td>Added context properties "Exe" and "ExeType"
</table>
<h2><a name='Overview'>Overview</a></h2>
@@ -237,6 +241,12 @@ R &bull; <i>&lt;token&gt;</i> &bull; <i>&lt;error report&gt;</i> &bull; <i>&lt;c
<li><code><b><font face="Courier New" size=2 color=#333399>"Policy" : <i>&lt;int&gt;</i></font></b></code>
- scheduling policy.
+
+ <li><code><b><font face="Courier New" size=2 color=#333399>"Exe" : <i>&lt;string&gt;</i></font></b></code>
+ - full path to executable file of a process (since 1.4).
+
+ <li><code><b><font face="Courier New" size=2 color=#333399>"ExeType" : <i>&lt;int&gt;</i></font></b></code>
+ - executable type: 0 = user process, 1 = kernel thread, 2 = access denied (since 1.4).
</ul>
<h3><a name='CmdGetChildren'>Get Children</a></h3>
@@ -273,7 +283,7 @@ R &bull; <i>&lt;token&gt;</i> &bull; <i>&lt;error report&gt;</i> &bull; <i>&lt;a
C &bull; <i>&lt;token&gt;</i> &bull; SysMonitor &bull; getCommandLine &bull; <i>&lt;string: context ID&gt;</i> &bull;
</font></b></pre>
-<p>The command requests a list of progess command line arguments.</p>
+<p>The command requests a list of process command line arguments.</p>
<p>Reply:</p>
@@ -296,7 +306,7 @@ R &bull; <i>&lt;token&gt;</i> &bull; <i>&lt;error report&gt;</i> &bull; <i>&lt;a
C &bull; <i>&lt;token&gt;</i> &bull; SysMonitor &bull; getEnvironment &bull; <i>&lt;string: context ID&gt;</i> &bull;
</font></b></pre>
-<p>The command requests a list of progess environment variables.</p>
+<p>The command requests a list of process environment variables.</p>
<p>Reply:</p>
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java
index 29621a5..639f1dc 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/services/ISysMonitor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2013 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007, 2015 Wind River Systems, Inc. and others.
* 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
@@ -234,6 +234,29 @@ public interface ISysMonitor extends IService {
/** Scheduling policy */
PROP_POLICY = "Policy";
+ /**
+ * Context property extension.
+ * @since 1.4
+ */
+ static final String
+ /** Full path to executable file of the process */
+ PROP_EXE = "Exe",
+
+ /** Executable type (integer). Value is one of:
+ * 0 = user process
+ * 1 = kernel thread
+ * 2 = access denied
+ * See also EXETYPE_* constants */
+ PROP_EXETYPE = "ExeType";
+
+ /**
+ * ExeType property values.
+ * @since 1.4
+ */
+ static final int
+ EXETYPE_USER = 0,
+ EXETYPE_KERNEL = 1,
+ EXETYPE_ACCESS_DENIED = 2;
/**
* A context corresponds to an execution thread, process, address space, etc.