the system call number

Zheng Da zhengda1936@gmail.com
Sat Jul 23 04:23:00 GMT 2011


Hello,

I try to trace all system calls in a period of time, and then print
out all system calls and the invokers.
How do I get the system call number, or better the names of the system calls?
I tried $syscall, but it doesn't work.

probe syscall.* {
        if ($syscall != 4) {
                curr_time = gettimeofday_us()
                        if (curr_time > start_time + 1000000 * 3)
                                printf ("%s calls %d\n", execname(), $syscall)
        }
}

Thanks,
Da



More information about the Systemtap mailing list