public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Move TaskObservation and TaskObservable to frysk.proc.live.
@ 2008-01-11 19:01 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-01-11 19:01 UTC (permalink / raw)
  To: frysk-cvs

The branch, master has been updated
       via  e42a7c12625dc81987dd20571e05080f118d25f1 (commit)
       via  99625ced00e8c3cb34e7bab54b782949cd303719 (commit)
       via  045e4216da9c53a9aef813cbabbbee056773dab1 (commit)
      from  5dd5e46030fd81e319e4986fbe8977dcc78ad79f (commit)

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

- Log -----------------------------------------------------------------
commit e42a7c12625dc81987dd20571e05080f118d25f1
Author: Andrew Cagney <cagney@toil.yyz.redhat.com>
Date:   Fri Jan 11 13:14:51 2008 -0500

    Move TaskObservation and TaskObservable to frysk.proc.live.
    
    frysk-core/frysk/proc/ChangeLog
    2008-01-11  Andrew Cagney  <cagney@redhat.com>
    
    	* TaskObservation.java: Move to frysk.proc.live.
    	* Task.java (handleAddObservation(TaskObserver)): Delete.
    	(handleDeleteObservation(TaskObserver)): Delete.
    
    frysk-core/frysk/proc/dead/ChangeLog
    2008-01-11  Andrew Cagney  <cagney@redhat.com>
    
    	* DeadTask.java (handleAddObservation(TaskObservation))
    	(handleDeleteObservation(TaskObservation)): Delete.
    
    frysk-core/frysk/proc/dummy/ChangeLog
    2008-01-11  Andrew Cagney  <cagney@redhat.com>
    
    	* DummyTask.java (handleAddObservation(TaskObservation))
    	(handleDeleteObservation(TaskObservation)): Delete.
    	* DummyProc.java (handleAddObservation(TaskObservation)): Delete.
    
    frysk-core/frysk/proc/live/ChangeLog
    2008-01-11  Andrew Cagney  <cagney@redhat.com>
    
    	* LiveTask.java (handleAddObservation(TaskObservation))
    	(handleDeleteObservation(TaskObservation)): Declare.
    	* TaskObservation.java: Move from frysk.proc.TaskObservation.
    	* TaskObservable.java: Move from frysk.proc.TaskObservable.
    	* LinuxPtraceTask.java (handleAddObservation(TaskObservation))
    	(handleDeleteObservation(TaskObservation)): Make pakage-private.
    	* LinuxPtraceProc.java: Update.
    	* LinuxPtraceTaskState.java: Update.

commit 99625ced00e8c3cb34e7bab54b782949cd303719
Author: Andrew Cagney <cagney@toil.yyz.redhat.com>
Date:   Fri Jan 11 12:45:42 2008 -0500

    Delete unused classes.
    
    frysk-core/frysk/proc/ChangeLog
    2008-01-11  Andrew Cagney  <cagney@redhat.com>
    
    	* UBigInteger.java: Delete.
    	* BitfieldAccessor.java: Delete.
    	* LongFloat.java: Delete.

commit 045e4216da9c53a9aef813cbabbbee056773dab1
Author: Andrew Cagney <cagney@toil.yyz.redhat.com>
Date:   Fri Jan 11 12:22:39 2008 -0500

    Delete unused field Task.queuedEvents.
    
    frysk-core/frysk/proc/ChangeLog
    2008-01-11  Andrew Cagney  <cagney@redhat.com>
    
    	* Task.java (queuedEvents): Delete.

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

Summary of changes:
 frysk-core/frysk/proc/BitfieldAccessor.java        |  135 -------------------
 frysk-core/frysk/proc/ChangeLog                    |   12 ++
 frysk-core/frysk/proc/LongFloat.java               |  137 --------------------
 frysk-core/frysk/proc/Task.java                    |   12 --
 frysk-core/frysk/proc/UBigInteger.java             |  108 ---------------
 frysk-core/frysk/proc/dead/ChangeLog               |    5 +
 frysk-core/frysk/proc/dead/DeadTask.java           |   15 --
 frysk-core/frysk/proc/dummy/ChangeLog              |    6 +
 frysk-core/frysk/proc/dummy/DummyProc.java         |    4 -
 frysk-core/frysk/proc/dummy/DummyTask.java         |    7 -
 frysk-core/frysk/proc/live/ChangeLog               |   11 ++
 frysk-core/frysk/proc/live/LinuxPtraceProc.java    |   24 ++--
 frysk-core/frysk/proc/live/LinuxPtraceTask.java    |   12 +-
 .../frysk/proc/live/LinuxPtraceTaskState.java      |    2 -
 frysk-core/frysk/proc/live/LiveTask.java           |    9 ++
 .../frysk/proc/{ => live}/TaskObservable.java      |    5 +-
 .../frysk/proc/{ => live}/TaskObservation.java     |   18 ++--
 17 files changed, 74 insertions(+), 448 deletions(-)
 delete mode 100644 frysk-core/frysk/proc/BitfieldAccessor.java
 delete mode 100644 frysk-core/frysk/proc/LongFloat.java
 delete mode 100644 frysk-core/frysk/proc/UBigInteger.java
 rename frysk-core/frysk/proc/{ => live}/TaskObservable.java (96%)
 rename frysk-core/frysk/proc/{ => live}/TaskObservation.java (93%)

First 500 lines of diff:
diff --git a/frysk-core/frysk/proc/BitfieldAccessor.java b/frysk-core/frysk/proc/BitfieldAccessor.java
deleted file mode 100644
index 7051fdf..0000000
--- a/frysk-core/frysk/proc/BitfieldAccessor.java
+++ /dev/null
@@ -1,135 +0,0 @@
-// This file is part of the program FRYSK.
-//
-// Copyright 2006, 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.math.BigInteger;
-
-/**
- * A BitfieldAccessor treats a BigInteger as being a fixed length with one
- * or more fields of equal length. The bit patterns in the field can
- * be treated as integer values, 32 bit floating point values, or 64
- * bit floating point values.
- */
-public class BitfieldAccessor 
-{
-  protected int fields;
-  protected int fieldLength;
-  protected BigInteger fieldMask;
-
-  /**
-   * Constructor for an accessor.
-   *
-   * @param fields the number of fields in the integer
-   * @param fieldLength the length of each field
-   */
-  public BitfieldAccessor(int fields, int fieldLength)
-  {
-    this.fields = fields;
-    this.fieldLength = fieldLength;
-    fieldMask = UBigInteger.makeMask(fieldLength);
-  }
-  
-  /**
-   * @return number of fields
-   */
-  public int getFields() 
-  {
-    return fields;
-    
-  }
-  
-  /**
-   * @returns field length
-   */
-  public int getFieldLength() 
-  {
-    return fieldLength;
-  }
-     
-  /**
-   * Returns the unsigned integer value of the field fieldNum in the
-   * integer value. Fields are numbered from the low-order bits of the
-   * integer. 
-   *
-   * @param value the integer to access
-   * @param fieldNum the field
-   * @return the value of the field as an unsigned integer
-   */
-  public BigInteger getIntField(BigInteger value, int fieldNum) 
-  {
-    if (fieldNum >= fields)
-      throw new RuntimeException("invalid field " + fieldNum);
-    return value.shiftRight(fieldNum * fieldLength).and(fieldMask);
-  }
-
-  /**
-   * Returns the single float value of the field fieldNum in the
-   * integer value. Fields are numbered from the low-order bits of the
-   * integer. 
-   *
-   * @param value the integer to access
-   * @param fieldNum the field
-   * @return the value of the field as a float
-   */
-  public float getFloatField(BigInteger value, int fieldNum) 
-  {
-    if (fieldNum >= fields)
-      throw new RuntimeException("invalid field " + fieldNum);
-    return Float.intBitsToFloat(value.shiftRight(fieldNum * fieldLength)
-				.and(fieldMask).intValue());
-  }
-  
-  /**
-   * Returns the double float value of the field fieldNum in the
-   * integer value. Fields are numbered from the low-order bits of the
-   * integer. 
-   *
-   * @param value the integer to access
-   * @param fieldNum the field
-   * @return the value of the field as a double float
-   */
-  public double getDoubleField(BigInteger value, int fieldNum) 
-  {
-    if (fieldNum >= fields)
-      throw new RuntimeException("invalid field " + fieldNum);
-    return Double.longBitsToDouble(value.shiftRight(fieldNum * fieldLength)
-				   .and(fieldMask).longValue());
-  }
-}
diff --git a/frysk-core/frysk/proc/ChangeLog b/frysk-core/frysk/proc/ChangeLog
index 04e02b1..dc82336 100644
--- a/frysk-core/frysk/proc/ChangeLog
+++ b/frysk-core/frysk/proc/ChangeLog
@@ -1,3 +1,15 @@
+2008-01-11  Andrew Cagney  <cagney@redhat.com>
+
+	* TaskObservation.java: Move to frysk.proc.live.
+	* Task.java (handleAddObservation(TaskObserver)): Delete.
+	(handleDeleteObservation(TaskObserver)): Delete.
+
+	* UBigInteger.java: Delete.
+	* BitfieldAccessor.java: Delete.
+	* LongFloat.java: Delete.
+
+	* Task.java (queuedEvents): Delete.
+
 2008-01-10  Phil Muldoon  <pmuldoon@redhat.com>
 
 	* MemoryMap.java (toString): Delete leading space. 
diff --git a/frysk-core/frysk/proc/LongFloat.java b/frysk-core/frysk/proc/LongFloat.java
deleted file mode 100644
index 6729212..0000000
--- a/frysk-core/frysk/proc/LongFloat.java
+++ /dev/null
@@ -1,137 +0,0 @@
-// This file is part of the program FRYSK.
-//
-// Copyright 2006, 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.math.BigInteger;
-
-/** Object representing 80 bit floating point value from x87 registers.
- */
-public class LongFloat 
-{
-  private static long mantissaMask = (1 << 52) - 1;
-  
-  private BigInteger bits;
-  
-  /**
-   * Constructor. Initialize object with the raw floating point bits.
-   * @param bits raw bits
-   */
-  public LongFloat(BigInteger bits) 
-  {
-    this.bits = bits;
-  }
-  
-  /**
-   * Constructor using a double value. Convert the bits in the double
-   * to the corresponding long float bits.
-   *
-   * @param doubleVal double floating point value to convert
-   */
-  public LongFloat(double doubleVal) 
-  {
-    long doubleBits = Double.doubleToLongBits(doubleVal);
-    // Must use long float exponent bias
-    long exponent = (doubleBits >> 52) & 0x7ff - 1023;
-    
-    bits = BigInteger.valueOf(doubleBits & mantissaMask).shiftLeft(12)
-      .or(BigInteger.valueOf(exponent + 16383).shiftLeft(64));
-    if (doubleBits < 0)
-      bits = bits.or(BigInteger.ONE.shiftLeft(79));
-  }
-  
-  /**
-   * Return the bit representation of the long float.
-   *
-   * @return the bits
-   */
-  public BigInteger getBits()
-  {
-    return bits;
-  }
-
-  /**
-   * Return value as a double.
-   *
-   * @return the double value
-   */
-  public double asDouble() 
-  {
-    long exponent = (bits.shiftRight(64).longValue() & 0x7fff) - 16383;
-    if (exponent > 127) 
-      {
-	if (bits.compareTo(BigInteger.ZERO) < 0) 
-	  {
-	    return Double.NEGATIVE_INFINITY;
-	  }
-	else 
-	  {
-	    return Double.POSITIVE_INFINITY;
-	  }
-      }
-    else if (exponent < -128) 
-      {
-	// underflow instead?
-	if (bits.compareTo(BigInteger.ZERO) < 0) 
-	  {
-	    return -0.0;
-	  }
-	else 
-	  {
-	    return 0.0;
-	  }
-      }
-    long doubleBits = bits.shiftRight(12).longValue() & ((1 << 52) -1);
-    doubleBits |= (exponent + 1023) << 52;
-    if (bits.compareTo(BigInteger.ZERO) < 0)
-      doubleBits |= 1 << 63;
-    return Double.longBitsToDouble(doubleBits);
-  }
-}
-
-    
-    
-	
-    
-    
-
-
-  
-
-  
\ No newline at end of file
diff --git a/frysk-core/frysk/proc/Task.java b/frysk-core/frysk/proc/Task.java
index fe2ff2a..a0edca5 100644
--- a/frysk-core/frysk/proc/Task.java
+++ b/frysk-core/frysk/proc/Task.java
@@ -173,18 +173,6 @@ public abstract class Task {
 	this(new TaskId(proc.getPid()), proc, proc.creator);
     }
 
-    protected LinkedList queuedEvents = new LinkedList();
-
-    /**
-     * Add the specified observer to the observable.
-     */
-    protected abstract void handleAddObservation(TaskObservation observation);
-
-    /**
-     * Delete the specified observer from the observable.
-     */
-    protected abstract void handleDeleteObservation(TaskObservation observation);
-
     public class TaskEventObservable extends java.util.Observable {
 	protected void notify(Object o) {
 	    setChanged();
diff --git a/frysk-core/frysk/proc/UBigInteger.java b/frysk-core/frysk/proc/UBigInteger.java
deleted file mode 100644
index 19072da..0000000
--- a/frysk-core/frysk/proc/UBigInteger.java
+++ /dev/null
@@ -1,108 +0,0 @@
-// This file is part of the program FRYSK.
-//
-// Copyright 2006, 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.math.BigInteger;
-
-/**
- * Some utility functions for treating BigIntegers as unsigned integers.
- */
-public class UBigInteger
-{
-  /**
-   * Create a mask i.e., and integer with all bits set, of a specified
-   * length.
-   *
-   * @param integerLength the length of the mask
-   * @return the mask
-   */
-  public static BigInteger makeMask(int integerLength)
-  {
-    return BigInteger.ONE.shiftLeft(integerLength).subtract(BigInteger.ONE);
-  }
-
-  /**
-   * Mask off the lower bits of a BigInteger, replacing the upper bits
-   * with zeros (obviously).
-   *
-   * @param val BigInteger value
-   * @param integerLength length of bits to preserve
-   * @return masked value.
-   */
-  public static BigInteger mask(BigInteger val, int integerLength)
-  {
-    return val.and (makeMask(integerLength));
-  }
-
-  /**
-   * Print the string representation of an unsigned integer.
-   *
-   * @param val the BigInteger holding the unsigned integer
-   * @param integerLength length of unsigned integer
-   * @param radix of output
-   * @return string represntation
-   */
-  public static String toString(BigInteger val, int integerLength, int radix)
-  {
-    return mask(val, integerLength).toString(radix);
-  }
-
-  /**
-   * Treat the MSB of an unsigned integer stored in a BigInteger as a
-   * sign bit and return a positive or negative BigInteger as
-   * appropriate.
-   *
-   * @param val the BigInteger value
-   * @param integerLength length of unsigned integer, or 1 plus bit
-   *   position of sign bit.
-   * @return new integer with proper sign.
-   */
-  public static BigInteger signExtend(BigInteger val, int integerLength)
-  {
-    if (val.testBit(integerLength - 1))
-      {
-	return val.or(makeMask(integerLength).not());
-      }
-    else
-      {
-	return val;
-      }
-  }
-}
\ No newline at end of file
diff --git a/frysk-core/frysk/proc/dead/ChangeLog b/frysk-core/frysk/proc/dead/ChangeLog
index 8d0ed30..23869f9 100644
--- a/frysk-core/frysk/proc/dead/ChangeLog
+++ b/frysk-core/frysk/proc/dead/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-11  Andrew Cagney  <cagney@redhat.com>
+
+	* DeadTask.java (handleAddObservation(TaskObservation))
+	(handleDeleteObservation(TaskObservation)): Delete.
+
 2008-01-11  Phil Muldoon  <pmuldoon@redhat.com>
 
 	* DeadProc.java (DeadProc): Make public.
diff --git a/frysk-core/frysk/proc/dead/DeadTask.java b/frysk-core/frysk/proc/dead/DeadTask.java
index 46ec9f0..fb56d8a 100644
--- a/frysk-core/frysk/proc/dead/DeadTask.java
+++ b/frysk-core/frysk/proc/dead/DeadTask.java
@@ -44,7 +44,6 @@ import frysk.proc.Task;
 import frysk.proc.Proc;
 import frysk.proc.TaskId;
 import frysk.proc.TaskObserver;
-import frysk.proc.TaskObservation;
 
 /**
  * A dead Host/Proc/Task is characterised by its lack of state, and an
@@ -62,20 +61,6 @@ abstract class DeadTask extends Task {
     }
 
     /**
-     * (Internal) Add the specified observer to the observable.
-     */
-    protected void handleAddObservation(TaskObservation observation) {
-	throw new RuntimeException("oops!");
-    }
-
-    /**
-     * (Internal) Delete the specified observer from the observable.
-     */
-    protected void handleDeleteObservation(TaskObservation observation) {
-	throw new RuntimeException("oops!");
-    }
-
-    /**
      * Request that the observer be removed from this tasks set of
      * blockers; once there are no blocking observers, this task
      * resumes.
diff --git a/frysk-core/frysk/proc/dummy/ChangeLog b/frysk-core/frysk/proc/dummy/ChangeLog
index f35e624..cec9331 100644
--- a/frysk-core/frysk/proc/dummy/ChangeLog
+++ b/frysk-core/frysk/proc/dummy/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-11  Andrew Cagney  <cagney@redhat.com>
+
+	* DummyTask.java (handleAddObservation(TaskObservation))
+	(handleDeleteObservation(TaskObservation)): Delete.
+	* DummyProc.java (handleAddObservation(TaskObservation)): Delete.
+


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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-11 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-11 19:01 [SCM] master: Move TaskObservation and TaskObservable to frysk.proc.live cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).