This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: access variables within functions
- From: "Rus-Rebreanu Alin-Florin" <netblock at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Mon, 14 Apr 2008 14:38:37 +0300
- Subject: Re: access variables within functions
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=kWiufL6rM4ARVkSYpE1WTPPh0k/NKQt04cXDENSauwo=; b=Zc4KMXlEdga1/CvdYuTDRXNjj7NtaQr2BAhz7VM4ilpRk28m3Hp/PHqmbhug61dDnBmo0kqSUbBLu0SDVDSCt66HsuF8TaTxg3p7t3gwQHDeLl/piDjBwXRNHzyfJ7Io6gkvAt42Gkbf0PoKQIeEMIUhMBaxmSFilhmgUKa5aAQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=S7ug5Ha99ojTs77FPU2IQrjAAq++6sOQ/6zHQmjKlJtQLQcnRFwr5KQbNJei+1HQTPsCSFJO5G7Ne/t0UFoxE4Kakn659RC51qyI0So6x8g9TKPt24SnYzp7zEHNOCo516TOlCX1+t6SsQlNMIQIGqykb7/pfKiWTrSVthM4g6Q=
With my example i get:
semantic error: not accessible at this address: identified '$ret' at
<input>:1:70
When using kernel.statement i seem to have a result don't know if it's
correct yet but it's a result nonetheless, so I guess .statement did
the trick
Thanks
PS: I didn't want to use .return. It was jus an example, it just
happened that the $ret variable has taken the result of the function
rw_verify_area. I wanted to know how to access the value of any
variable in any given function.