Does anyone have idea of how to trace the funtion "gethostbyname"?
Frank Ch. Eigler
fche@redhat.com
Fri Oct 31 16:04:00 GMT 2008
Breno Leitao <leitao@linux.vnet.ibm.com> writes:
>> Could anyone tell me how to trace the function of gethostbyname using
>> SystemTap?
> Since this is not a kernel function, you might want to probe userspace
> functions.
This should work, before long:
probe process("/libMMM/libc-NNN.so").function("gethostbyname").call { log(user_string($name)) }
In some testing on RHEL5 however, our prologue-searching heuristics
can't outwit gcc's poor debuginfo quality, so that parameter is hidden
at the moment. There's a systemtap PR about improving the heuristics.
- FChE
More information about the Systemtap
mailing list