From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117536 invoked by alias); 21 Jul 2015 14:23:46 -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 117527 invoked by uid 89); 21 Jul 2015 14:23:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 21 Jul 2015 14:23:45 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id B5F838E4E0; Tue, 21 Jul 2015 14:23:43 +0000 (UTC) Received: from fche.csb (vpn-233-182.phx2.redhat.com [10.3.233.182]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6LENhpb020734; Tue, 21 Jul 2015 10:23:43 -0400 Received: by fche.csb (Postfix, from userid 2569) id 578685867A; Tue, 21 Jul 2015 10:24:47 -0400 (EDT) To: Zoltan Kiss Cc: systemtap@sourceware.org Subject: Re: Array handling question References: <55AD3A9F.4030703@linaro.org> From: fche@redhat.com (Frank Ch. Eigler) Date: Tue, 21 Jul 2015 14:23:00 -0000 In-Reply-To: <55AD3A9F.4030703@linaro.org> (Zoltan Kiss's message of "Mon, 20 Jul 2015 19:14:55 +0100") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2015-q3/txt/msg00045.txt.bz2 zoltan.kiss wrote: > [...] > global cnt = 0; > [...] > global runtimes; > probe process().function().return { > [...] > runtimes <<< runtime; > if (cnt > 50000) { > [...] > delete runtimes; > } > cnt++; > } By the way, a more canonical way to count would be to drop the extra "cnt" variable and use @count(runtimes) as the value to compare with 50000. - FChE