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 wenji dot huang at oracle dot com  2009-11-12 06:39 -------
Guess it's related to gcc or fedora debuginfo.

On RHEL5 with self-built 2.6.32-rc6 kernel.
The latest stap works fine both with elfutils 0.141 and 0.142.

$ stap -e 'probe kernel.function("do_gettimeofday") { println($xtime) }'
semantic error: 'struct timespec' is being accessed instead of a member:
identifier '$xtime' at <input>:1:52
        source: probe kernel.function("do_gettimeofday") { println($xtime) }
                                                                   ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.

Got different message, but seems stap can get location attribute.

$ stap -e 'probe kernel.function("do_gettimeofday") {
printf("xtime.tv_sec:%d\n", $xtime->tv_sec); exit() }'
xtime.tv_sec:1257921482

But failed on FC11, gcc 4.4. The error message like previous comment,
also as comment #11 of bug # 9738.

-- 


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]