Subject: Re: Show sysctl activity in ktrace
To: Emmanuel Dreyfus <manu@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
Date: 09/20/2006 22:22:41
On Wed, Sep 20, 2006 at 10:59:41PM +0200, Emmanuel Dreyfus wrote:
> Hello
> 
> ktrace tends to be useless when dealing with sysctl calls. I made a patch
> that traces sysctl activity, like this:
> 
>    108      1 sysctl   CALL  __sysctl(0xbfbfecb0,3,0xbfbfdad0,
> 0xbfbfdacc,0,0)
>    108      1 sysctl   MIB   1.1118.1120
>    108      1 sysctl   GIO   read 7 bytes
>        "amdpm0\0"
>    108      1 sysctl   RET   __sysctl 0
> 
> Or, with a write operation:
>    303      1 sysctl   CALL  __sysctl(0xbfbfec30,3,0xbfbfebf0,
> 0xbfbfebd4,0xbfbfebec,4)
>    303      1 sysctl   MIB   10.764.4
>    303      1 sysctl   GIO   read 4 bytes
>        "\0\0\0\0"
>    303      1 sysctl   GIO   wrote 4 bytes
>        "\0\0\0\0"
>    303      1 sysctl   RET   __sysctl 0

What happens if you ktrace ps ?

	David

-- 
David Laight: david@l8s.co.uk