From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130019 invoked by alias); 31 Jul 2015 11:45:04 -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 128788 invoked by uid 89); 31 Jul 2015 11:45:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f169.google.com Received: from mail-wi0-f169.google.com (HELO mail-wi0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 31 Jul 2015 11:44:59 +0000 Received: by wibud3 with SMTP id ud3so28471535wib.0 for ; Fri, 31 Jul 2015 04:44:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=zs0Ag2mK7k7M3KlwcxY07vNClzhdb6Fd4ZLM5BliZ8A=; b=ekS90GP0dsTpSVVM3VYoGX8mMF4US83t1WVq1LUIk9yZYA5ovh1LB8uOdF1LeAm7Oh X1W4cTmj7UmoonWl/gVP1kfmVE5+ivgNKVedn9EaxmtljfaNE9HDumWVIGbI8yBKSOuR XGIcACLFHrS3bLe9uzrrpzwfjkcK5YHaWEIYacZ9izDDpNG47qP5cbCICMWSHQKI4STk Nfw5IheRkUd7UVhS6ezBemWy1kEzXbf6GSur8xLRiGIYB7QTh55VtsaLP2VQq9sPbtfS ljN8IG/0OBIU3KrEnQ0h1amPmKQC1yTXAgDV/KatBpHzeorXjpFYVnoT4+yZpJu3VvH4 d3Mg== X-Gm-Message-State: ALoCoQmVuLNn9DePOFqr+9aJG1kdczwcX+OAjDrwAGT3qYX5kLIc5q9msRozIgijtGzIj/8yT2OJ X-Received: by 10.180.219.41 with SMTP id pl9mr5629201wic.30.1438343096115; Fri, 31 Jul 2015 04:44:56 -0700 (PDT) Received: from [192.168.0.101] ([90.152.119.35]) by smtp.googlemail.com with ESMTPSA id fs8sm6812462wjb.7.2015.07.31.04.44.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 04:44:55 -0700 (PDT) Message-ID: <55BB5FB6.6060503@linaro.org> Date: Fri, 31 Jul 2015 11:45:00 -0000 From: Zoltan Kiss User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: "Frank Ch. Eigler" , Josh Stone CC: systemtap@sourceware.org Subject: Re: Array handling question References: <55AD3A9F.4030703@linaro.org> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-q3/txt/msg00060.txt.bz2 Many thanks guys, I was able to sort it out! Though I'm not on the list, but Google pointed me in the end to Josh's reply in the archives :) Yes, I've mixed up stats with arrays in my mind, that was the root of the problems. Regards, Zoltan On 21/07/15 15:24, Frank Ch. Eigler wrote: > > 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 >