This is the mail archive of the frysk-cvs@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SCM] master: Delete SyscallExaminer.


The branch, master has been updated
       via  d2b45db5fdcf5094be981b00b77106374924e5cb (commit)
      from  a23e7138d3068bc8f776303b00273cac96067fdd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit d2b45db5fdcf5094be981b00b77106374924e5cb
Author: Andrew Cagney <cagney@redhat.com>
Date:   Tue Mar 11 09:46:29 2008 -0400

    Delete SyscallExaminer.
    
    frysk-core/frysk/proc/ChangeLog
    2008-03-11  Andrew Cagney  <cagney@redhat.com>
    
    	* SyscallExaminer.java: Delete.

-----------------------------------------------------------------------

Summary of changes:
 frysk-core/frysk/proc/ChangeLog            |    2 +
 frysk-core/frysk/proc/SyscallExaminer.java |  128 ----------------------------
 2 files changed, 2 insertions(+), 128 deletions(-)
 delete mode 100644 frysk-core/frysk/proc/SyscallExaminer.java

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index 56f2684..ca3c0d6 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,5 +1,7 @@
 2008-03-11  Andrew Cagney  <cagney@redhat.com>
 
+	* SyscallExaminer.java: Delete.
+
 	* Proc.java (getMainTask()): Make abstract.
 
 2008-03-10  Andrew Cagney  <cagney@redhat.com>
diff --git a/frysk-core/frysk/proc/SyscallExaminer.java b/frysk-core/frysk/proc/SyscallExaminer.java
deleted file mode 100644
index 1a20b1d..0000000
--- a/frysk-core/frysk/proc/SyscallExaminer.java
+++ /dev/null
@@ -1,128 +0,0 @@
-// This file is part of the program FRYSK.
-//
-// Copyright 2005, 2006, 2007, 2008, Red Hat Inc.
-//
-// FRYSK is free software; you can redistribute it and/or modify it
-// under the terms of the GNU General Public License as published by
-// the Free Software Foundation; version 2 of the License.
-//
-// FRYSK is distributed in the hope that it will be useful, but
-// WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// General Public License for more details.
-// 
-// You should have received a copy of the GNU General Public License
-// along with FRYSK; if not, write to the Free Software Foundation,
-// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
-// 
-// In addition, as a special exception, Red Hat, Inc. gives You the
-// additional right to link the code of FRYSK with code not covered
-// under the GNU General Public License ("Non-GPL Code") and to
-// distribute linked combinations including the two, subject to the
-// limitations in this paragraph. Non-GPL Code permitted under this
-// exception must only link to the code of FRYSK through those well
-// defined interfaces identified in the file named EXCEPTION found in
-// the source code files (the "Approved Interfaces"). The files of
-// Non-GPL Code may instantiate templates or use macros or inline
-// functions from the Approved Interfaces without causing the
-// resulting work to be covered by the GNU General Public
-// License. Only Red Hat, Inc. may make changes or additions to the
-// list of Approved Interfaces. You must obey the GNU General Public
-// License in all respects for all of the FRYSK code and other code
-// used in conjunction with FRYSK except the Non-GPL Code covered by
-// this exception. If you modify this file, you may extend this
-// exception to your version of the file, but you are not obligated to
-// do so. If you do not wish to provide this exception without
-// modification, you must delete this exception statement from your
-// version and license this file solely under the GPL without
-// exception.
-
-package frysk.proc;
-
-import java.util.Observer;
-import java.util.Observable;
-import frysk.rsl.Log;
-import frysk.testbed.TestLib;
-import frysk.testbed.TaskObserverBase;
-import frysk.isa.syscalls.Syscall;
-
-/**
- * Superclass for tests that examine process state at a system call.
- */
-
-public class SyscallExaminer extends TestLib {
-    private static final Log fine = Log.fine(SyscallExaminer.class);
-
-  // Timers, observers, counters, etc.. needed for the test.
-  public class Tester
-  {
-    volatile int stoppedTaskEventCount;
-    volatile int syscallTaskEventCount;
-    volatile int syscallState;
-    volatile boolean exited;
-    volatile int exitedTaskEventStatus;
-	
-      /**
-       * Need to add task observers to the process the moment it is
-       * created, otherwize the creation of the very first task is
-       * missed (giving a mismatch of task created and deleted
-       * notifications.)
-       */	
-      class TaskEventObserver extends TaskObserverBase
-	  implements TaskObserver.Syscalls, TaskObserver.Signaled
-      {
-	  public Action updateSyscallEnter (Task task, Syscall syscall) {
-	      syscallState = 1;
-	      return Action.CONTINUE;
-	  }
-	  public Action updateSyscallExit (Task task) {
-	      syscallState = 0;
-	      return Action.CONTINUE;
-	  }
-	  public Action updateSignaled (Task task,
-					frysk.isa.signals.Signal sig) {
-	      stoppedTaskEventCount++;
-	      return Action.CONTINUE;
-	  }
-      }
-	
-    class ProcDestroyedObserver
-      implements Observer
-    {
-      volatile int count;
-      public void update (Observable o, Object obj)
-      {
-	count++;
-	Proc process = (Proc) obj;
-	if (isChildOfMine (process)) {
-	  syscallState ^= 1;  // we won't return from exit syscall
-	  exited = true;
-	  Manager.eventLoop.requestStop ();
-	}
-      }
-    }
-    
-    Tester ()
-    {
-      host.observableProcRemovedXXX.addObserver
-	(new ProcDestroyedObserver ());
-    }
-
-    public void addTaskAddedObserver(TaskAddedObserver obs) 
-    {
-      host.observableTaskAddedXXX.addObserver (obs);
-    }
-  }
-
-  public class TaskAddedObserver implements Observer 
-  {
-    public void update (Observable o, Object obj)
-    {
-      Task task = (Task) obj;
-      if (!isChildOfMine (task.getProc()))
-	return;
-      fine.log("Registering pid for kill", task);
-    }
-  }
-}
-


hooks/post-receive
--
frysk system monitor/debugger


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]