Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jun 2012 11:50:37 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        src-committers@freebsd.org
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org
Subject:   Re: svn commit: r236404 - head/sys/kern
Message-ID:  <201206011150.37410.jhb@freebsd.org>
In-Reply-To: <201206011542.q51FgbQc027811@svn.freebsd.org>
References:  <201206011542.q51FgbQc027811@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, June 01, 2012 11:42:37 am John Baldwin wrote:
> Author: jhb
> Date: Fri Jun  1 15:42:37 2012
> New Revision: 236404
> URL: http://svn.freebsd.org/changeset/base/236404
> 
> Log:
>   Extend VERBOSE_SYSINIT to also print out the name of variables passed
>   to SYSINIT routines if they can be resolved via symbol look up in DDB.
>   To avoid false positives, only honor a name if the symbol resolves
>   exactly to the pointer value (no offset).
>   
>   MFC after:	1 week

Some sample output:

subsystem e000000                                                               
   kick_init(0)... done.                                                        
   kstack_cache_init(0)... done.                                                
subsystem e400000                                                               
   kproc_start(&page_kp)... done.                                               
subsystem e800000                                                               
   kproc_start(&vm_kp)... done.                                                 
   pagezero_start(0)... done.                                                   
subsystem ea00000                                                               
   kproc_start(&buf_kp)... done.                                                
subsystem ec00000                                                               
   kproc_start(&up_kp)... done.                                                 
   kproc_start(&vnlru_kp)... done.                                              
   kproc_start(&softdep_kp)... done.

SDT initialization uses some really long names:

   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_ok4)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_ok3)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_ok2)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_ok1)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_ok0)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_cred_check_setresgid_mac_check_err2)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_err4)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_err3)... 
done.
   sdt_argtype_register(&sdt_mac_framework_kernel_vnode_check_deleteextattr_mac_check_err2)... 
done.

etc.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206011150.37410.jhb>