Problem with LOCK_PROFILING stats in 7.2
laladelausanne at gmail.com
Mon May 25 12:34:14 UTC 2009
On 05.22.2009, at 14:21 , Nikola Knežević wrote:
> I'm using LOCK_PROFILING to, well, profile some locks in the module
> I'm working on. I also have INVARIANTS turned on. Numbers I'm
> getting look correct, however, name of the lock is strange (for some
> of the locks I'm using):
> 25725 51777294 10979957 7331938 7 1
> 408303 896814 /home/knl/work/mx/click/bsdmodule/..//include/
> click/sync.hh:395 (sleep mutex:?? ?????Yf;??????? ??????:?????)
> Why am I getting this instead of lock's real name: MasterLock?
To reply to myself :)
mtx_init & co. expects the name to be persistent during the whole run.
So, never pass values from the stack to it, as I did.
More information about the freebsd-questions