[comp.sys.sgi] Where is the U area.

amoss@SHUM.HUJI.AC.IL (Amos Shapira) (10/19/90)

Hello,
 I'm considering porting top(1) to Iris, and from looking at
 the work of a local guru who did a port for SunOS I saw that I'll have
 to find the U area of each process.

 Now, where is it? I think that knowing the virtual address will
 be a good start, but any further info (like how to read the U area
 through the proc structure) will be welcomed.

 Please e-mail responses.

Thanks,
Amos Shapira
amoss@batata.huji.ac.il

vjs@rhyolite.wpd.sgi.com (Vernon Schryver) (10/21/90)

In article <amoss.656333282@shum>, amoss@SHUM.HUJI.AC.IL (Amos Shapira) writes:
>  I'm considering porting top(1) to Iris, ..

It appears that top(1) is in 3.3.


vjs

olson@anchor.esd.sgi.com (Dave Olson) (10/22/90)

In <amoss.656333282@shum> amoss@SHUM.HUJI.AC.IL (Amos Shapira) writes:
|  I'm considering porting top(1) to Iris, and from looking at
|  the work of a local guru who did a port for SunOS I saw that I'll have
|  to find the U area of each process.
| 
|  Now, where is it? I think that knowing the virtual address will
|  be a good start, but any further info (like how to read the U area
|  through the proc structure) will be welcomed.

The virtual u-area address won't help, you would need to track down
the physical address, since the virtual address is the same for all
processes.

However, if you try 'man syssgi', look at SGI_RDUBLK, which should
give you everything you want.  Of course, since the u-struct often
changes in each release, you many need to re-compile when you get
a new release of IRIX.

As Vernon mentioned, top is already a part of IRIX 3.3.
--

	Dave Olson

Life would be so much easier if we could just look at the source code.

schuman@sgi.com (Aaron Schuman) (10/23/90)

You might also be interested in gr_top(1), which is also in 3.3.
It gives the same information as top(1), but it looks prettier
and it's easy to read.
					Aaron


.............................................................................
Aaron Schuman     415-335-1901     schuman@sgi.com     Silicon Graphics, Inc.

macferrin@slsvax.harvard.edu (Kurtis MacFerrin) (10/31/90)

In article <amoss.656333282@shum>, amoss@SHUM.HUJI.AC.IL (Amos Shapira) writes...
> I'm considering porting top(1) to Iris, and from looking at
>Amos Shapira
>amoss@batata.huji.ac.il

	It's in irix 3.3.1, so it may be easier for you just to get the upgrade,
or to copy the binary from someone else who has it and see if it works for you.


Kurtis MacFerrin	macferrin@slsvax.harvard.edu