SMP version of procps-1.2.8

German Jose Gomez Garcia (mat006@pinon.ccu.uniovi.es)
Wed, 17 Jun 1998 02:09:07 +0200 (METDST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--711056172-851401618-898042147=:4022
Content-Type: TEXT/PLAIN; charset=US-ASCII

I had already posted (long time ago) a patch to make procps-1.2.5 SMP
aware, this is a new version (written from scratch, because I lost the
original :( in less than an hour (as I need to upgrade to 1.2.8), I think it
is secure and introduces no bugs, but as I have a dual processor system I
cannot test it with those 16 processors systems :), so please would anybody
with a 4 (or more) processor system test it?, I will send it to procps
developers as soon as I am sure it works.

About the patch (against procps-1.2.8):

I have only make top SMP aware, but it should not be difficult made
other utils SMP aware too. I have modified a bit libproc (readproc.c and
readproc.h) and a bit more top.c and top.h. You have now a -D__SMP__ in
CFLAGS (I use -D__SMP__ beacuse of linux/include/tasks.h), if you use it
you would have a SMP aware top, if you disable it (both in ./Makefile and
./proc/Makefile) you should get the procps-1.2.8 version), at runtime you
can toggle SMP info with 'g' (no help for this yet).

Thanks, and please report any bug to me directly, people in the
kernel list don't bother about those things :)

<>-------------------------------------+-----------------------------------<>
One O.S. to rule them all, | German Gomez Garcia
One O.S. to find them. | mat006@pinon.ccu.uniovi.es
One O.S. to bring them all |
and in the darkness bind them. | "Wur Qanar Wur Stilor Wur Kas"
<>-------------------------------------+-----------------------------------<>

--711056172-851401618-898042147=:4022
Content-Type: APPLICATION/octet-stream; name="procps-1.2.8b.diff.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.HPP.3.91.980617020907.4022B@pinon.ccu.uniovi.es>
Content-Description:

H4sICP4DhzUAA3Byb2Nwcy0xLjIuOGIuZGlmZgClWmt32kgS/Yx/RRmPx2Ae
RuA3STYebCfe9esYsp5NJocjhADFQtKoJTueOfnvW1XdeiGBPTOcxKB+VHdX
3bpV3a2xNZlAw78OwfNdwxMNrdluHu5c6Q/mxLLNTOko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JMdJdnY27X
RF39H2N3ry8mLgAA
--711056172-851401618-898042147=:4022--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu