top(1) stopped working on -current

Giorgos Keramidas keramida at FreeBSD.org
Thu Apr 27 14:18:03 UTC 2006


On 2006-04-27 17:13, Giorgos Keramidas <keramida at FreeBSD.org> wrote:
> # --- src/sys/kern/sched_4bsd.c   (revision 19)
> # +++ src/sys/kern/sched_4bsd.c   (working copy)
> # @@ -31,11 +31,11 @@
> #   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
> #   * SUCH DAMAGE.
> #   */
> #
> #  #include <sys/cdefs.h>
> # -__FBSDID("$FreeBSD: src/sys/kern/sched_4bsd.c,v 1.78 2006/04/17 18:20:37 jhb Exp $");
> # +__FBSDID("$FreeBSD: src/sys/kern/sched_4bsd.c,v 1.79 2006/04/26 19:42:38 jmg Exp $");
> #
> # [...]
>
> The main problems with this change are:
>
>     1) It doesn't update consumers of the kern.ccpu sysctl that we
>        already have in the tree (i.e. top(1) which you saw breaking).

FWIW, the current consumers of `kern.ccpu' are:

giorgos at gothmog:~/ws/bsd/src$ fgrep -r kern.ccpu .
./bin/ps/nlist.c:       if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) == -1)
./usr.bin/systat/pigs.c:        err = sysctlbyname("kern.ccpu", &ccpu, &len, NULL, 0);
./usr.bin/systat/pigs.c:                perror("kern.ccpu");
./usr.bin/top/machine.c:        GETSYSCTL("kern.ccpu", ccpu);
./usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c: if (sysctlbyname("kern.ccpu", &ccpu, &len, NULL, 0) == -1) {
./usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c:         syslog(LOG_ERR, "hrProcessorTable: sysctl(kern.ccpu) failed");
giorgos at gothmog:~/ws/bsd/src$

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060427/c9dd5f2b/attachment.pgp


More information about the freebsd-current mailing list