Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2015 23:00:34 +0800
From:      Justin Yang <linuxjustin@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Unable to run any Dtrace toolkits
Message-ID:  <CACBcHafQ7H6Q_jFvLy968f4bnuzeAa6cuiZshJNRwO2f_vcQKQ@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hi,

I just encounter some errors when I try to run the Dtrace scripts under
/usr/share/dtrace/toolkit, and am not sure how to handle them:

===
root@darkgeek.pts/1 dtrace/toolkit # ./procsystime -n csh
dtrace: invalid probe specifier
 #pragma D option quiet

 /*
  * Command line arguments
  */
 inline int OPT_elapsed  = 1;
 inline int OPT_cpu      = 0;
...
: "/usr/lib/dtrace/ip.d", line 111: failed to copy typedef in6_addr_t
source type: Type information is in parent and unavailable

root@darkgeek.pts/1 dtrace/toolkit # perl ./hotkernel
Sampling... Hit Ctrl-C to end.
dtrace: invalid probe specifier
    #pragma D option quiet
    profile:::profile-1001hz
    /arg0/
    {
        @pc[arg0] = count();
    }
    dtrace:::END
    {
        printa("%a %@d\n", @pc);
    }
: "/usr/lib/dtrace/ip.d", line 111: failed to copy typedef in6_addr_t
source type: Type information is in parent and unavailable

FUNCTION                                                COUNT   PCNT
===

Seems they both complain an error of "Type information is in parent and
unavailable".

My computer has FreeBSD 10.1-RELEASE (GENERIC kernel) amd64 installed, and
the following is a list of loaded modules:

===
root@darkgeek.pts/1 / # kldstat
Id Refs Address            Size     Name
 1   68 0xffffffff80200000 1755658  kernel
 2    1 0xffffffff81956000 aca0     sem.ko
 3    1 0xffffffff81961000 6cf30    vboxdrv.ko
 4    1 0xffffffff819ce000 b630f0   nvidia.ko
 5    3 0xffffffff82532000 b9ab0    linux.ko
 6    1 0xffffffff82811000 538a     fdescfs.ko
 7    1 0xffffffff82817000 9d37     linprocfs.ko
 8    1 0xffffffff82821000 357e     ums.ko
 9    1 0xffffffff82825000 2b58     uhid.ko
10    1 0xffffffff82828000 26c5     pflog.ko
11    1 0xffffffff8282b000 32efe    pf.ko
12    4 0xffffffff8285e000 b998     netgraph.ko
13    1 0xffffffff8286a000 40a7     ng_ether.ko
14    1 0xffffffff8286f000 4688     ng_pppoe.ko
15    1 0xffffffff82874000 3820     ng_socket.ko
16    1 0xffffffff82878000 8dc      dtraceall.ko
17    3 0xffffffff82879000 1fab     cyclic.ko
18   12 0xffffffff8287b000 398b     opensolaris.ko
19   10 0xffffffff8287f000 3cfd6    dtrace.ko
20    1 0xffffffff828bc000 45d5     dtmalloc.ko
21    1 0xffffffff828c1000 22ba     dtnfscl.ko
22    1 0xffffffff828c4000 639a     fbt.ko
23    1 0xffffffff828cb000 57d0b    fasttrap.ko
24    1 0xffffffff82923000 4958     lockstat.ko
25    1 0xffffffff82928000 15e6     sdt.ko
26    1 0xffffffff8292a000 d7d8     systrace.ko
27    1 0xffffffff82938000 d402     systrace_freebsd32.ko
28    1 0xffffffff82946000 4c74     profile.ko
===

So what should I do to solve it? Thanks.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CACBcHafQ7H6Q_jFvLy968f4bnuzeAa6cuiZshJNRwO2f_vcQKQ>