diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-09-25 09:43:52 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-09-25 09:43:52 -0400 |
commit | 25a632047a89804ffbfe6bb012af632ad4e6bdc1 (patch) | |
tree | 2b2d5f561f34e695d1ea8e6089bf9ba9780f849d | |
parent | 4b3b2cc7d334e9fa525dc54d9a5c03f48fc99f07 (diff) | |
download | systemtap-steved-25a632047a89804ffbfe6bb012af632ad4e6bdc1.tar.gz systemtap-steved-25a632047a89804ffbfe6bb012af632ad4e6bdc1.tar.xz systemtap-steved-25a632047a89804ffbfe6bb012af632ad4e6bdc1.zip |
tweak anon-struct test case and news blurb
-rw-r--r-- | NEWS | 6 | ||||
-rwxr-xr-x | testsuite/semok/thirtythree.stp | 7 |
2 files changed, 8 insertions, 5 deletions
@@ -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) +} |