From 6b968e82d080de468e846ded50752f8fe34a5b32 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Mon, 15 Jun 2015 15:57:02 +0200 Subject: Bug 470179 - Add SysMonitor context properties "Exe" and "ExeType" Change-Id: I7d2e9658aaf30023b622c5d28277754b80cbea31 Signed-off-by: Anton Leherbauer --- docs/TCF Service - System Monitor.html | 14 ++++++++++-- .../src/org/eclipse/tcf/services/ISysMonitor.java | 25 +++++++++++++++++++++- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/docs/TCF Service - System Monitor.html b/docs/TCF Service - System Monitor.html index 2763e684f..633326640 100644 --- a/docs/TCF Service - System Monitor.html +++ b/docs/TCF Service - System Monitor.html @@ -35,6 +35,10 @@ 0.1 2008-01-10 Initial contribution + + 1.4 + 2015-06-15 + Added context properties "Exe" and "ExeType"

Overview

@@ -237,6 +241,12 @@ R • <token><error report><c
  • "Policy" : <int> - scheduling policy. + +
  • "Exe" : <string> + - full path to executable file of a process (since 1.4). + +
  • "ExeType" : <int> + - executable type: 0 = user process, 1 = kernel thread, 2 = access denied (since 1.4).

    Get Children

    @@ -273,7 +283,7 @@ R • <token><error report><a C • <token> • SysMonitor • getCommandLine • <string: context ID> • -

    The command requests a list of progess command line arguments.

    +

    The command requests a list of process command line arguments.

    Reply:

    @@ -296,7 +306,7 @@ R • <token><error report><a C • <token> • SysMonitor • getEnvironment • <string: context ID> • -

    The command requests a list of progess environment variables.

    +

    The command requests a list of process environment variables.

    Reply:

    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 29621a5eb..639f1dcda 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. -- cgit v1.2.3