[dtrace-discuss] dtrace wired issue

max at bruningsystems.com
Tue, 15 Jan 2008 07:06:19 -0000

Hi Aubrey,
Aubrey Li wrote:
> Sorry for the delay(time difference). Now I got more details.
> # truss dtrace -l
> ----snip----
> mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF180000
> mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFFFFFD7FFF170000
> munmap(0xFFFFFD7FFF380000, 32768)               = 0
> getcontext(0xFFFFFD7FFFDFE9D0)
> mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_ANON|MAP_ALIGN, 4294967295, 0) = 0xFFFFFD7FFF150000
> getrlimit(RLIMIT_STACK, 0xFFFFFD7FFFDFED30)     = 0
> getpid()                                        = 923 [922]
> lwp_private(0, 0, 0xFFFFFD7FFF150200)           = 0x00000000
> setustack(0xFFFFFD7FFF1502A8)
> sysconfig(_CONFIG_PAGESIZE)                     = 4096
> sigfillset(0xFFFFFD7FFF006880)                  = 0
> brk(0x0041B580)                                 = 0
> brk(0x0041F580)                                 = 0
> getrlimit(RLIMIT_NOFILE, 0xFFFFFD7FFFDFEE80)    = 0
> setrlimit(RLIMIT_NOFILE, 0xFFFFFD7FFFDFEE80)    = 0
> openat(AT_FDCWD, "/dev/dtrace/provider",
O_RDONLY|O_NDELAY|O_LARGEFILE) = 3
> fcntl(3, F_SETFD, 0x00000001)                   = 0
> fstat(3, 0xFFFFFD7FFFDFE8E0)                    = 0
> getdents(3, 0xFFFFFD7FFF174000, 8192) (sleeping...)
> -----------here, dtrace sleep almost 4 minutes--------
> ...and continue...
>
>
>
So, it''s probably something obvious that I''m not seeing...
What happens
if you try
tracing all calls made via getdents for dtrace itself, and do this
instead of dtrace -l for the first
time you run dtrace?

max

> Any thoughts?
>
> Thanks,
> -Aubrey
>
>