Date: Tue, 21 Oct 2008 20:30:33 +0400 From: pluknet <pluknet@gmail.com> To: "Jaakko Heinonen" <jh@saunalahti.fi> Cc: stable@freebsd.org, V??clav Haisman <v.haisman@sh.cvut.cz>, current@freebsd.org, Edwin Groothuis <edwin@freebsd.org> Subject: Re: Request for testing - top 3.8b1 in the base system Message-ID: <a31046fc0810210930nf28f84bv5cacb75b4102b252@mail.gmail.com> In-Reply-To: <20080929094919.GA6642@a91-153-122-179.elisa-laajakaista.fi> References: <20080928054620.GA80250@k7.mavetju> <48DF4FCA.4070403@sh.cvut.cz> <20080928115401.GU3210@k7.mavetju> <20080929094919.GA6642@a91-153-122-179.elisa-laajakaista.fi>
next in thread | previous in thread | raw e-mail | index | archive | help
2008/9/29 Jaakko Heinonen <jh@saunalahti.fi>: > On 2008-09-28, Edwin Groothuis wrote: >> > Swap: 3000M Total, 181M Used, 2819M Free, 6% Inuse >> > sysctlnametomib: No such file or directory >> > >> > And no processes. >> >> I didn't expect it not to work on 6.x, I will play around with it >> tomorrow to see if it makes sense. > > According to svn log kern.cp_times sysctl was added in r174070 and MFCd > after 6.3/7.0 release. > As a simple workaround: Index: top/freebsd-top-3.8b1-A/usr.bin/top/machine.c =================================================================== --- top/freebsd-top-3.8b1-A/usr.bin/top/machine.c (revision 5702) +++ top/freebsd-top-3.8b1-A/usr.bin/top/machine.c (working copy) @@ -513,6 +513,12 @@ while (mp->name != NULL) { len = MAXMIBLEN; +#if __FreeBSD_version < 604000 + if (!strcmp(mp->name, "kern.cp_times")) { + mp++; + continue; + } +#endif if (sysctlnametomib(mp->name, mp->mib, &len) == -1) { message_error(" sysctlnametomib: %s", strerror(errno)); -- wbr, pluknet _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a31046fc0810210930nf28f84bv5cacb75b4102b252>