Re: [Fwd: Re: using remap_page_range()]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Jim Bauer <jfbauer@nfr.com> wrote:

> >  
> > I am not sure I understand that. What do you mean by
> > 'gdb saw new ones'? How exactly did you check that in
> > gdb?
> 
> I added some code the to kernel module to scribble
> a pattern over the old buffer when I switch to the new
> one.
> I was filling each byte with the value 0x62.
> 
> The user-space test program had something like...
> 
> 	if (data->len > 2000)
> 		printf("length (0x%x) is too big\n", data->len);
> 
> and it prints out 0x62626262 for the length (old buffer
> contents).
> But if I use gdb to print out data->len, at that point, I
> get a reasonable/expected value.

Is it possible that the value of data->len is in a
register?
If so, the program may not re-read the actual value before
printing. I think a better test is to dump the contents of 
the full buffer.

-Ravi.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux