Subject: Re: PR 36963
To: Jordan Gordeev <jgordeev@dir.bg>
From: Jan Danielsson <jan.m.danielsson@gmail.com>
List: tech-kern
Date: 09/19/2007 14:26:11
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Jordan Gordeev wrote:
[---]
> One good way to collect more information would be to use ktrace or truss.
I have done that for "ls" a while ago (check the PR). But the log was
too long for the working version, so I simply cut the log just after
where the logs differ (and it seems relevant). From the PR:
- ------------------
Lines 40 and 92 (and below) differ.
Line 39-40, when ls fails:
24778 1 ls CALL ioctl(1,TIOCGETA,0x7f7fffffecc0)
24778 1 ls GIO fd 1 read 44 bytes
"\^F#\0\0\^C\0\0\0\0\v\0\0\M-O\^E\0
\^D\M^?\M^?\^?\^W\^U\^R\M^?\^C\^\\^Z\^Y\^Q\^S\^V\^O\^A\0\^T\M^?\0\M^V\0\0\0\M^V\0\0"
Line 39-40, when ls succeeds:
959 1 ls CALL ioctl(1,TIOCGETA,0x7f7fffffecc0)
959 1 ls GIO fd 1 read 44 bytes
"\^B+\0\0\^C\0\0\0\0K\0\0\M-K\^E\0
\^D\M^?\M^?\^?\^W\^U\^R\M^?\^C\^\\^Z\^Y\^Q\^S\^V\^O\^A\0\^T\M^?\M^@%\0\0\M^@%\0\
Line 92, when ls fails:
24778 1 ls CALL fstatvfs1(5,0x7f7fffffe270,2)
24778 1 ls RET fstatvfs1 -1 errno 13 Permission denied
Line 92, when ls succeeds:
959 1 ls CALL fstatvfs1(5,0x7f7fffffe270,2)
959 1 ls RET fstatvfs1 0
- ------------------
Any special flags I should be feeding ktrace with to get more/better
information?
- --
Kind regards,
Jan Danielsson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
iD8DBQFG8RViuPlHKFfKXTYRCqQOAJwIFfQf+9/5+XsFYoG6C8IBKtIPSwCgjZvb
KCJTUK6M8uBtOEXFLFSHOeE=
=dqoG
-----END PGP SIGNATURE-----