blob: 7f73ff05bd9b3f2ff7082338891bc65edd450f77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#! /bin/sh
# PR11360 - Make sure that @defined and -L play well together.
#
# The test shouldn't be dependent on the implementation of syscall.poll, in
# case that evolves, so I'm recreating the problematic condition here.
#
# NB: This is abusing the fact that -l/-L work by wrapping the input string
# with "probe " and "{}"
stap -L '
my_syscall.poll = kernel.function("SyS_poll").call !,
kernel.function("sys_poll").call
{
timeout = (@defined($timeout_msecs) ? $timeout_msecs : $timeout)
}
probe my_syscall.poll
' | grep " timeout:long"
|