Date: Fri, 17 Sep 2004 08:32:04 -0400 (EDT) From: Daniel Eischen <deischen@freebsd.org> To: Andrew Belashov <bel@orel.ru> Cc: freebsd-threads@freebsd.org Subject: Re: Need help for debugging libkse Message-ID: <Pine.GSO.4.43.0409170827080.29249-100000@sea.ntplx.net> In-Reply-To: <414AD11D.5000403@orel.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Sep 2004, Andrew Belashov wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, All! > > I'm debugging libkse library for FreeBSD/sparc64. > > Please, explain for me this ktrace dump: > > ======================================================== > ~ 7877 ss CALL kse_create(0x26a000,0) > ~ 7877 ss RET kse_create 0 > ~ 7877 ss CALL write(0x1,0x7fdffffdc68,0x1) > ~ 7877 ss RET write 2531328/0x26a000 > ~ ^^^^^^^^^^^^^^^^ That is an upcall. The kse_mailbox is being returned (same as in the first kse_create()). > ~ 7877 ss CALL kse_switchin(0x270440,0x1) This resumes the thread after it has become unblocked. > ~ 7877 ss RET kse_switchin JUSTRETURN > ~ 7877 ss CALL write(0x1,0x7fdffffdc68,0x1) > ~ 7877 ss RET write 1 > ~ 7877 ss CALL write(0x1,0x7fdffffdc68,0x1) > ~ 7877 ss RET write 1 > ======================================================== > > This is normal? > writing one byte, but write(2) return 0x26a000. It looks normal but it would be nice if "write 2531328/0x26a000" were labeled "kse_create 0x26a000" or something more appropriate. -- Dan Eischen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0409170827080.29249-100000>