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: Does anyone have idea of how to trace the funtion "gethostbyname"?


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


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