want to make Log of system calls per process running on the machine
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
hello
i have tried starce and system tap but the problem is when i am doing #strace ls and when i am tracing ls using stap the sequences which i am getting are different. it seems me like stap is printing some more system calls and the number of these extra system calls are quite big(almost two times as in strace). i am using the following stap script
Now i am confused that what are these extra system calls.
-----------------------------------------------------------------
trace for ls using strace is
execve
brk
access
open
fstat64
mmap2
close
open
read
fstat64
mmap2
mmap2
mmap2
close
open
read
fstat64
mmap2
mmap2
close
open
read
fstat64
mmap2
mmap2
close
open
read
fstat64
mmap2
mmap2
mmap2
close
open
read
fstat64
mmap2
mmap2
mmap2
close
open
read
fstat64
mmap2
mmap2
close
open
read
fstat64
mmap2
mmap2
mmap2
close
mmap2
set_thread_area
mprotect
mprotect
mprotect
mprotect
mprotect
munmap
set_tid_address
set_robust_list
futex
rt_sigaction
rt_sigaction
rt_sigprocmask
getrlimit
uname
brk
brk
open
fstat64
mmap2
read
read
close
munmap
statfs64
open
fstat64
mmap2
read
read
close
munmap
open
fstat64
mmap2
close
ioctl
ioctl
open
fstat64
fcntl64
getdents64
getdents64
close
fstat64
ioctl
mmap2
write
close
munmap
close
exit_group
------------------------------------------------------------------------------------------------------------
trace for ls using stap script is
hi,
i want to log all the system calls & services in the kernel(services are the transanction between modules in the kernel),with which tool i can do it?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.