> >> +  while (num_pages > 0) {
> >> +          ret = read(pm, &pagemap, sizeof(unsigned long long));
> >> +          if (ret < 0)
> >> +                  tst_brkm(TFAIL | TERRNO, NULL, "Read pagemap failed");
> >> +          /*
> >> +           * Check if the page is present.
> >> +           */
> >> +          if (!(pagemap & (1ULL<<63))) {
> >> +                  close(pm);
> >> +                  fclose(maps);
> >> +                  return 1;
> > 
> > I would perpahs be more verbose here and go over all of the pages and
> > list these that are not mapped, but that is a minor nitpick. 
> > 
> 
> You mean listing every page which is not present?

Yes please, nothing fancy just short message with address of the page
and its ordering number in the mapping printed using tst_resm with
TINFO.

-- 
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to