src/worker.cc
// Fill this page with a random pattern.
Fill this page with a random pattern.
Fill this page with a random pattern .
bool FillThread::FillPageRandom(struct page_entry *pe) {
  if (pe == 0) {
    logprintf(0, "Process Error: Fill Page entry null\n");
    return 0;
  }
  if ((patternlist_ == 0) || (patternlist_->Size() == 0)) {
    logprintf(0, "Process Error: No data patterns available\n");
    return 0;
  }
  pe->pattern = patternlist_->GetRandomPattern();
  if (pe->pattern == 0) {
    logprintf(0, "Process Error: Null data pattern\n");
    return 0;
  }
  return FillPage(pe);
}
bool FillThread :: FillPageRandom ( struct page_entry * pe ) { if ( pe == 0 ) { logprintf ( 0 , " \n " ) ; return 0 ; } if ( ( patternlist_ == 0 ) || ( patternlist_ -> Size ( ) == 0 ) ) { logprintf ( 0 , " \n " ) ; return 0 ; } pe -> pattern = patternlist_ -> GetRandomPattern ( ) ; if ( pe -> pattern == 0 ) { logprintf ( 0 , " \n " ) ; return 0 ; } return FillPage ( pe ) ; }
Fill this page with a random pattern.
Fill this page with a random pattern .
// Error check arguments. // Choose a random pattern for this block. // Actually fill the page.