From: Jeff Dike <jdike@addtoit.com>
To: Giovanni Marzot <gmarzot@nortelnetworks.com>
Cc: user-mode-linux-devel@lists.sourceforge.net, jeremy@goop.org
Subject: Re: [uml-devel] Re: Valgrind meets UML
Date: Thu, 23 Oct 2003 21:01:43 -0400 [thread overview]
Message-ID: <200310240101.h9O11hmN006339@ccure.karaya.com> (raw)
In-Reply-To: Your message of "Thu, 23 Oct 2003 10:40:09 EDT." <3F97E849.1090700@nortelnetworks.com>
gmarzot@nortelnetworks.com said:
> Any words of wisdom appreciated. Has anyone used this combination
> succesfully?
I ran out of free time about a year ago when playing with this, but I did
have UML and Valgrind playing together.
> I wonder what "teaching valgrind about the false positives" entails.
However, I didn't get anything useful out of it. This is because Valgrind
knows nothing about the kernel memory allocators. I started describing them,
but didn't get too far.
IIRC, you add special macros into the allocators when the status of a region
of memory changes. I.e.
a buffer being returned from an allocator is declared readable and
writeable
a buffer being freed is declared unreadable and unwriteable (or maybe
just inaccessible, I forgot)
These macros expand into different sequences of noops which are recognized
by Valgrind, which is a cute trick.
You've found the UML config changes needed for Valgrind. If Valgrind itself
has the changes that Jeremy and I made, then you should be all set to at
least run UML under it.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2003-10-24 3:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 14:40 [uml-devel] Re: Valgrind meets UML Giovanni Marzot
2003-10-23 16:02 ` Jeremy Fitzhardinge
2003-10-23 16:11 ` Giovanni Marzot
2003-10-23 16:45 ` Jeremy Fitzhardinge
2003-10-24 1:01 ` Jeff Dike [this message]
2003-10-24 8:22 ` Henrik Nordstrom
2003-10-25 1:02 ` Jeff Dike
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=200310240101.h9O11hmN006339@ccure.karaya.com \
--to=jdike@addtoit.com \
--cc=gmarzot@nortelnetworks.com \
--cc=jeremy@goop.org \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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