All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: jiayingz@google.com, dkegel@google.com,
	linux-kernel@vger.kernel.org,
	user-mode-linux-devel@lists.sourceforge.net,
	Steve VanDeBogart <vandebo-lkml@NerdBox.Net>
Subject: Re: [uml-devel] [PATCH 1/6] base: Valgrind headers and Kconfig
Date: Mon, 1 Sep 2008 11:47:43 -0400	[thread overview]
Message-ID: <20080901154743.GA7584@c2.user-mode-linux.org> (raw)
In-Reply-To: <20080901142219.GH18288@one.firstfloor.org>

On Mon, Sep 01, 2008 at 04:22:19PM +0200, Andi Kleen wrote:
> > Kernel code can't get headers from the system, unless you're thinking
> >        #include "/usr/include/valgrind.h"
> > or something similar.
> 
> Some um files at least least include sys/* files which are surely
> user space?  If they can include that why not valgrind.h? 

The userspace side of UML can (and, indeed must) use the system
headers.  Here, we can just #include <valgrind.h>.

However, the kernel side of UML, where the allocator annotations are,
can't use system headers.  The kernel side of things has to be
self-contained within the kernel tree.

	       	      	  	 Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

WARNING: multiple messages have this Message-ID (diff)
From: Jeff Dike <jdike@addtoit.com>
To: Andi Kleen <andi@firstfloor.org>
Cc: Steve VanDeBogart <vandebo-lkml@NerdBox.Net>,
	linux-kernel@vger.kernel.org,
	user-mode-linux-devel@lists.sourceforge.net, jiayingz@google.com,
	dkegel@google.com
Subject: Re: [PATCH 1/6] base: Valgrind headers and Kconfig
Date: Mon, 1 Sep 2008 11:47:43 -0400	[thread overview]
Message-ID: <20080901154743.GA7584@c2.user-mode-linux.org> (raw)
In-Reply-To: <20080901142219.GH18288@one.firstfloor.org>

On Mon, Sep 01, 2008 at 04:22:19PM +0200, Andi Kleen wrote:
> > Kernel code can't get headers from the system, unless you're thinking
> >        #include "/usr/include/valgrind.h"
> > or something similar.
> 
> Some um files at least least include sys/* files which are surely
> user space?  If they can include that why not valgrind.h? 

The userspace side of UML can (and, indeed must) use the system
headers.  Here, we can just #include <valgrind.h>.

However, the kernel side of UML, where the allocator annotations are,
can't use system headers.  The kernel side of things has to be
self-contained within the kernel tree.

	       	      	  	 Jeff

-- 
Work email - jdike at linux dot intel dot com

  reply	other threads:[~2008-09-01 15:48 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-29 23:12 [uml-devel] [PATCH 0/6] support valgrinding uml Steve VanDeBogart
2008-08-29 23:12 ` Steve VanDeBogart
2008-08-29 23:14 ` [uml-devel] [PATCH 1/6] base: Valgrind headers and Kconfig Steve VanDeBogart
2008-08-29 23:14   ` Steve VanDeBogart
2008-09-01  9:32   ` [uml-devel] " Andi Kleen
2008-09-01  9:32     ` Andi Kleen
2008-09-01 14:06     ` [uml-devel] " Jeff Dike
2008-09-01 14:06       ` Jeff Dike
2008-09-01 14:22       ` [uml-devel] " Andi Kleen
2008-09-01 14:22         ` Andi Kleen
2008-09-01 15:47         ` Jeff Dike [this message]
2008-09-01 15:47           ` Jeff Dike
2008-08-29 23:15 ` [uml-devel] [PATCH 2/6] UML: Don't valgrind userspace Steve VanDeBogart
2008-08-29 23:15   ` Steve VanDeBogart
2008-09-05 16:37   ` [uml-devel] " Jeff Dike
2008-09-05 16:37     ` Jeff Dike
2008-09-06 20:55     ` John Reiser
2008-09-06 20:55       ` John Reiser
2008-09-06 22:12       ` Jeff Dike
2008-09-06 22:12         ` Jeff Dike
2008-08-29 23:16 ` [uml-devel] [PATCH 3/6] UML and sched: Annotate stacks Steve VanDeBogart
2008-08-29 23:16   ` Steve VanDeBogart
2008-08-29 23:16 ` [uml-devel] [PATCH 4/6] VM: Annotate pagealloc Steve VanDeBogart
2008-08-29 23:16   ` Steve VanDeBogart
2008-08-30 10:57   ` [uml-devel] " Pekka Enberg
2008-08-30 10:57     ` Pekka Enberg
2008-09-03  5:25     ` [uml-devel] " Steve VanDeBogart
2008-09-03  5:25       ` Steve VanDeBogart
2008-09-03  9:35       ` Pekka Enberg
2008-09-03  9:35         ` Pekka Enberg
2008-08-29 23:17 ` [uml-devel] [PATCH 5/6] slab: Annotate slab Steve VanDeBogart
2008-08-29 23:17   ` Steve VanDeBogart
2008-08-30 10:50   ` [uml-devel] " Pekka Enberg
2008-08-30 10:50     ` Pekka Enberg
2008-09-03  2:54     ` [uml-devel] " John Reiser
2008-09-03  2:54       ` John Reiser
2008-09-03  9:39       ` Pekka J Enberg
2008-09-03  9:39         ` Pekka J Enberg
2008-09-03  5:08     ` Steve VanDeBogart
2008-09-03  5:08       ` Steve VanDeBogart
2008-09-03  9:27       ` Pekka Enberg
2008-09-03  9:27         ` Pekka Enberg
2008-09-03  9:40         ` Pekka Enberg
2008-09-03  9:40           ` Pekka Enberg
2008-09-03 15:42         ` Steve VanDeBogart
2008-09-03 15:42           ` Steve VanDeBogart
2008-09-04  7:33           ` Pekka Enberg
2008-09-04  7:33             ` Pekka Enberg
2008-08-29 23:18 ` [uml-devel] [PATCH 6/6] VM: Annotate vmalloc Steve VanDeBogart
2008-08-29 23:18   ` Steve VanDeBogart

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=20080901154743.GA7584@c2.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=andi@firstfloor.org \
    --cc=dkegel@google.com \
    --cc=jiayingz@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=vandebo-lkml@NerdBox.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.