This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6749] New: tolerate failed kprobe_register calls
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 15 Jul 2008 23:30:56 -0000
- Subject: [Bug translator/6749] New: tolerate failed kprobe_register calls
- Reply-to: sourceware-bugzilla at sourceware dot org
On one peculiar kernel (fedora rawhide, 2.6.26-0.131.rc9.git9.fc10.i686),
some symbols ("panic", "printk") for show up after the _etext symbol.
(.text.unlikely?). register_kprobes()' kernel_text_address() test refuses
to probe these guys. That in turn leads the translator-generated probe
setup loop to abort:
c04010e8 T _stext
c066b6d0 T __kprobes_text_start
c066e434 T __kprobes_text_end
c066f0ce T _etext
c066f133 T panic
# stap -e 'probe kernel.function("panic") {}'
ERROR: probe .... registration error (rc -22)
#
It would be better to skip such unplaceable probes (and emit a warning)
and run the rest of the script. Or else, we may opt to skip these probes
by encoding the _stext <= PTR < _etext condition from the kernel_text_address()
test into the translator.
--
Summary: tolerate failed kprobe_register calls
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6749
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.