Subject: Re: Debugging UVM
To: blue horn <>
From: Julio M. Merino Vidal <>
List: tech-kern
Date: 06/19/2006 19:02:30
On 6/19/06, blue horn <> wrote:
> Hi,
>       I would like to print some messages to
> /var/log/message file when certain events are being
> fired inside the uvm. So, I created a vanilla kernel
> with  "options   UVMHIST".
> If I enable "options  UVMHIST_PRINT", then all the
> messages from the uvm starts printing; but I'm never
> able to login since the booting is not complete (as I
> understand).

Hmm, you see a lot of green messages but not the login prompt?  If
that's the case, it probably does not matter.  The login prompt just
scrolled out of the screen; blindly type your username and password
and you should be able to log in, although in a quite unusable console
if the amount of messages is huge.

You can try to switch to the second virtual console and work from that.

> So, my question is: How do I enable debugging the uvm
> (only my portion) by printing out messages to
> /var/log/messages? Is there something simiar to
> "printk" (as in Linux) in NetBSD?

I think you can do that by tuning your syslog.conf file and telling it
not to redirect kernel messages to the console.  The default
configuration sends them to /var/log/messages too.


Julio M. Merino Vidal <>
The Julipedia -