diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-08-18 23:03:00 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-08-18 23:03:00 +0200 |
commit | 08b22cd52aad1023c91341a1fd9bdb821cf4c90f (patch) | |
tree | d4d18c21a32b002872af24e5e3089d13ba992334 /testsuite/systemtap.base/cxxclass.stp | |
parent | a80a54cb804d0df40e064a72bd8c6bf7c1258e02 (diff) | |
download | systemtap-steved-08b22cd52aad1023c91341a1fd9bdb821cf4c90f.tar.gz systemtap-steved-08b22cd52aad1023c91341a1fd9bdb821cf4c90f.tar.xz systemtap-steved-08b22cd52aad1023c91341a1fd9bdb821cf4c90f.zip |
PR10512 STAP_PROBES don't work in c++ constructors/destructors testcase.
* testsuite/systemtap.base/cxxclass.exp: New file.
* testsuite/systemtap.base/cxxclass.stp: Likewise.
* testsuite/systemtap.base/cxxclass.cxx: Likewise.
Diffstat (limited to 'testsuite/systemtap.base/cxxclass.stp')
-rw-r--r-- | testsuite/systemtap.base/cxxclass.stp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/cxxclass.stp b/testsuite/systemtap.base/cxxclass.stp new file mode 100644 index 00000000..f36be72b --- /dev/null +++ b/testsuite/systemtap.base/cxxclass.stp @@ -0,0 +1,34 @@ +probe process("cxxclass.exe").mark("main_enter") +{ + log("main_enter"); +} + +probe process("cxxclass.exe").mark("main_exit") +{ + log("main_exit"); +} + +probe process("cxxclass.exe").mark("call") +{ + printf("call: %d\n", $arg1); +} + +probe process("cxxclass.exe").mark("call2") +{ + printf("call2: %d\n", $arg1); +} + +probe process("cxxclass.exe").mark("cons") +{ + printf("cons %s: %d\n", user_string($arg1), $arg2); +} + +probe process("cxxclass.exe").mark("meth") +{ + printf("meth %s: %d %d\n", user_string($arg1), $arg2, $arg3); +} + +probe process("cxxclass.exe").mark("dest") +{ + printf("dest %s: %d\n", user_string($arg1), $arg2); +} |