Debian Codegraph @

testsuite/semok/one.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 kernel_netlink (4, kernel_jiffies . " " .
15 kernel_current_comm . " " . syscall);
16 return 0
17 }
18
19 # probe kernel:syscall:read = kernel:function("sys_read");
20
21
22 probe begin /* syscall ("read") */
23 {
24 stamp ("read");
25 }