From 9f36b77f43db9975865f01f5bda68a824d24fcfb Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 17 Nov 2006 20:35:46 +0000 Subject: 2006-11-17 Frank Ch. Eigler * tapsets.cxx (d_v_e_c_v::visit_target_symbol): Restore lost exception-saving functionality that improves error messages for incorrect $target expressions. (translate_components): Systematize error messages somewhat. * translate.cxx (emit_function, emit_probe): Clarify "array locals" error message. 2006-11-17 Frank Ch. Eigler * semko/thirtysix.stp, transko/three.stp: New tests. --- testsuite/ChangeLog | 5 +++++ testsuite/semko/thirtysix.stp | 7 +++++++ testsuite/transko/three.stp | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100755 testsuite/semko/thirtysix.stp create mode 100755 testsuite/transko/three.stp (limited to 'testsuite') diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 88e77cad..550297e8 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,4 +1,9 @@ +2006-11-17 Frank Ch. Eigler + + * semko/thirtysix.stp, transko/three.stp: New tests. + 2006-11-16 Li Guanglei + * buildok/lket.stp: check for all available LKET trace hooks. 2006-11-10 David Smith diff --git a/testsuite/semko/thirtysix.stp b/testsuite/semko/thirtysix.stp new file mode 100755 index 00000000..77ffc822 --- /dev/null +++ b/testsuite/semko/thirtysix.stp @@ -0,0 +1,7 @@ +#! stap -p2 + +probe kernel.function("kmem_cache_alloc") { + print ($cachep->no_such_field) + print ($cachep->array->should_have_indexed_it) + print ($cachep->next) +} diff --git a/testsuite/transko/three.stp b/testsuite/transko/three.stp new file mode 100755 index 00000000..ab23b9dd --- /dev/null +++ b/testsuite/transko/three.stp @@ -0,0 +1,6 @@ +#! stap -p3 + +probe end { + array[1,2] = 5 + print (array[4,6]) +} -- cgit