Debian Codegraph @

testsuite/semok/four.stp

raw
1 #! stap -u -p2
2
3 # these will ultimately be somehow associated with "providers"
4 # and have a syntax of their own
5 global kernel_jiffies, kernel_current_comm
6
7 function kernel_netlink(a, b) {
8 # this should be a builtin function
9 return 0
10 }
11
12 function stamp (syscall)
13 {
14 return kernel_netlink (4, kernel_jiffies . " " . kernel_current_comm . " " . syscall)
15 }
16
17 # probe kernel:syscall:read = kernel:function("sys_read");
18
19
20 probe begin /* syscall ("read") */
21 {
22 stamp ("read");
23 }