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