diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-05-05 19:26:38 -0400 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-05-05 19:26:38 -0400 |
commit | 74efda8d847591a2146601ad085e6411340f3e98 (patch) | |
tree | 9651552dc89a0bc2b7a14ffe3f344d01c693e087 /testsuite/systemtap.base | |
parent | 88462544ccc86c37e85d2cf9e88b8a0106d78a14 (diff) | |
download | systemtap-steved-74efda8d847591a2146601ad085e6411340f3e98.tar.gz systemtap-steved-74efda8d847591a2146601ad085e6411340f3e98.tar.xz systemtap-steved-74efda8d847591a2146601ad085e6411340f3e98.zip |
PR10102: tolerate the failure related to optional probe
This patch will make stap silently accept the
failure related to optional probe. It puts try/catch
around find_and_build which can cover most probe types.
The specific treatment for dwarf_derived_probe in
commit ed82b7c902d6a2e26452ec51c9cdb9665dbf9e97 is
reverted.
Diffstat (limited to 'testsuite/systemtap.base')
-rw-r--r-- | testsuite/systemtap.base/optionalprobe.stp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/systemtap.base/optionalprobe.stp b/testsuite/systemtap.base/optionalprobe.stp index 239cf6e3..13918cee 100644 --- a/testsuite/systemtap.base/optionalprobe.stp +++ b/testsuite/systemtap.base/optionalprobe.stp @@ -2,5 +2,13 @@ # test optional probe -probe foo ?, bar !, foo* ?, bar* !, begin { +probe foo ?, + process("/do/not/exist").function("main") !, + kernel.mark("no such mark") ?, + kernel.trace("no trace") !, + process.foo ?, + kernel.statement("no statement") !, + module("no mod").function("*") ?, + kernel.function("no such func*") !, + begin { } |