Debian Codegraph @

tapset/linux/i386/sysc_set_zone_reclaim.stp

raw
1 # set_zone_reclaim ___________________________________________
2 /*
3 * asmlinkage long
4 * sys_set_zone_reclaim(unsigned int node,
5 * unsigned int zone,
6 * unsigned int state)
7 */
8
9 @define _SYSCALL_SET_ZONE_RECLAIM_NAME
10 %(
11 name = "set_zone_reclaim"
12 %)
13
14 @define _SYSCALL_SET_ZONE_RECLAIM_ARGSTR
15 %(
16 argstr = sprintf("%d, %d, %d", node, zone, state)
17 %)
18
19 probe syscall.set_zone_reclaim = dw_syscall.set_zone_reclaim !,
20 nd_syscall.set_zone_reclaim ? {}
21 probe syscall.set_zone_reclaim.return = dw_syscall.set_zone_reclaim.return !,
22 nd_syscall.set_zone_reclaim.return ? {}
23
24 # dw_set_zone_reclaim _____________________________________________________
25
26 probe dw_syscall.set_zone_reclaim = kernel.function("sys_set_zone_reclaim") ?
27 {
28 @_SYSCALL_SET_ZONE_RECLAIM_NAME
29 node = $node
30 zone = $zone
31 state = $state
32 @_SYSCALL_SET_ZONE_RECLAIM_ARGSTR
33 }
34 probe dw_syscall.set_zone_reclaim.return = kernel.function("sys_set_zone_reclaim").return ?
35 {
36 @_SYSCALL_SET_ZONE_RECLAIM_NAME
37 @SYSC_RETVALSTR($return)
38 }
39
40 # nd_set_zone_reclaim _____________________________________________________
41
42 probe nd_syscall.set_zone_reclaim = kprobe.function("sys_set_zone_reclaim") ?
43 {
44 @_SYSCALL_SET_ZONE_RECLAIM_NAME
45 asmlinkage()
46 node = uint_arg(1)
47 zone = uint_arg(2)
48 state = uint_arg(3)
49 @_SYSCALL_SET_ZONE_RECLAIM_ARGSTR
50 }
51 probe nd_syscall.set_zone_reclaim.return = kprobe.function("sys_set_zone_reclaim").return ?
52 {
53 @_SYSCALL_SET_ZONE_RECLAIM_NAME
54 @SYSC_RETVALSTR(returnval())
55 }