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]

Re: about probe libc


2010/8/10 Srikar Dronamraju <srikar@linux.vnet.ibm.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, I also. tried that, but it still didn't work.

semantic error: no match while resolving probe point
process("/lib64/libc-2.5.so").function("memcpy").return
semantic error: no probes found


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]