summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-09-25 09:43:52 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-09-25 09:43:52 -0400
commit25a632047a89804ffbfe6bb012af632ad4e6bdc1 (patch)
tree2b2d5f561f34e695d1ea8e6089bf9ba9780f849d
parent4b3b2cc7d334e9fa525dc54d9a5c03f48fc99f07 (diff)
downloadsystemtap-steved-25a632047a89804ffbfe6bb012af632ad4e6bdc1.tar.gz
systemtap-steved-25a632047a89804ffbfe6bb012af632ad4e6bdc1.tar.xz
systemtap-steved-25a632047a89804ffbfe6bb012af632ad4e6bdc1.zip
tweak anon-struct test case and news blurb
-rw-r--r--NEWS6
-rwxr-xr-xtestsuite/semok/thirtythree.stp7
2 files changed, 8 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index f54e0299..7e737d47 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,9 @@
* What's new
+- The translator can resolve members of anonymous structs / unions:
+ given struct { int foo; struct { int bar; }; } *p;
+ this now works: $p->bar
+
- The stap "-F" flag activates "flight recorder" mode, which consists of
translating the given script as usual, but implicitly launching it into
the background with staprun's existing "-L" (launch) option. A user
@@ -381,5 +385,3 @@
- Many minor bug fixes, performance, tapset, and error message
improvements.
-
-- Modify translator code to identify members of anonymous structs / unions.
diff --git a/testsuite/semok/thirtythree.stp b/testsuite/semok/thirtythree.stp
index 3c23ab1c..d5171f66 100755
--- a/testsuite/semok/thirtythree.stp
+++ b/testsuite/semok/thirtythree.stp
@@ -1,4 +1,5 @@
-#!/bin/sh
+#! stap -p2
# Per bz3016, this should get through the semantic pass without warnings.
-stap -p2 -e 'probe kernel.function("do_mpage_readpage") { printf("\n page ->inuse %u",$page->inuse);exit();}'
-exit 0
+probe kernel.function("do_mpage_readpage") {
+ printf("\n page ->inuse %u",$page->inuse)
+}