From: David Smith <dsmith@redhat.com>
To: "Frank Ch. Eigler" <fche@redhat.com>
Cc: systemtap@sources.redhat.com
Subject: Re: Listing probe alias resolution failures
Date: Wed, 16 May 2007 21:20:00 -0000 [thread overview]
Message-ID: <464B759E.1030606@redhat.com> (raw)
In-Reply-To: <20070516202959.GA2520@redhat.com>
Frank Ch. Eigler wrote:
> Hi -
>
> On Wed, May 16, 2007 at 03:17:55PM -0500, David Smith wrote:
>> [...]
>> Nope, I'm suggesting that:
>> probe kernel.function("something_that_does_not_exist") ? {
>> local1 = $arg1
>> local2 = $arg2
>> printf("%d %d\n", local1, local2)
>> }
>> be accepted.
>
> But it is already.
>
>
>> In other words, if we know a probe point doesn't exist, it shouldn't
>> matter what arguments it references. [...]
>
> It doesn't.
Hmm, I see what you mean. The following doesn't give an error for
accessing $arg (although it does rightly complain that "no probes found").
# stap -p2 -e 'probe kernel.function("fche") ? { $arg1++ }'
Ah, I see something I missed before with the following:
# stap -p2 -e 'probe vm.mmap ? { printf("%p %d\n", address, length) }'
Here's the definition from tapset/memory.stp:
probe vm.mmap = kernel.function("do_mmap"), kernel.function("do_mmap2")? {
address = $addr
length = $len
}
I missed the fact that the first one isn't optional. But, shouldn't
making 'vm.mmap' optional basically make 'kernel.function("do_mmap")'
optional?
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
next prev parent reply other threads:[~2007-05-16 21:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-15 21:14 patm
2007-05-15 21:33 ` David Smith
2007-05-15 22:02 ` patm
2007-05-15 22:16 ` Mike Mason
2007-05-16 13:47 ` David Smith
2007-05-15 22:21 ` patm
2007-05-16 14:12 ` David Smith
2007-05-16 16:58 ` patm
2007-05-16 17:23 ` David Smith
2007-05-16 18:54 ` patm
2007-05-16 18:54 ` Frank Ch. Eigler
2007-05-16 20:18 ` David Smith
2007-05-16 20:30 ` Frank Ch. Eigler
2007-05-16 21:20 ` David Smith [this message]
2007-05-16 21:59 ` Frank Ch. Eigler
2007-05-18 20:05 ` David Smith
2007-05-19 0:27 ` Stone, Joshua I
2007-05-19 16:11 ` Frank Ch. Eigler
2007-05-17 0:09 ` Mike Mason
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=464B759E.1030606@redhat.com \
--to=dsmith@redhat.com \
--cc=fche@redhat.com \
--cc=systemtap@sources.redhat.com \
/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).