Debian Codegraph @

tapset/linux/powerpc/sysc_compat_mbind.stp

raw
1 # compat_mbind ________________________________________
2 #
3 # asmlinkage long compat_mbind(compat_ulong_t start, compat_ulong_t len,
4 # compat_ulong_t mode, compat_ulong_t __user *nmask,
5 # compat_ulong_t maxnode, compat_ulong_t flags)
6 #
7
8 @define _SYSCALL_COMPAT_MBIND_NAME
9 %(
10 name = "compat_mbind"
11 %)
12
13 @define _SYSCALL_COMPAT_MBIND_ARGSTR
14 %(
15 argstr = sprintf("%p, %d, %d, %p, %d, %d", start_uaddr, len,
16 policy, nodemask_uaddr, maxnode, flags)
17 %)
18
19 probe syscall.compat_mbind = dw_syscall.compat_mbind !, nd_syscall.compat_mbind ? {}
20 probe syscall.compat_mbind.return = dw_syscall.compat_mbind.return !,
21 nd_syscall.compat_mbind.return ? {}
22
23 # dw_compat_mbind _____________________________________________________
24
25 probe dw_syscall.compat_mbind = kernel.function("compat_mbind") ?
26 {
27 @_SYSCALL_COMPAT_MBIND_NAME
28 start_uaddr = $start
29 len = $len
30 policy = $mode
31 nodemask_uaddr = $nmask
32 maxnode = $maxnode
33 flags = $flags
34 @_SYSCALL_COMPAT_MBIND_ARGSTR
35 }
36 probe dw_syscall.compat_mbind.return = kernel.function("compat_mbind").return ?
37 {
38 @_SYSCALL_COMPAT_MBIND_NAME
39 @SYSC_RETVALSTR($return)
40 }
41
42 # nd_compat_mbind _____________________________________________________
43
44 probe nd_syscall.compat_mbind = kprobe.function("compat_mbind") ?
45 {
46 @_SYSCALL_COMPAT_MBIND_NAME
47 asmlinkage()
48 start_uaddr = uint_arg(1)
49 len = uint_arg(2)
50 policy = uint_arg(3)
51 nodemask_uaddr = uint_arg(4)
52 maxnode = uint_arg(5)
53 flags = uint_arg(6)
54 @_SYSCALL_COMPAT_MBIND_ARGSTR
55 }
56 probe nd_syscall.compat_mbind.return = kprobe.function("compat_mbind").return ?
57 {
58 @_SYSCALL_COMPAT_MBIND_NAME
59 @SYSC_RETVALSTR(returnval())
60 }