From: Mike Frysinger <vapier.adi@gmail.com>
To: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tracehook: add some self tests
Date: Mon, 15 Feb 2010 16:11:01 -0500 [thread overview]
Message-ID: <8bd0f97a1002151311r3ba2f676ua00167edae152aa5@mail.gmail.com> (raw)
In-Reply-To: <20100215202800.5192E1AD@magilla.sf.frob.com>
On Mon, Feb 15, 2010 at 15:28, Roland McGrath wrote:
> This is something of a misnomer, since asm/syscall.h is the only thing you
> are testing.
it's meant as a starting point, not the end point. so overtime people
can easily extend it.
> I'd make the more general point that this sort of "synthetic" test does not
> seem very useful. At best, it can test the asm/syscall.h code for being
> internally consistent--but that doesn't test whether it's really correct.
i wrote it because i needed it when trying to make sure the various
i/n values worked correctly. writing a bit of static code based on
just "n" is trivial, but avoiding a nest of code with i/n is a lot
harder. and as i noted earlier, there is on code in the kernel that
ever calls with i being non-zero.
> IMHO this is not worth having unless it's an "empirical" test. What I mean
> by that is one that really uses the asm/syscall.h calls as specified, and
> in the context specified. So, you'd have to fork a user process and use
> ptrace on it to get it stopped at a syscall entry. Then you can fetch the
> arguments, modify them, and look at the arguments it actually passes in to
> the syscall.
that would indeed be useful as a next point
-mike
prev parent reply other threads:[~2010-02-15 21:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-15 6:15 Mike Frysinger
2010-02-15 19:39 ` Oleg Nesterov
2010-02-15 20:28 ` Mike Frysinger
2010-02-15 20:33 ` Roland McGrath
2010-02-15 20:28 ` Roland McGrath
2010-02-15 21:11 ` Mike Frysinger [this message]
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=8bd0f97a1002151311r3ba2f676ua00167edae152aa5@mail.gmail.com \
--to=vapier.adi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=roland@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
all inboxes | Powered by JetHome®