From owner-freebsd-hackers Sun Jul 5 10:10:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA25650 for freebsd-hackers-outgoing; Sun, 5 Jul 1998 10:10:39 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles333.castles.com [208.214.167.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA22999 for ; Sun, 5 Jul 1998 10:10:31 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id JAA05317; Sun, 5 Jul 1998 09:42:56 -0700 (PDT) Message-Id: <199807051642.JAA05317@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Willem Jan Withagen cc: hackers@FreeBSD.ORG Subject: Re: adding to sysctl env. In-reply-to: Your message of "Sun, 05 Jul 1998 00:15:22 +0200." <199807042215.AAA00277@hobby.digiware.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 05 Jul 1998 09:42:56 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, > > I'm trying to add things to the sysctl environment, and I thought to take > a simple step first: > make a debug.switch for the vlink module. > So I added: > ---- > /* > * For the vlink module debugging > */ > static int vlinkxlatedebug = 0; > SYSCTL_INT(_debug, OID_AUTO, vlinkxlate, CTLFLAG_RW, &vlinkxlatedebug, 0, > ""); > ---- > expecting to see it apear in my sysctl -a output. > > But guess what: I didn't. :-{ It should have. Make sure that the source file is actually being built as part of the kernel. You could be more paranoid and remove the 'static', then try # nm /kernel | grep vlinkxlate in order to make sure that the symbol is present in the running kernel. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message