Path: utzoo!utgpu!cunews!bnrgate!brtph3!brchh104!date '+%m/%d/%y %H:%M:%S'brchs1!bnr.ca!rice.edu!sun-spots-request From: thakur@zerkalo.harvard.edu (Manavendra K. Thakur) Newsgroups: comp.sys.sun Subject: Apply this patch to hatstat.c after installing the PMEG patch Keywords: Source Message-ID: <425@brchh104.bnr.ca> Date: 26 Nov 90 17:30:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 42 Approved: Sun-Spots@rice.edu X-Original-Date: Fri, 09 Nov 90 18:43:54 EST X-Sun-Spots-Digest: Volume 9, Issue 364, message 13 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu [Sun-spots readers: hatstat is a program Sun is sending out for sites wishing to test whether they need the PMEG patches or not. Apparently, just about everyone needs the PMEG patches!] >>>>> On Fri, 9 Nov 90 14:03:05 GMT, Tim Gibbs said: > Note that hatstat won't work once the PMEG patches are in place in > the kernel. You'll get '_hatcnt' missing from name list.' You can modify one line in hatstat.c and it will continue to work after you install the pmeg patches. Here is the patch: *** hatstat.c Fri Nov 9 18:02:49 1990 --- hat41.c Fri Nov 9 18:31:40 1990 *************** *** 27,31 **** struct nlist nl[] = { #define N_HATCNT 0 ! { "_hatcnt" }, #define N_PMGRPFREE 1 { "_pmgrpfree" }, --- 27,31 ---- struct nlist nl[] = { #define N_HATCNT 0 ! { "_cnt" }, #define N_PMGRPFREE 1 { "_pmgrpfree" }, Apparently, the _hatcnt function has been renamed as _cnt in the vm_hat.o that comes with the pmeg patches. Note that I don't have SunOS 4.1.1 sources, so I can't really verify this. I just ran strings on the kernel modules and grepped around a bit. But after applying the patch above and recompiling, the hatstat program continues to run. Hope this helps. Manavendra K. Thakur Internet: thakur@zerkalo.harvard.edu System Manager, High Energy Division BITNET: thakur@cfa.BITNET Harvard-Smithsonian Center for DECNET: CFA::thakur Astrophysics UUCP: ...!uunet!mit-eddie!thakur