Systemtap on CentOS 4.4

If it doesn't fit in another category, ask it here.
Post Reply
hshah
Posts: 2
Joined: 2007/01/09 21:31:13

Systemtap on CentOS 4.4

Post by hshah » 2007/01/09 21:47:48

Hello I am finding some trouble when I try to execute systemtap on CentOS 4.4 on kernel 2.6.9-42.0.3.ELsmp when I try to execute systemtap scripts it gives kernel panic not syncing error message. Any help wold be appreciated.

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Systemtap on CentOS 4.4

Post by foxb » 2007/01/10 14:52:45

Can you run smoke test?

vi hello-world.stp
[code]
probe begin
{
print ("hello world\n")
exit ()
}
[/code]

stap hello-world.stp
hello world

Check your version

rpm -q systemtap
systemtap-0.5.8-1.EL4

Edit:
giving error you have also will help
As alternative you may look here
http://sourceware.org/systemtap/tutorial/node23.html

hshah
Posts: 2
Joined: 2007/01/09 21:31:13

Re: Systemtap on CentOS 4.4

Post by hshah » 2007/01/10 17:52:19

Yes I am able to run normal script like hello world, but problem I am facing when I try to probe files like socket.c or various systemcalls.

My systemtap version is systemtap-0.5.8-1.EL4.

For example when I try to execute one of the example in systemtap tutorial I get an error messge:

probe kernel.function("*@net/socket.c") {

printf("%s -> %s", thread_indent(1), probefunc())

}

probe kernel.function("*@net/socket.c").return {

printf("%s <- %s\n", thread_indent(-1), probefunc())

}

error:
Fatal Exception
kernel panic- not synching

Same error comes when I try to execute another example from systemtap tutorial:

#!/usr/bin/env stap
#
# This script continuously lists the top 20 systemcalls on the system
#

global syscalls

function print_top () {
cnt=0
log ("SYSCALL\t\t\t\tCOUNT")
foreach ([name] in syscalls-) {
printf("%-20s\t\t%5d\n",name, syscalls[name])
if (cnt++ == 20)
break
}
printf("--------------------------------------\n")
delete syscalls
}
probe begin
{
log("Systemtap starting probe")
}
probe kernel.function("sys_*") {
log("Functions started")
syscalls[probefunc()]++
log("Incremented")
}

# print top syscalls every 5 seconds
probe timer.ms(5000) {
log("Called print_top() functions")
print_top ()
log("Exiting functions")
exit()
}
probe end
{
log("Systemtap ended")
}

Above example also gives kernel-panic error

foxb
Posts: 1924
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: Systemtap on CentOS 4.4

Post by foxb » 2007/01/11 15:32:37

Personally I did not use it, but you may find help here
http://sourceware.org/systemtap/getinvolved.html

plathem
Posts: 1
Joined: 2008/04/08 16:15:16

Re: Systemtap on CentOS 4.4

Post by plathem » 2008/04/08 16:16:27

Hello,

Sorry to bump this old thread. But I'm having the same issue. Were you able to resolve this? Or has anyone else seen this issue.

Thanks
Pat

Post Reply

Return to “CentOS 4 - Miscellaneous Questions”