This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/10622] unsuccessful location searches for extern $variables


------- Additional Comments From mjw at redhat dot com  2009-09-09 21:49 -------
$ stap -e 'probe kernel.function("do_gettimeofday") { printf("xtime.tv_sec:
%d\n", $xtime->tv_sec); }'
semantic error: failed to retrieve location attribute for local 'xtime'
(dieoffset: 0x752637): identifier '$xtime' at <input>:1:73
        source: probe kernel.function("do_gettimeofday") { printf("xtime.tv_sec:
%d\n", $xtime->tv_sec); }
                                                                               
        ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.

$ eu-readelf -N --debug-dump=info
/usr/lib/debug/lib/modules/2.6.30.5-43.fc11.i586/vmlinux

 [752637]    variable
             name                 "xtime"
             decl_file            3
             decl_line            100
             type                 [74c7b3]
             external             
             declaration          

So no location description in this CU. We need to look it up in the symbol table.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10622

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]