This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6601] New: systemtap with --kelf option looks for data symbol to probe a function on powerpc systemtap
- From: "srinivasa at in dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 6 Jun 2008 10:16:16 -0000
- Subject: [Bug translator/6601] New: systemtap with --kelf option looks for data symbol to probe a function on powerpc systemtap
- Reply-to: sourceware-bugzilla at sourceware dot org
Environment: Kernel-2.6.26-rc4, systemtap-latest git, elfutils-0.131
systemtaps with kelf option fails on powerpc systems with -EINVAL. To do more
investigation, I printed relocated address along with "probe registration" error
message. Address shows data symbol("D" in /proc/kallsyms) address of probe
point. Even stap-symbols.h shows both the text and data symbol address of some
functions.
=================================
[root@llm16 systemtap-6jun]# ./stap -v -k --kelf -e 'probe
kernel.function("do_exit") { printf("hi\n")}'
Pass 1: parsed user script and 41 library script(s) in 680usr/20sys/698real ms.
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s) in
250usr/20sys/271real ms.
Pass 3: using cached
/root/.systemtap/cache/90/stap_904bc7d6ba7dfba9b5e96f62b96b5472_233.c
Pass 4: using cached
/root/.systemtap/cache/90/stap_904bc7d6ba7dfba9b5e96f62b96b5472_233.ko
Pass 5: starting run.
ERROR: probe kernel.function("do_exit@?") registration error (rc
0xc000000000630838 -22) <<============ reloacted_address shows data sym addr
Pass 5: run completed in 0usr/50sys/59real ms.
Keeping temporary directory "/tmp/stapvPDT0F"
[root@llm16 systemtap-6jun]# cat /proc/kallsyms | grep do_exit
c000000000058450 T .do_exit
c0000000004f6a68 d __ksymtab_do_exit
c0000000004fee40 d __kcrctab_do_exit
c000000000501be9 r __kstrtab_do_exit
c000000000630838 D do_exit
===========================================
--
Summary: systemtap with --kelf option looks for data symbol to
probe a function on powerpc systemtap
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: srinivasa at in dot ibm dot com
CC: jkenisto at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6601
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.