public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: fche@redhat.com (Frank Ch. Eigler)
To: Zoltan Kiss <zoltan.kiss@linaro.org>
Cc: systemtap@sourceware.org
Subject: Re: Array handling question
Date: Tue, 21 Jul 2015 14:23:00 -0000	[thread overview]
Message-ID: <y0msi8hk2q8.fsf@fche.csb> (raw)
In-Reply-To: <55AD3A9F.4030703@linaro.org> (Zoltan Kiss's message of "Mon, 20 Jul 2015 19:14:55 +0100")


zoltan.kiss wrote:

> [...]
> global cnt = 0;
> [...]
> global runtimes;
> probe process(<procname>).function(<funcname>).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

  parent reply	other threads:[~2015-07-21 14:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 18:15 Zoltan Kiss
2015-07-20 19:09 ` Josh Stone
2015-07-21 14:23 ` Frank Ch. Eigler [this message]
2015-07-31 11:45   ` Zoltan Kiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y0msi8hk2q8.fsf@fche.csb \
    --to=fche@redhat.com \
    --cc=systemtap@sourceware.org \
    --cc=zoltan.kiss@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).