Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: rtwn_debug
To:
jon@elytron.openbsd.amsterdam
Cc:
tech@openbsd.org, kirill@korins.ky
Date:
Thu, 15 May 2025 13:26:34 +0100

Download raw body.

Thread
  • jon@elytron.openbsd.amsterdam:

    rtwn_debug

    • Stuart Henderson:

      rtwn_debug

On 2025/05/13 00:46, jon@elytron.openbsd.amsterdam wrote:
> Hello everyone. I was looking around and it seems like at the moment,
> enabling "option RTWN_DEBUG" in the kernel config is pretty much
> useless since the controlling variable in dev/ic/rtwn.c (rtwn_debug)
> is set to 0 anyways.

that's not particularly unusual. one common paradigm with these is
that you can build a kernel with debugging enabled and then when you
actually want to use it you break into ddb, 'w rtwn_debug 1', 'c'

$ cat /sys/dev/{pci,usb}/*c | grep -c '_debug = 0;'
15
$ cat /sys/dev/{pci,usb}/*c | grep -c '_debug = 1;'
11