From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,63498a6851548bfe X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-12-16 02:49:32 PST Path: nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!mailer.acns.fsu.edu!gatech!swiss.ans.net!btco!btco2!newsadm From: avents@btco.com (Todd Aven) Newsgroups: comp.unix.osf.osf1 Subject: Re: top or syd under Alpha OSF/1 3.0 Date: 16 Dec 1994 10:49:32 GMT Organization: Bankers Trust Company Message-ID: <3crrbs$jp0@LNCSEX0000.eu.btco.com> References: NNTP-Posting-Host: lncsea0001.eu.btco.com X-Newsreader: AIR News 3.X (SPRY, Inc.) > niles@axp745.gsfc.nasa.gov (Frederick (Rick) A Niles) writes: > I got that patch the made top and syd work under OSF/1 2.0, but > it doesn't seem to work quite right under OSF/1 3.0. While the > the CPU usage is displayed, none of the processes are actually > listed. Has anyone made a patch or gotten top to work with OSF/1 > 3.0? > > Reply to this newsgroup and/or: niles@axp745.gsfc.nasa.gov > > Thanks, > Rick Niles. > >>>> I managed to find the right changes to get TOP working under OSF/1 v3.0. The only thing I couldn't cure was the 'last pid' information at the top left of the display, so I set it to zero. Following are the fragments from top-3.3beta+alpha/machine/m_decosf1.c where I made the changes. Regards, Todd Aven avents@btco.com -------- change #1 ---------------- static struct nlist nlst[] = { /* { "_mpid" }, /* 0 */ { "_Xunix_pid" }, { 0 } }; ---------- change #2 --------------- /* last pid assigned */ /* Forget last_pid... it isn't at this offset and I don't * know where to look. */ /* (void) getkval(mpid_offset, * &(si->last_pid), * sizeof(si->last_pid), * "_mpid"); */ si->last_pid = 0; /* A reasonable lie */