From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37714 invoked by alias); 14 Aug 2015 18:51:44 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 37104 invoked by uid 89); 14 Aug 2015 18:51:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=AWL,BAYES_05,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx5-phx2.redhat.com Received: from mx5-phx2.redhat.com (HELO mx5-phx2.redhat.com) (209.132.183.37) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 14 Aug 2015 18:51:43 +0000 Received: from zmail26.collab.prod.int.phx2.redhat.com (zmail26.collab.prod.int.phx2.redhat.com [10.5.83.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7EIpgsr055396 for ; Fri, 14 Aug 2015 14:51:42 -0400 Date: Fri, 14 Aug 2015 18:51:00 -0000 From: Felix Lu To: systemtap@sourceware.org Message-ID: <966804504.5048825.1439578302120.JavaMail.zimbra@redhat.com> In-Reply-To: <307772783.5042994.1439576879446.JavaMail.zimbra@redhat.com> Subject: New /* stable */ embedded-c pragma MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-q3/txt/msg00084.txt.bz2 SystemTap translator now supports the /* stable */ embedded-c pragma for arity-0 functions. Functioncall results are now automatically stored to reduce overhead of duplicate calls(no need to explicitly store). Stable functioncalls inside loops are also pulled out by the optimizer. Example usage: https://sourceware.org/systemtap/examples/profiling/timeout.stp Runtime of stable tapset functioncalls reduced by 5-10% in general usage cases.