userland dtrace tools not working in jail

Artem Belevich art at freebsd.org
Thu Jul 21 16:36:55 UTC 2011


On Thu, Jul 21, 2011 at 5:37 AM, Subbsd <subbsd at gmail.com> wrote:
> Hi
>
> I try to use dtrace in jail on FreeBSD-9-64.
> Kernel have options:
> ---
> include GENERIC
> ident           GENERIC-DTRACE
> options KDTRACE_FRAME           # Ensure frames are compiled in
> options KDTRACE_HOOKS           # Kernel DTrace hooks
> options DDB_CTF              # all architectures - kernel ELF linker
> loads CTF data
> options KDTRACE_FRAME        # amd64 - ensure frames are compiled in
> makeoptions WITH_CTF=1
> ---
>
> All world compiling with WITH_CTF=1 KNOBS. And dtraccing works fine in
> 'master' hosts
> When i try use it in chrooted environment (getting by installworld
> DESTDIR="diffrence path" from WITH_CTF=1 objects) it doesn't work.
>
> After
> make -C /usr/src installworld distribution DESTDIR="/usr/a":
>
> bsd# mount - t devfs devfs /usr/a/dev    (dtrace used /dev/dtrace/*
> special files)
> bsd# dtrace -l |wc -l
>   42300
> bsd# chroot /usr/a dtrace -l |wc -l
>   42300
>
> bsd# dtrace -n 'syscall:::entry { @sc[execname, probefunc] = count(); }'
> ^C
> (...)
>
> bsd# chroot /usr/a dtrace -n 'syscall:::entry { @sc[execname,
> probefunc] = count(); }'
> dtrace: invalid probe specifier syscall:::entry { @sc[execname,
> probefunc] = count(); }: "/usr/lib/dtrace/psinfo.d", line 37: syntax
> error near "uid_t"
>
>
> getpid()                                         = 2786 (0xae2)
> __sysctl(0x7fffffffd2d0,0x2,0x800a72a80,0x7fffffffd2d8,0x0,0x0) = 0 (0x0)
> __sysctl(0x7fffffffd1e0,0x2,0x7fffffffd220,0x7fffffffd288,0x800863e10,0xd)
> = 0 (0x0)
> __sysctl(0x7fffffffd220,0x3,0x800a71968,0x7fffffffd2d8,0x0,0x0) = 0 (0x0)
> readlink("/etc/malloc.conf",0x7fffffffcdc0,1024) ERR#2 'No such file
> or directory'
> issetugid(0x801a58801,0x7fffffffcdc0,0x0,0x2,0x7fffffffcdc0,0x0) = 0 (0x0)
> break(0x800000)                                  = 0 (0x0)
> mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
> 34389770240 (0x801ca4000)
> mmap(0x8020a4000,3522560,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0)
> = 34393964544 (0x8020a4000)
> munmap(0x801ca4000,3522560)                      = 0 (0x0)
> thr_self(0x802007400,0x0,0x0,0x0,0x40,0x7fffffffc8c0) = 0 (0x0)
> mmap(0x7fffffbfe000,4096,PROT_NONE,MAP_ANON,-1,0x0) = 140737484152832
> (0x7fffffbfe000)
> rtprio_thread(0x0,0x18735,0x7fffffffd290,0x1000,0xffffffff,0x0) = 0 (0x0)
> sysarch(0x81,0x7fffffffd2b8,0x800a71540,0x800a718e0,0xffffffff,0x0) = 0 (0x0)
> sigaction(32,{ 0x80085d290 SA_SIGINFO ss_t },0x0) = 0 (0x0)
> sigprocmask(SIG_UNBLOCK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> getrlimit(RLIMIT_NOFILE,{ cur=11095,max=11095 }) = 0 (0x0)
> setrlimit(RLIMIT_NOFILE,{ cur=11095,max=11095 }) = 0 (0x0)
> __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad6158,0x16)
> = 0 (0x0)
> __sysctl(0x7fffffffd1d0,0x3,0x0,0x7fffffffd358,0x0,0x0) = 0 (0x0)
> __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad6158,0x16)
> = 0 (0x0)
> __sysctl(0x7fffffffd1d0,0x3,0x80203b080,0x7fffffffd358,0x0,0x0) = 0 (0x0)
> open("/dev/dtrace/dtrace",O_RDONLY,00)           = 3 (0x3)
> open("/dev/dtrace/profile",O_RDONLY,00)          = 4 (0x4)
> open("/dev/dtrace/syscall",O_RDONLY,00)          ERR#2 'No such file
> or directory'
> open("/dev/dtrace/syscall",O_RDONLY,00)          ERR#2 'No such file
> or directory'
> open("/dev/dtrace/vfs",O_RDONLY,00)              ERR#2 'No such file
> or directory'
> open("/dev/dtrace/sctp",O_RDONLY,00)             ERR#2 'No such file
> or directory'
> open("/dev/dtrace/callout_execute",O_RDONLY,00)  ERR#2 'No such file
> or directory'
> open("/dev/dtrace/proc",O_RDONLY,00)             ERR#2 'No such file
> or directory'
> open("/dev/dtrace/mac",O_RDONLY,00)              ERR#2 'No such file
> or directory'
> open("/dev/dtrace/mac_framework",O_RDONLY,00)    ERR#2 'No such file
> or directory'
> open("/dev/dtrace/priv",O_RDONLY,00)             ERR#2 'No such file
> or directory'
> open("/dev/dtrace/lockstat",O_RDONLY,00)         = 5 (0x5)
> open("/dev/dtrace/dtmalloc",O_RDONLY,00)         = 6 (0x6)
> open("/dev/dtrace/fbt",O_RDONLY,00)              = 7 (0x7)
> open("/dev/dtrace/nfsclient",O_RDONLY,00)        ERR#2 'No such file
> or directory'
> open("/dev/dtrace/nfscl",O_RDONLY,00)            ERR#2 'No such file
> or directory'
> open("/dev/dtrace/dtrace",O_RDWR,00)             = 8 (0x8)
> open("/dev/dtrace/fasttrap",O_RDWR,00)           = 9 (0x9)
> close(7)                                         = 0 (0x0)
> close(6)                                         = 0 (0x0)
> close(5)                                         = 0 (0x0)
> close(4)                                         = 0 (0x0)
> close(3)                                         = 0 (0x0)
> fcntl(8,F_SETFD,FD_CLOEXEC)                      = 0 (0x0)
> fcntl(9,F_SETFD,FD_CLOEXEC)                      = 0 (0x0)
> __sysctl(0x7fffffffd230,0x2,0x802041b70,0x7fffffffd228,0x0,0x0) = 0 (0x0)
> __sysctl(0x7fffffffd230,0x2,0x802041c70,0x7fffffffd228,0x0,0x0) = 0 (0x0)
> __sysctl(0x7fffffffd230,0x2,0x802041d70,0x7fffffffd228,0x0,0x0) = 0 (0x0)
> __sysctl(0x7fffffffd230,0x2,0x802041e70,0x7fffffffd228,0x0,0x0) = 0 (0x0)
> __sysctl(0x7fffffffd230,0x2,0x802041f70,0x7fffffffd228,0x0,0x0) = 0 (0x0)
> ioctl(8,0x4030780a { IOR 0x78('x'), 10, 48 },0x2041010) = 0 (0x0)
> __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad61c4,0xd)
> = 0 (0x0)
> __sysctl(0x7fffffffd1d0,0x2,0x7fffffffd370,0x7fffffffd358,0x0,0x0) = 0 (0x0)
> kldnext(0)                                       = 1 (0x1)
> kldstat(1,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/kernel",O_RDONLY,00)          ERR#2 'No such file
> or directory'

Here's your problem ^^^.

dtrace extracts CTF information from the binaries. In case of kernel
probes, that would be the kernel itself and loadable modules. All that
stuff lives in /boot and is not accessible from your jail.

--Artem


> stat("/usr/share/nls/C/libc.cat",0x7fffffffbb30) ERR#2 'No such file
> or directory'
> stat("/usr/share/nls/libc/C",0x7fffffffbb30)     ERR#2 'No such file
> or directory'
> stat("/usr/local/share/nls/C/libc.cat",0x7fffffffbb30) ERR#2 'No such
> file or directory'
> stat("/usr/local/share/nls/libc/C",0x7fffffffbb30) ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(1)                                       = 2 (0x2)
> kldstat(2,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/geom_mirror.ko",O_RDONLY,00)  ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(2)                                       = 3 (0x3)
> kldstat(3,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/accf_data.ko",O_RDONLY,00)    ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(3)                                       = 4 (0x4)
> kldstat(4,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/accf_dns.ko",O_RDONLY,00)     ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(4)                                       = 5 (0x5)
> kldstat(5,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/accf_http.ko",O_RDONLY,00)    ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(5)                                       = 6 (0x6)
> kldstat(6,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/dtrace.ko",O_RDONLY,00)       ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(6)                                       = 7 (0x7)
> kldstat(7,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/cyclic.ko",O_RDONLY,00)       ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(7)                                       = 8 (0x8)
> kldstat(8,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/opensolaris.ko",O_RDONLY,00)  ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(8)                                       = 9 (0x9)
> kldstat(9,0x7fffffffc1d0)                        = 0 (0x0)
> open("/boot/kernel/dtrace_test.ko",O_RDONLY,00)  ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(9)                                       = 10 (0xa)
> kldstat(10,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/dtraceall.ko",O_RDONLY,00)    ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(10)                                      = 11 (0xb)
> kldstat(11,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/dtmalloc.ko",O_RDONLY,00)     ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(11)                                      = 12 (0xc)
> kldstat(12,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/dtnfscl.ko",O_RDONLY,00)      ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(12)                                      = 13 (0xd)
> kldstat(13,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/dtnfsclient.ko",O_RDONLY,00)  ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(13)                                      = 14 (0xe)
> kldstat(14,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/nfsclient.ko",O_RDONLY,00)    ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(14)                                      = 15 (0xf)
> kldstat(15,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/nfs_common.ko",O_RDONLY,00)   ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(15)                                      = 16 (0x10)
> kldstat(16,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/fbt.ko",O_RDONLY,00)          ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(16)                                      = 17 (0x11)
> kldstat(17,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/fasttrap.ko",O_RDONLY,00)     ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(17)                                      = 18 (0x12)
> kldstat(18,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/lockstat.ko",O_RDONLY,00)     ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(18)                                      = 19 (0x13)
> kldstat(19,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/sdt.ko",O_RDONLY,00)          ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(19)                                      = 20 (0x14)
> kldstat(20,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/systrace.ko",O_RDONLY,00)     ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(20)                                      = 21 (0x15)
> kldstat(21,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/systrace_freebsd32.ko",O_RDONLY,00) ERR#2 'No such
> file or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(21)                                      = 22 (0x16)
> kldstat(22,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/profile.ko",O_RDONLY,00)      ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(22)                                      = 23 (0x17)
> kldstat(23,0x7fffffffc1d0)                       = 0 (0x0)
> open("/boot/kernel/nullfs.ko",O_RDONLY,00)       ERR#2 'No such file
> or directory'
> close(-1)                                        ERR#9 'Bad file descriptor'
> kldnext(23)                                      = 0 (0x0)
> getegid()                                        = 0 (0x0)
> geteuid()                                        = 0 (0x0)
> getgid()                                         = 0 (0x0)
> getpid()                                         = 2786 (0xae2)
> getpgid(0)                                       = 2785 (0xae1)
> getppid()                                        = 2785 (0xae1)
> getsid(0)                                        = 52367 (0xcc8f)
> getuid()                                         = 0 (0x0)
> mmap(0x0,706,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
> 34366447616 (0x800666000)
> mprotect(0x800666000,706,PROT_READ)              = 0 (0x0)
> mmap(0x0,730,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
> 34366451712 (0x800667000)
> mprotect(0x800667000,730,PROT_READ)              = 0 (0x0)
> munmap(0x800666000,706)                          = 0 (0x0)
> mmap(0x0,480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
> 34366447616 (0x800666000)
> mprotect(0x800666000,480,PROT_READ)              = 0 (0x0)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc950)                     = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc930)                     = 0 (0x0)
> stat("/usr/lib/dtrace",{ mode=drwxr-xr-x
> ,inode=3457372,size=512,blksize=32768 }) = 0 (0x0)
> open("/usr/lib/dtrace",O_NONBLOCK|0x20000,0201020200) = 3 (0x3)
> fstat(3,{ mode=drwxr-xr-x ,inode=3457372,size=512,blksize=32768 }) = 0 (0x0)
> fcntl(3,F_SETFD,FD_CLOEXEC)                      = 0 (0x0)
> fstatfs(0x3,0x7fffffffcd40,0x802001a20,0x607d90,0x607fb0,0xfffff800) = 0 (0x0)
> getdirentries(0x3,0x802116000,0x1000,0x802114488,0x607fb0,0xfffffffd)
> = 512 (0x200)
> open("/usr/lib/dtrace/errno.d",O_RDONLY,0666)    = 4 (0x4)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(4,{ mode=-r--r--r-- ,inode=3458159,size=6900,blksize=32768 }) = 0 (0x0)
> read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 6900 (0x1af4)
> read(4,0x802160000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6e0)                     = 0 (0x0)
> madvise(0x8021b8000,0xe000,0x5,0x1b7,0x7,0x7fffffffbef0) = 0 (0x0)
> close(4)                                         = 0 (0x0)
> open("/usr/lib/dtrace/psinfo.d",O_RDONLY,0666)   = 4 (0x4)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(4,{ mode=-r--r--r-- ,inode=3458160,size=3186,blksize=32768 }) = 0 (0x0)
> read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3186 (0xc72)
> read(4,0x802160000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6e0)                     = 0 (0x0)
> close(4)                                         = 0 (0x0)
> madvise(0x8021b8000,0x1000,0x5,0x2940,0x7,0x7fffffffc690) = 0 (0x0)
> madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x7fffffffc690) = 0 (0x0)
> open("/usr/lib/dtrace/signal.d",O_RDONLY,0666)   = 4 (0x4)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(4,{ mode=-r--r--r-- ,inode=3458161,size=3111,blksize=32768 }) = 0 (0x0)
> read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3111 (0xc27)
> read(4,0x802160000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6e0)                     = 0 (0x0)
> close(4)                                         = 0 (0x0)
> madvise(0x8021b8000,0x5000,0x5,0x1b7,0x7,0x0)    = 0 (0x0)
> madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x0)    = 0 (0x0)
> open("/usr/lib/dtrace/unistd.d",O_RDONLY,0666)   = 4 (0x4)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(4,{ mode=-r--r--r-- ,inode=3458162,size=2009,blksize=32768 }) = 0 (0x0)
> read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 2009 (0x7d9)
> read(4,0x802160000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6e0)                     = 0 (0x0)
> close(4)                                         = 0 (0x0)
> madvise(0x8021b8000,0x1000,0x5,0x2940,0x7,0x7fffffffc690) = 0 (0x0)
> madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x7fffffffc690) = 0 (0x0)
> open("/usr/lib/dtrace/regs_x86.d",O_RDONLY,0666) = 4 (0x4)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(4,{ mode=-r--r--r-- ,inode=3458163,size=3593,blksize=32768 }) = 0 (0x0)
> read(4,"/*                              "...,32768) = 3593 (0xe09)
> read(4,0x802160000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6e0)                     = 0 (0x0)
> close(4)                                         = 0 (0x0)
> madvise(0x8021b8000,0x6000,0x5,0x1b7,0x7,0x0)    = 0 (0x0)
> madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x0)    = 0 (0x0)
> getdirentries(0x3,0x802116000,0x1000,0x802114488,0x7fffffffc690,0x7fffffffc690)
> = 0 (0x0)
> lseek(3,0x0,SEEK_SET)                            = 0 (0x0)
> close(3)                                         = 0 (0x0)
> open("/usr/lib/dtrace/regs_x86.d",O_RDONLY,0666) = 3 (0x3)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(3,{ mode=-r--r--r-- ,inode=3458163,size=3593,blksize=32768 }) = 0 (0x0)
> read(3,"/*                              "...,32768) = 3593 (0xe09)
> read(3,0x80211d000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6b0)                     = 0 (0x0)
> close(3)                                         = 0 (0x0)
> madvise(0x80217e000,0x1000,0x5,0x23d0,0x7,0xffffffff) = 0 (0x0)
> madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0)
> open("/usr/lib/dtrace/unistd.d",O_RDONLY,0666)   = 3 (0x3)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(3,{ mode=-r--r--r-- ,inode=3458162,size=2009,blksize=32768 }) = 0 (0x0)
> read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 2009 (0x7d9)
> read(3,0x80211d000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6b0)                     = 0 (0x0)
> close(3)                                         = 0 (0x0)
> madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0)
> open("/usr/lib/dtrace/signal.d",O_RDONLY,0666)   = 3 (0x3)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(3,{ mode=-r--r--r-- ,inode=3458161,size=3111,blksize=32768 }) = 0 (0x0)
> read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3111 (0xc27)
> read(3,0x80211d000,32768)                        = 0 (0x0)
> ioctl(0,TIOCGETA,0xffffc6b0)                     = 0 (0x0)
> close(3)                                         = 0 (0x0)
> madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0)
> open("/usr/lib/dtrace/psinfo.d",O_RDONLY,0666)   = 3 (0x3)
> sigprocmask(SIG_BLOCK,0x0,0x0)                   = 0 (0x0)
> fstat(3,{ mode=-r--r--r-- ,inode=3458160,size=3186,blksize=32768 }) = 0 (0x0)
> read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3186 (0xc72)
> read(3,0x80211d000,32768)                        = 0 (0x0)
> mmap(0x0,495,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
> 34366455808 (0x800668000)
> mprotect(0x800668000,495,PROT_READ)              = 0 (0x0)
> munmap(0x800666000,480)                          = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> mmap(0x0,573,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =
> 34366447616 (0x800666000)
> mprotect(0x800666000,573,PROT_READ)              = 0 (0x0)
> munmap(0x800668000,495)                          = 0 (0x0)
> close(3)                                         = 0 (0x0)
> madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0)
> dtrace: write(2,"dtrace: ",8)                            = 8 (0x8)
> invalid probe specifier syscall:::entry { @sc[execname, probefunc] =
> count(); }write(2,"invalid probe specifier syscall:"...,79) = 79
> (0x4f)
> : "/usr/lib/dtrace/psinfo.d", line 37: syntax error near "uid_t"
> write(2,": "/usr/lib/dtrace/psinfo.d", li"...,65) = 65 (0x41)
> madvise(0x802181000,0x1000,0x5,0x2418,0x7,0x8020019c0) = 0 (0x0)
> madvise(0x80217d000,0x1000,0x5,0x23b8,0x7,0x8020019c0) = 0 (0x0)
> madvise(0x80217a000,0x1000,0x5,0x2370,0x7,0x8020019c0) = 0 (0x0)
> madvise(0x802175000,0x2000,0x5,0x174,0x7,0x8020019c0) = 0 (0x0)
> madvise(0x80217e000,0x2000,0x5,0x17d,0x7,0x1)    = 0 (0x0)
> madvise(0x80217b000,0x1000,0x5,0x2388,0x7,0x1)   = 0 (0x0)
> madvise(0x802177000,0x1000,0x5,0x2328,0x7,0x1)   = 0 (0x0)
> madvise(0x802115000,0x1000,0x5,0x19f8,0x7,0x1)   = 0 (0x0)
> madvise(0x80217c000,0x1000,0x5,0x23a0,0x7,0x1)   = 0 (0x0)
> madvise(0x802178000,0x2000,0x5,0x177,0x7,0x1)    = 0 (0x0)
> madvise(0x802113000,0x2000,0x5,0x112,0x7,0x1)    = 0 (0x0)
> munmap(0x800667000,730)                          = 0 (0x0)
> munmap(0x800666000,573)                          = 0 (0x0)
> madvise(0x802180000,0x1000,0x5,0x2400,0x7,0xffffffff) = 0 (0x0)
> madvise(0x802111000,0x2000,0x5,0x110,0x7,0xffffffff) = 0 (0x0)
> madvise(0x8020c1000,0x1000,0x5,0x1218,0x7,0xffffffff) = 0 (0x0)
> madvise(0x802088000,0x1000,0x5,0xcc0,0x7,0xffffffff) = 0 (0x0)
> close(8)                                         = 0 (0x0)
> close(9)                                         = 0 (0x0)
> madvise(0x8020c4000,0x1000,0x5,0x1260,0x7,0xffffffff) = 0 (0x0)
> madvise(0x8020bd000,0x1000,0x5,0x11b8,0x7,0xffffffff) = 0 (0x0)
> madvise(0x8020a6000,0x1000,0x5,0xf90,0x7,0xffffffff) = 0 (0x0)
> madvise(0x802094000,0x1000,0x5,0xde0,0x7,0xffffffff) = 0 (0x0)
> madvise(0x802085000,0x1000,0x5,0xc78,0x7,0xffffffff) = 0 (0x0)
> madvise(0x8020c3000,0x1000,0x5,0x1248,0x7,0xffffffff) = 0 (0x0)
> madvise(0x80209d000,0x2000,0x5,0x9c,0x7,0xffffffff) = 0 (0x0)
> madvise(0x802086000,0x1000,0x5,0xc90,0x7,0xffffffff) = 0 (0x0)
> madvise(0x80203f000,0x1000,0x5,0x5e8,0x7,0xffffffff) = 0 (0x0)
> madvise(0x802084000,0x1000,0x5,0xc60,0x7,0x8020011e0) = 0 (0x0)
> madvise(0x802040000,0x3000,0x5,0x3f,0x7,0x8020011e0) = 0 (0x0)
> madvise(0x80203c000,0x1000,0x5,0x5a0,0x7,0x8020011e0) = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0)
> = 0 (0x0)
> sigprocmask(SIG_SETMASK,0x0,0x0)                 = 0 (0x0)
> process exit, rval = 1
>
> - i can see anything that hinders dtrace to be happy. Any ideas? Thanks.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>


More information about the freebsd-hackers mailing list