From: "dsmith at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug tapsets/11263] exposing foo32 syscalls
Date: Tue, 09 Feb 2010 19:02:00 -0000 [thread overview]
Message-ID: <20100209190247.28794.qmail@sourceware.org> (raw)
In-Reply-To: <20100209125924.11263.mjw@redhat.com>
------- Additional Comments From dsmith at redhat dot com 2010-02-09 19:02 -------
(In reply to comment #2)
> The "problem" to me is that we don't do this splitting of 32on64 versus "pure
> 64" bit syscalls consistently. Why do we have syscall.pipe32 and syscall.mmap32,
> but not syscall.fstat32 for example?
>
> syscall.fstat is a nice example since we make it match any syscall variant that
> is called "fstat" whether it is the "plain" one or the compat/32on64 version.
I believe the reasons are mostly historical. I'd guess that when there were
argument differences between the 32-bit and 64-bit syscall, the '32' probe
variant would be created. (I realize this doesn't account for the
syscall.pipe/syscall.pipe32 case, but who said we were 100% consistent?)
If this tapset would be written today, it would probably be written like (untested):
====
probe _syscall.foo = kernel.function("sys_foo") {
# handle arguments...
}
probe _syscall.foo32 = kernel.function("sys_foo32") ? {
# handle 32-bit arguments...
}
probe syscall.foo = _syscall.foo, _syscall.foo32
====
Now the question we have to think about is: If we refactor the syscall.foo32
probes, how many existing scripts do we break?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11263
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
next prev parent reply other threads:[~2010-02-09 19:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 12:59 [Bug tapsets/11263] New: " mjw at redhat dot com
2010-02-09 15:18 ` [Bug tapsets/11263] " dsmith at redhat dot com
2010-02-09 15:43 ` mjw at redhat dot com
2010-02-09 19:02 ` dsmith at redhat dot com [this message]
2010-02-14 10:44 ` mjw at redhat dot com
[not found] <bug-11263-6586@http.sourceware.org/bugzilla/>
2015-06-19 17:06 ` dsmith at redhat dot com
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=20100209190247.28794.qmail@sourceware.org \
--to=sourceware-bugzilla@sourceware.org \
--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).