This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
ask for help
- From: "Payphone LIOU" <lioupayphone at gmail dot com>
- To: "systemtap" <systemtap at sourceware dot org>
- Date: Wed, 25 Jun 2008 09:35:32 +0800
- Subject: ask for help
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=zD9uWnWBmhe/zutNTMDYP6uk9K69Nfj0dfMryvcT5vA=; b=IlYYTFgDWYdQkbtA8MmL4QKQgyqof/D2zzXT/gG6xVlUYQVtm+SNMH1Qp/VCO6lwbI qehjDK2PtOXi9mDKR+wq8JfE3a4NBVDl5NnF5Nl/jdegAr4T2kCcbA3+2qu5uOc6iP8w O4GQ6lM73wkEhj+FCaj8csiDuir3Xy71r3vpU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=hSKhAkYqndO0M+gHaz3O33BS9XoNR8FLZLMHOo7I8bCszPp5XI6J/Z4F01NsKLFmof Fo0IkEszOTJAaYMwXkhGIVCPOCWjoTfXJUsUZdIV5tbuAW1rrDtB9XPJWgC8VBo1KTgC W+sQUT5trovvaV1O3fX9AcK95dkSWST2y+pA0=
Hi, All.
i am a newcomer to systemtap. i have a question about installing and running systemtap to ask . thanks everyone. :-)
(1) something about my machine
2.6.17-1.2142_FC4
x86-64
gcc 4.0.2
glibc-2.3.6-3
glib2-2.6.4-1
glib-1.2.10-16
glibc-devel-2.3.6-3
glibc-common-2.3.6-3
glibc-2.3.6-3
glibc-profile-2.3.6-3
glib2-devel-2.6.4-1
glibc-kernheaders-2.4-9.1.94
glibc-devel-2.3.6-3
glibc-utils-2.3.6-3
glibc-headers-2.3.6-3
kernel-debuginfo-2.6.17-1.2142_FC4
kernel-devel-2.6.17-1.2142_FC4
sqlite-3.1.2-3
sqlite-devel-3.1.2-3
elfutils-0.108-1
stap-0.3-1
(2) when i try to run an example from http://sourceware.org/systemtap/examples/top.stp
it failed and some error messages listed:
[root@paul systemtap]#
[root@paul systemtap]# cat top.stp
#!/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 kernel.function("sys_*") {
syscalls[probefunc()]++
}
# print top syscalls every 5 seconds
probe timer.ms(5000) {
print_top ()
}
[root@paul systemtap]# stap -v top.stp
Created temporary directory "/tmp/stapD19eih"
parse error: expected ')'
saw: operator '-' at top.stp:11:29
1 parse error(s).
Searched '/usr/share/systemtap/tapset/2.6.17-1.2142_FC4/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6.17/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/2.6/*.stp', match count 0
Searched '/usr/share/systemtap/tapset/*.stp', match count 3
Pass 1: parsed user script and 3 library script(s).
Running /bin/rm -rf /tmp/stapD19eih
[root@paul systemtap]#
could anyone tell me why? many thanks ! :-)
--------------
Payphone LIOU; 2008-06-25