From 25a632047a89804ffbfe6bb012af632ad4e6bdc1 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 25 Sep 2008 09:43:52 -0400 Subject: tweak anon-struct test case and news blurb --- NEWS | 6 ++++-- testsuite/semok/thirtythree.stp | 7 ++++--- 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) +} -- cgit