From: "Mike Frysinger" <vapier.adi@gmail.com>
To: "Andi Kleen" <andi@firstfloor.org>
Cc: "Linux Kernel" <linux-kernel@vger.kernel.org>
Subject: Re: the Linux kernel, testsuites, and maybe *you*
Date: Sun, 2 Sep 2007 11:15:23 -0400 [thread overview]
Message-ID: <8bd0f97a0709020815r75fcb225lf44bcb57783b436c@mail.gmail.com> (raw)
In-Reply-To: <20070902065926.GA15487@one.firstfloor.org>
On 9/2/07, Andi Kleen <andi@firstfloor.org> wrote:
> On Sat, Sep 01, 2007 at 06:50:30PM -0400, Mike Frysinger wrote:
> > On 02 Sep 2007 00:08:57 +0200, Andi Kleen <andi@firstfloor.org> wrote:
> > > BTW string functions are best tested in user space. That's
> > > a relatively bad example.
> >
> > in theory, maybe ... in reality, i really dont think so
> >
> > the string implementations are spread out over the kernel ... there's
> > implementations in lib/, include/asm-*/, and arch/*/lib/ ... so any
> > test code that would use these sources is going to be an ugly hack to
> > make sure it grabs all the right pieces from all the right places.
>
> string functions tend to be self contained.
"tend to be" does not lend itself to being cleanly tested ... and i
imagine i'd get some pretty heavy resistance if i proposed
re-organzing code just so that i could compile it outside of the
kernel
there is still the ABI issue ... code written in kernel space in pure
asm cannot always be compiled in userspace and work properly/the same
> The other issue to test some of them properly you need unmapped pages
> etc. That gets much easier to do in user space. There are some other
> issues.
you mean testing boundary overflows ? can be handled with canaries
rather than segfaults i imagine ...
-mike
next prev parent reply other threads:[~2007-09-02 15:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-31 21:22 Mike Frysinger
2007-09-01 6:14 ` Robin Getz
2007-09-01 22:52 ` Mike Frysinger
2007-09-01 22:08 ` Andi Kleen
2007-09-01 22:50 ` Mike Frysinger
2007-09-02 6:59 ` Andi Kleen
2007-09-02 15:15 ` Mike Frysinger [this message]
2007-09-02 15:43 ` Andi Kleen
2007-09-04 15:05 ` Mike Frysinger
2007-09-05 17:51 ` Mike Frysinger
2007-09-02 18:20 ` Håvard Skinnemoen
2007-09-04 14:41 ` Robin Getz
2007-09-02 2:34 ` Bill Davidsen
2007-09-02 3:44 ` Mike Frysinger
2007-09-03 13:37 ` Bill Davidsen
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=8bd0f97a0709020815r75fcb225lf44bcb57783b436c@mail.gmail.com \
--to=vapier.adi@gmail.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®