This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: about probe libc
- From: Srikar Dronamraju <srikar at linux dot vnet dot ibm dot com>
- To: Huang jw <huangjiangwei at gmail dot com>
- Cc: systemtap at sourceware dot org
- Date: Tue, 10 Aug 2010 10:54:00 +0530
- Subject: Re: about probe libc
- References: <AANLkTimys6co8zzmyyvj0pHVv2cjaMidTCm6a3Pph8ze@mail.gmail.com>
- Reply-to: Srikar Dronamraju <srikar at linux dot vnet dot ibm dot com>
> Hi all,
> I'm trying to probe memcpy from libc. I have installed
> debuginfo for libc(glibc-debuginfo-2.5-42.x86_64.rpm), but when I use
> the follow systemtap instruction, it reoprted an error.
Right you have installed debuginfo for the 64 bit version.
> Instruction list I used:
> sudo stap -e 'probe
> process("/lib/libc.so.6").function("memcpy").return{println(probfunc())}'
> -c 'ls'
>
> Error information:
> "
> WARNING: cannot find module /lib/libc-2.5.so debuginfo: No DWARF
> information found
> semantic error: no match while resolving probe point
> process("/lib/libc.so.6").function("memcpy").return"
ls on x86_64 is a 64 bit binary that links with /lib64/libc.so.
So you were right in installing glibc-debuginfo-2.5-42.x86_64.rpm.
However can you try using
process("/lib64/libc.so.6").function("memcpy").return"
--
Thanks and Regards
Srikar