can systemtap send signal back to an application its monitoring? please help
Frank Ch. Eigler
fche@redhat.com
Mon Mar 19 18:54:00 GMT 2012
Hi -
On Sun, Mar 18, 2012 at 11:52:09AM -0600, Khadija Rasul wrote:
> [...]
> So I want Wget (a command prompt download manager) -which will start before
> systemtap starts- to wait for systemtap to get ready for probing and then
> start its download. So I have modified the code of wget by putting
> 'pause()' to make it wait for systemtap to start and then I need systemtap
> to let wget know urgently that it is ready for probing. I was thinking of
> putting 'kill(id of wget, SIGCONT)' in systemtap 'Probe Begin()' to resume
> wget so that wget can start downloading. After your suggestion, I tried
> this with embedded C code in guru mode but it does not work.
Try:
stap -e 'probe begin { system(sprintf("kill -CONT %d", target())) } /*...*/' \
-x WGET-PID
> [...]
> p.s.: Could you please send me the systemtap forum's e-mail id so that I
> can contact the forum directly next time.
See the cc: header.
- FChE
More information about the Systemtap
mailing list