Need help for debugging libkse
Daniel Eischen
deischen at freebsd.org
Fri Sep 17 05:32:06 PDT 2004
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
More information about the freebsd-threads
mailing list