# sched_get_priority_min _____________________________________
#
# asmlinkage long
# sys_sched_get_priority_min(int policy)
#

@define _SYSCALL_SCHED_GET_PRIORITY_MIN_NAME
%(
	name = "sched_get_priority_min"
%)

@define _SYSCALL_SCHED_GET_PRIORITY_MIN_ARGSTR
%(
	argstr = policy_str
%)

probe syscall.sched_get_priority_min = dw_syscall.sched_get_priority_min !,
                                       nd_syscall.sched_get_priority_min ? {}
probe syscall.sched_get_priority_min.return = dw_syscall.sched_get_priority_min.return !,
                                              nd_syscall.sched_get_priority_min.return ? {}

# dw_sched_get_priority_min _____________________________________________________

probe dw_syscall.sched_get_priority_min = kernel.function("sys_sched_get_priority_min").call
{
	@_SYSCALL_SCHED_GET_PRIORITY_MIN_NAME
	policy = __int32($policy)
	policy_str = _sched_policy_str(policy)
	@_SYSCALL_SCHED_GET_PRIORITY_MIN_ARGSTR
}
probe dw_syscall.sched_get_priority_min.return = kernel.function("sys_sched_get_priority_min").return
{
	@_SYSCALL_SCHED_GET_PRIORITY_MIN_NAME
	retstr = return_str(1, $return)
}

# nd_sched_get_priority_min _____________________________________________________

probe nd_syscall.sched_get_priority_min = kprobe.function("sys_sched_get_priority_min") ?
{
	@_SYSCALL_SCHED_GET_PRIORITY_MIN_NAME
	asmlinkage()
	policy = int_arg(1)
	policy_str = _sched_policy_str(policy)
	@_SYSCALL_SCHED_GET_PRIORITY_MIN_ARGSTR
}
probe nd_syscall.sched_get_priority_min.return = kprobe.function("sys_sched_get_priority_min").return ?
{
	@_SYSCALL_SCHED_GET_PRIORITY_MIN_NAME
	retstr = returnstr(1)
}
