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[10060]?
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.
Cheers,
Nikola_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"