Question on strace
Satish Kumar Tedla
satish.tedla at oracle.com
Wed Jul 2 11:59:36 UTC 2008
Hi Jan,
Thanks for your detailed explanation..
Went through online docs but could not really get on how to install on
my LinuxBox:
/ade:[ sktedla_vgc3 ] [sktedla at stacg04 ~/test]$ uname -a
Linux stacg04 2.6.9-55.0.0.0.2.ELsmp #1 SMP Wed May 2 14:59:56 PDT 2007
i686 i686 i386 GNU/Linux
/I would be great if you could give this info too.
Thanks,
Satish
Jan Kratochvil wrote:
> Hi Satish,
>
> On Wed, 25 Jun 2008 15:59:04 +0200, Satish Kumar Tedla wrote:
>
>> What is systemtap? Do I have to install this separately?
>>
>
> Systemtap is a completely separate package which you may need to install
> separately. It is unrelated to strace and so it is even offtopic here.
> http://sourceware.org/systemtap/
> http://sourceware.org/ml/systemtap/
>
>
>
>>>> # stap /tmp/kill.stp START
>>>>
>
> I wrote:
> # stap /tmp/kill.stp
> START
> ...
> bash (4599): kill (24688, sig 15) = 0
>
> therefore `START' is an output line of `stap', not its argument.
>
>
>> Is the stap an alias you are using for systemtap?
>>
>
> It is a command contained in the systemtap package.
>
>
>> What exactly did you mean by START? Start my process that I was referring to?
>>
>
> `START' is a message printed by the systemtap script `kill.stp' I attached to
> my last mail.
>
>
>>>> bash (4599): kill (24688, sig 15) = 0
>>>>
>> I was trying to kill my process using kill -TERM pid, what exactly are
>> you referring to in kill?
>>
>
> That line said that a process with PID 4599 kill (tried to kill) a process with
> PID 24688. PID 4599 was a process running program bash.
>
> So a PID killing your victim PID can be later found by (not tried):
> killed_victim_pid=1234; grep "kill ($killed_victim_pid," stap.log | awk '{print $2}'
>
>
> Regards,
> Jan
>
More information about the Strace-devel
mailing list