qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Idea: Qemu as test coverage tool for kernels
@ 2006-01-28 12:26 Blue Swirl
  2006-01-29  5:26 ` Mulyadi Santosa
  2006-01-30  6:08 ` Kyle Hayes
  0 siblings, 2 replies; 5+ messages in thread
From: Blue Swirl @ 2006-01-28 12:26 UTC (permalink / raw)
  To: qemu-devel

Hi,

Qemu's system emulators could be modified to output information about the 
code areas which have been executed by the virtual CPU. The output could 
then be used in standard test coverage tools. The benefit would be the 
ability to get kernel-level coverage data.

Are there any other tools for this purpose? I guess this would not be too 
difficult to do.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Idea: Qemu as test coverage tool for kernels
  2006-01-28 12:26 [Qemu-devel] Idea: Qemu as test coverage tool for kernels Blue Swirl
@ 2006-01-29  5:26 ` Mulyadi Santosa
  2006-01-29 10:14   ` Blue Swirl
  2006-01-30  6:08 ` Kyle Hayes
  1 sibling, 1 reply; 5+ messages in thread
From: Mulyadi Santosa @ 2006-01-29  5:26 UTC (permalink / raw)
  To: qemu-devel, Blue Swirl

Hi...

On Saturday 28 January 2006 19:26, Blue Swirl wrote:
> Hi,
>
> Qemu's system emulators could be modified to output information about
> the code areas which have been executed by the virtual CPU. The
> output could then be used in standard test coverage tools. The
> benefit would be the ability to get kernel-level coverage data.

Why not just use Oprofile (oprofile.sf.net) or standard "readprofile" 
tool for this?

I am not against your idea, but I just want to avoid reinventing the 
wheel

regards

Mulyadi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Idea: Qemu as test coverage tool for kernels
  2006-01-29  5:26 ` Mulyadi Santosa
@ 2006-01-29 10:14   ` Blue Swirl
  0 siblings, 0 replies; 5+ messages in thread
From: Blue Swirl @ 2006-01-29 10:14 UTC (permalink / raw)
  To: a_mulyadi, qemu-devel

>Why not just use Oprofile (oprofile.sf.net) or standard "readprofile"
>tool for this?

I didn't know about that, but after a quick look I'd say Oprofile is doing 
performance profiling (which could be done using Qemu as well), not test 
coverage analysis. Also, the kernel in question needs to be patched.

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Idea: Qemu as test coverage tool for kernels
  2006-01-28 12:26 [Qemu-devel] Idea: Qemu as test coverage tool for kernels Blue Swirl
  2006-01-29  5:26 ` Mulyadi Santosa
@ 2006-01-30  6:08 ` Kyle Hayes
  2006-01-30  9:37   ` Daniel Veillard
  1 sibling, 1 reply; 5+ messages in thread
From: Kyle Hayes @ 2006-01-30  6:08 UTC (permalink / raw)
  To: qemu-devel

On Saturday 28 January 2006 04:26, Blue Swirl wrote:
> Hi,
>
> Qemu's system emulators could be modified to output information about
> the code areas which have been executed by the virtual CPU. The output
> could then be used in standard test coverage tools. The benefit would be
> the ability to get kernel-level coverage data.

You might want to look a valgrind.  The KDE project uses it heavily for 
memory leak and other types of problem detection.  It is a sort of 
intermediate step between an interpreter and Qemu.  I'm not sure where it 
lives, but Google should find it.

Best,
Kyle

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Idea: Qemu as test coverage tool for kernels
  2006-01-30  6:08 ` Kyle Hayes
@ 2006-01-30  9:37   ` Daniel Veillard
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Veillard @ 2006-01-30  9:37 UTC (permalink / raw)
  To: kyle, qemu-devel

On Sun, Jan 29, 2006 at 10:08:26PM -0800, Kyle Hayes wrote:
> On Saturday 28 January 2006 04:26, Blue Swirl wrote:
> > Hi,
> >
> > Qemu's system emulators could be modified to output information about
> > the code areas which have been executed by the virtual CPU. The output
> > could then be used in standard test coverage tools. The benefit would be
> > the ability to get kernel-level coverage data.
> 
> You might want to look a valgrind.  The KDE project uses it heavily for 
> memory leak and other types of problem detection.  It is a sort of 
> intermediate step between an interpreter and Qemu.  I'm not sure where it 
> lives, but Google should find it.

  Another option might be SystemTap, by activating and counting all probes
and then generating coverage maps from the output, might be simpler to
actually set-up, though I have no idea of the resulting impedance of activating
all probes in a running kernel:
    http://sourceware.org/systemtap/
    http://www.redhat.com/magazine/011sep05/features/systemtap/

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-01-30  9:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-28 12:26 [Qemu-devel] Idea: Qemu as test coverage tool for kernels Blue Swirl
2006-01-29  5:26 ` Mulyadi Santosa
2006-01-29 10:14   ` Blue Swirl
2006-01-30  6:08 ` Kyle Hayes
2006-01-30  9:37   ` Daniel Veillard

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 NNTP newsgroup(s).