This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10701] New: $var[i] broken for saving expressions in .return probes
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 28 Sep 2009 16:13:43 -0000
- Subject: [Bug translator/10701] New: $var[i] broken for saving expressions in .return probes
- Reply-to: sourceware-bugzilla at sourceware dot org
Consider
probe kernel.function("unix_stream_recvmsg").return {
for (i = 0; i < $msg->msg_iovlen; i++)
len += $msg->msg_iov[i]->iov_len ## elicits a "read-only `i' warning
printf("%d", len)
}
The whole "$msg->msg_iov[i]->iov_len" expression appears to be cloned
for saving at synthetic .call time. However in that context, [i] is
undefined (which makes sense, since at return time we are iterating
over i).
Prior to the implementation of bug #4166, we only had literals as array
indexes, so cloning those into the .call body was not a problem. Now we
need to decide what to save. Maybe only the top-level $variable.
Reported By: David Ward <dpward@MIT.EDU>
--
Summary: $var[i] broken for saving expressions in .return probes
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: fche at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10701
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.