summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/badvar_undefined.stp
blob: 05023ef042b7c12f191512475f9a9e58690710d3 (plain)
1
2
3
4
5
6
7
#!/bin/sh

# PR11346: We shouldn't even see a warning when a would-be skip-badvars
# replacement is masked by a @defined condition.

stap -W -p2 --skip-badvars -e 'probe kernel.function("sys_getxattr")
{ printf("%s\n", user_string(@defined($pathname) ? $pathname : $path)) }'