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]

problem in running systemtap


i compile and install the systemtap on CentOS5.7
# uname -r
2.6.18-274.17.1.el5

# yum list kernel-devel
kernel-devel.x86_64   2.6.18-274.18.1.el5    installed

and make soft link on kernel-devel

# ls /usr/src/kernels/ -l
total 4
lrwxrwxrwx  1 root root   26 Mar  1 14:23 2.6.18-274.17.1.el5-x86_64
-> 2.6.18-274.18.1.el5-x86_64
drwxr-xr-x 19 root root 4096 Mar  1 11:23 2.6.18-274.18.1.el5-x86_64

here is debuginfo package i installed

# rpm -qa|grep debuginfo
kernel-debuginfo-2.6.18-274.el5
kernel-debuginfo-common-2.6.18-274.el5

and i modified the file translate.cxx to avoid the problem of release test

1 1540   o->newline() << "if (0 && strcmp (release, "
2 1541                << lex_cast_qstring (session->kernel_release) << ")) {";
3 1542   o->newline(1) << "_stp_error (\"module release mismatch (%s vs %s)\", "

i compile systemtap use elfutils-0.145,and compile command is
./configure --prefix=/usr/local --with-elfutils=/root/package/elfutils-0.145

i run test,it seems work fine
# /usr/local/bin/stap -ve 'probe begin{printf("hello\n");exit();}'
Pass 1: parsed user script and 81 library script(s) using
137208virt/22524res/2768shr kb, in 150usr/20sys/180real ms.
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0
global(s) using 137736virt/23248res/3004shr kb, in 10usr/0sys/6real
ms.
Pass 3: using cached
/root/.systemtap/cache/1a/stap_1abafec7189b1f02553dd780d92046e4_757.c
Pass 4: using cached
/root/.systemtap/cache/1a/stap_1abafec7189b1f02553dd780d92046e4_757.ko
Pass 5: starting run.
hello
Pass 5: run completed in 0usr/20sys/303real ms.

but run the following script ,get complain from systemtap ,,,anyone can help?
# cat exec.stp
probe syscall.exec*{
printf("exec %s %s\n",execname(),argstr())
}
# stap exec.stp
semantic error: missing x86_64 kernel/module debuginfo under
'/lib/modules/2.6.18-274.17.1.el5/build' while resolving probe point
kernel.function("do_execve").call
semantic error: probe point mismatch at position 1  (alternatives:
accept access acct add_key adjtimex alarm arch_prctl bdflush bind brk
capget capset chdir chmod chown chown16 chroot clock_getres
clock_gettime clock_nanosleep clock_settime close compat_adjtimex
compat_clock_nanosleep compat_execve compat_futex compat_futimesat
compat_getitimer compat_io_setup compat_io_submit compat_nanosleep
compat_ppoll compat_pselect6 compat_pselect7 compat_recvmmsg
compat_select compat_setitimer compat_signalfd compat_sys_msgctl
compat_sys_msgrcv compat_sys_msgsnd compat_sys_recvmsg
compat_sys_semctl compat_sys_semtimedop compat_sys_sendmsg
compat_sys_shmat compat_sys_shmctl compat_sys_utimes compat_utime
compat_utimensat compat_vmsplice connect creat delete_module dup dup2
epoll_create epoll_ctl epoll_pwait epoll_wait eventfd execve exit
exit_group faccessat fadvise64 fadvise64_64 fchdir fchmod fchmodat
fchown fchown16 fchownat fcntl fdatasync fgetxattr flistxattr flock
fork fremovexattr fsetxattr fstat fstatat fstatfs fstatfs64 fsync
ftruncate ftruncate64 futex futimesat get_mempolicy getcwd getdents
getegid geteuid getgid getgroups gethostname getitimer getpeername
getpgid getpgrp getpid getppid getpriority getresgid getresuid
getrlimit getrusage getsid getsockname getsockopt gettid gettimeofday
getuid getxattr init_module inotify_add_watch inotify_init
inotify_rm_watch io_cancel io_destroy io_getevents io_setup io_submit
ioctl ioperm iopl ioprio_get ioprio_set kexec_load keyctl kill lchown
lchown16 lgetxattr link linkat listen listxattr llistxattr llseek
lookup_dcookie lremovexattr lseek lsetxattr lstat madvise mbind
migrate_pages mincore mkdir mkdirat mknod mknodat mlock mlockall mmap
mmap2 mmap32 modify_ldt mount move_pages mprotect mq_getsetattr
mq_notify mq_open mq_timedreceive mq_timedsend mq_unlink mremap msgctl
msgget msgrcv msgsnd msync munlock munlockall munmap nanosleep
nfsservctl ni_syscall nice open openat pause personality pipe pipe32
pivot_root poll ppoll prctl pread pselect6 pselect7 ptrace pwrite
pwrite32 quotactl read readahead readdir readlink readlinkat readv
reboot recv recvfrom recvmmsg recvmsg remap_file_pages removexattr
rename renameat request_key restart_syscall rmdir rt_sigaction
rt_sigaction32 rt_sigpending rt_sigprocmask rt_sigqueueinfo
rt_sigreturn rt_sigsuspend rt_sigtimedwait sched_get_priority_max
sched_get_priority_min sched_getaffinity sched_getparam
sched_getscheduler sched_rr_get_interval sched_setaffinity
sched_setparam sched_setscheduler sched_yield select semctl semget
semop semtimedop send sendfile sendmsg sendto set_mempolicy
set_tid_address setdomainname setfsgid setfsuid setgid setgroups
sethostname setitimer setpgid setpriority setregid setregid16
setresgid setresgid16 setresuid setresuid16 setreuid setreuid16
setrlimit setsid setsockopt settimeofday settimeofday32 setuid
setxattr sgetmask shmat shmctl shmdt shmget shutdown sigaction
sigaction32 sigaltstack signal signalfd sigpending sigprocmask
sigreturn sigsuspend socket socketpair splice ssetmask stat statfs
statfs64 stime swapoff swapon symlink symlinkat sync sysctl sysctl32
sysfs sysinfo syslog tee tgkill time timer_create timer_delete
timer_getoverrun timer_gettime timer_settime timerfd times tkill
truncate tux umask umount uname unlink unlinkat unshare uselib ustat
ustat32 utime utimensat utimes vhangup vm86_warning vmsplice wait4
waitid write writev) didn't find any wildcard matches: identifier
'exec*' at exec.stp:1:15 while resolving probe point syscall.exec*
        source: probe syscall.exec*{
                              ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.
Missing separate debuginfos, use: debuginfo-install
kernel-2.6.18-274.17.1.el5.x86_64


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