public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug runtime/11573] New: uprobe_get_pc, sayonara
@ 2010-05-06  0:35 fche at redhat dot com
  2010-05-06 11:22 ` [Bug runtime/11573] " roland at gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fche at redhat dot com @ 2010-05-06  0:35 UTC (permalink / raw)
  To: systemtap

A systemtap script that uses ubacktrace()-related functions will end
up making a linking reference to the uprobe_get_pc() function.  But
if the script does not contain any uprobes, staprun does not load
uprobes.ko so that this reference can be satisfied, and we end up
with silly stuff like:

# rmmod uprobes
# stap -e 'probe begin {print_ubacktrace()}'
WARNING: "uprobe_get_pc"
[/tmp/stapOL691o/stap_c35e2bc620f14ccdee99bf8fb34d2ffd_1192.ko] undefined!
Error inserting module
'/tmp/stapOL691o/stap_c35e2bc620f14ccdee99bf8fb34d2ffd_1192.ko': Unknown symbol
in module
Retrying, after attempted removal of module
stap_c35e2bc620f14ccdee99bf8fb34d2ffd_1192 (rc -1)
Error inserting module
'/tmp/stapOL691o/stap_c35e2bc620f14ccdee99bf8fb34d2ffd_1192.ko': Unknown symbol
in module
Pass 5: run failed.  Try again with another '--vp 00001' option.

Possible solutions:
1) kill our reliance on uprobe_get_pc()
2) find a way of informing the translator & staprun that ubacktrace() should
   be treated as if a uprobe-y probe was requested - i.e., compile and load
   uprobes.ko
3) provide a weak definition of uprobe_get_pc()

-- 
           Summary: uprobe_get_pc, sayonara
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


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

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-07 16:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-06  0:35 [Bug runtime/11573] New: uprobe_get_pc, sayonara fche at redhat dot com
2010-05-06 11:22 ` [Bug runtime/11573] " roland at gnu dot org
2010-05-06 13:17 ` jistone at redhat dot com
2010-05-08 11:32 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).