From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by sourceware.org (Postfix) with ESMTP id A7EEB395305D for ; Thu, 14 Jan 2021 21:47:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A7EEB395305D Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-413-6XpJgumBNf-wIffQhjldtA-1; Thu, 14 Jan 2021 16:47:14 -0500 X-MC-Unique: 6XpJgumBNf-wIffQhjldtA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A42D11006C84; Thu, 14 Jan 2021 21:47:13 +0000 (UTC) Received: from redhat.com (ovpn-112-160.phx2.redhat.com [10.3.112.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8618619C45; Thu, 14 Jan 2021 21:47:13 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94) (envelope-from ) id 1l0ASV-00038R-Vm; Thu, 14 Jan 2021 16:47:12 -0500 Date: Thu, 14 Jan 2021 16:47:11 -0500 From: "Frank Ch. Eigler" To: Craig Ringer Cc: David McRay , systemtap@sourceware.org Subject: Re: It's confused that local variable's value not change in function.return probe. Message-ID: <20210114214711.GG25762@redhat.com> References: <87mtxgr9mu.fsf@redhat.com> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jan 2021 21:47:17 -0000 Hi - > I never found that especially confusing, but I can see how the message > might be improved. > > - WARNING: confusing usage, consider @entry($a->$) > + WARNING: value of $a is captured at function entry and will not reflect > any changes made since; consider explicitly using @entry($a->$) > > or something like that? Done, thanks for the idea. The message is relatively long, but less confusing. - FChE