Re: [uml-devel] running UserModeLinux under Valgrind(memcheck)

2008-01-04 Thread Jeff Dike
On Thu, Jan 03, 2008 at 05:08:23PM +0100, Geert Uytterhoeven wrote: > I think he means how to handle the following from include/linux/gfp.h in > valgrind: > > struct page *alloc_pages(gfp_t gfp_mask, unsigned int order); > unsigned long __get_free_pages(gfp_t gfp_mask, unsigned int order);

Re: [uml-devel] running UserModeLinux under Valgrind(memcheck)

2008-01-03 Thread Geert Uytterhoeven
On Thu, 3 Jan 2008, Jeff Dike wrote: > On Wed, Jan 02, 2008 at 02:42:20PM -0800, John Reiser wrote: > > In particular, I'm confused by allocations > > which return a "page": either "struct page *", or a "char *" with > > an aligned group of char of size PAGE_SIZE in the virtual address space. > > H

Re: [uml-devel] running UserModeLinux under Valgrind(memcheck)

2008-01-02 Thread Jeff Dike
On Wed, Jan 02, 2008 at 02:42:20PM -0800, John Reiser wrote: > It looks more complicated to me. > > When include/linux/slab.h is in view, then I trace > (where indentation indicates logical call [inline, or physical call]): > kmalloc include/linux/slab.h > __kmalloc mm/slab.c > __d

Re: [uml-devel] running UserModeLinux under Valgrind(memcheck)

2008-01-02 Thread John Reiser
Jeff Dike responded: John Reiser wrote: >>The web page http://bitwagon.com/valgrind+uml/index.html >>now exists with news, history, commentary, scripts, links > You refer to kmalloc and kfree as keeping object state intact between > kfree and kmalloc, thus not being semantically the same as mall

Re: [uml-devel] running UserModeLinux under Valgrind(memcheck)

2008-01-02 Thread Jeff Dike
On Tue, Jan 01, 2008 at 01:24:49PM -0800, John Reiser wrote: > The web page http://bitwagon.com/valgrind+uml/index.html > now exists with news, history, commentary, scripts, links > on getting User Mode Linux for i686 to run under memcheck on i686. You refer to kmalloc and kfree as keeping object

Re: [uml-devel] running UserModeLinux under Valgrind(memcheck)

2008-01-01 Thread John Reiser
The web page http://bitwagon.com/valgrind+uml/index.html now exists with news, history, commentary, scripts, links on getting User Mode Linux for i686 to run under memcheck on i686. A standalone patch http://bitwagon.com/valgrind+uml/mc_main-asap.patch to valgrind-3.3.0 implements "--complain-as

Re: [uml-devel] running UserModeLinux under Valgrind(memcheck)

2007-12-31 Thread Jeff Dike
On Thu, Dec 27, 2007 at 10:38:21AM -0800, John Reiser wrote: > Patches have been developed which enable UserModeLinux for i686 to > run under the memcheck tool of Valgrind on i686. Thus it is possible > to check dynamically the memory accesses made by a running Linux kernel > against memcheck's mo