$  Copyright(c) 2002 Sun Microsystems, Inc. All rights reserved.
$  Use is subject to license terms.


$ VERBOSE          1 - 1999
$ INFO          2000 - 3999 (also used for LOGFILE and CONSOLE messages)
$ WARNING       4000 - 5999
$ ERROR         6000 - 7999
$ FATAL         8000 - 9999


$ --------------------------------------------------
$ VERBOSE messages
$ --------------------------------------------------

1	"%s"
2	"Assign 0x%08x (%lld) bytes (%lld pages) of virtual memory."
3	"Specified 0x%08x (%lld) bytes (%lld pages) of virtual memory."
4	"Allocated 0x%08x (%lld) bytes (%lld pages)."
5	"Virtual memory test: Testing virtual memory from \n\
 address 0x%08lx to 0x%08lx. %lld Mbytes (%lld pages).\n\
 Will write to entire range before checking."\n
6	"Virtual memory test:\n  Testing virtual memory from address \
 0x%08lx to 0x%08lx.\n  Will write and read memory (%lld Mbytes) 1 page at a time for %lld pages."\n
7	"\tTested %ld Blocks of (64 MB)"	
8	"\tTesting Block %d (<64 MB)"	
9 "User Specified Pattern 0x%08lx"
10 "User has Not specified any Data pattern , Test will use 0x%08lx"
11"Test Pattern = 0x%08lx"
12 "%s( Pre-defined patterns are not used by this Test )" \n
13 "%lld"
$ --------------------------------------------------
$ INFO 2000
$ --------------------------------------------------

2000	"%s"

2001	"FAILURE %d %s: found %d contiguous bytes that miscompared:\n"

2002	"vmem test specific arguments:\n\
 amount=#:  Mbytes of memory to be tested, instead of the max. available.\n\
 reserve=#: Mbytes of memory to reserve in addition to default.\n\
 bdinfo=#:  Provides memory board number information.\n\
            eg. if board 0 and 5 have memory, then bdinfo=33 (2**5+2**0).\n\
 cerr=#:    Specifies the number of noncontiguous errors to be recorded when \n\
            memory errors occur. The maximum number is set to 10.\n\
 type1=value: type1 is sequential test. value is Enabled or Disabled.\n\
   pp1=value: select from address,walk_0,walk_1,Checkerboard,0x00000000,\n\
0xffffffff,0x5aa55aa5,0xdb6db6db,random,UserDefined\n\
 type2=value: type2 is File cache test.value is Enabled or Disabled\n\
   pp2=value: select from address,walk_0,walk_1,Checkerboard,0x00000000,\n\
0xffffffff,0x5aa55aa5,0xdb6db6db,random,UserDefined\n\
 type3=value: type3 is Random address test. value is Enabled or Disabled.\n\
   pp3=value: select from Checkerboard,0x00000000,0xffffffff,0x5aa55aa5,\n\
0xdb6db6db,UserDefined\n\
 type4=value: type4 is page_striding test. value is Enabled or Disabled.\n\
   pp4=value: select from Checkerboard,0x00000000,0xffffffff,0x5aa55aa5,\n\
0xdb6db6db,UserDefined\n\
 type5=value: type5 is march_c test.value is Enabled or Disabled.\n\
   pp5=value: select from Checkerboard,0x00000000,0xffffffff,0x5aa55aa5,\n\
0xdb6db6db,UserDefined\n\
 type6=value: type6 is Block_Copy test.value is Enabled or Disabled\n\
 address: means address \n\
 walk_1: means walk one from starting address to ending address\n\
 walk_0: means walk zero from starting address to ending address\n\
 0x00000000: menas all 0s\n\
 0x5aa55aa5: means Use 0x5aa55aa5 pattern \n\
 0xdb6db6db: means Use 0xdb6db6db pattern \n\
 Checkerboard: means Use 0x55555555 and 0xaaaaaaaa patterns \n\
 random: means Use random data pattern \n\
 UserDefined: means Use pattern which specified by up= (see below)  \n\
 up=0x<hexdecimal>:\teg. 0x2a341234\n\
 mode=Page|Regular:\tPage - write/read memory 1 page at a time\n\
                   \tRegular - write/read the entire assigned memory\n"

2003"\nNotes:\n\
    vmem saves a default amount of virtual memory for the OS, but the\n\
    reserve argument will override the default.\n\
    The test pattern is simply the memory location's virtual address.\n" 

2004	"Test description:\n\
    Vmem is the UNIX virtual memory test.  It is designed to isolate virtual\n\
    memory errors in the system under various stress levels.  Vmem probes\n\
    the kernel for the amount of virtual memory available."

2005	"After reserving \n\
    some memory for other UNIX processes, vmem will allocate the rest for\n\
    testing.  The amount of virtual memory in the system depends on how\n\
    much swap space you have in the system.\n" 

2006 	"\n\
    By default, vmem will write to the entire range of memory being tested,\n\
    and then go back to the starting address and begin reading and\n\
    comparing data.  If the run_on_error flag is not set (the default),\n" 

2007	 "\
    then any miscompare errors will be displayed and the checking is\n\
    terminated.  The range will then be re-read (no write) and the data\n\

    will be displayed again.  If the run_on_error flag is set, then any\n" 

2008	"\
    miscompare errors found will be recorded in an array and displayed\n\
    after the entire range is checked, then the entire range will be\n\
    re-read (no write) and the miscompared data will be displayed again.\n" 

2009	"\
    If the \"page\" flag is used, then vmem will write and read 1 page at\n\
    a time.  The page is mmap()'ed to the file /tmp/vmem.page and flushed\n\
    out to disk after the write and will be paged-in again when read.\n" 

2010	"\
    In page mode, if the run_on_error flag is set, then any miscompare\n\
    errors found will be recorded in an array and displayed after each\n\
    page is checked.\n" 

2011 "Test style not implemented. "



$ --------------------------------------------------
$ WARNING messages
$ --------------------------------------------------

4000	"%s"
4001	"sysinfo(SI_PLATFORM) failed: %s."
4002	"Maximum allowed size of heap allocation is (0x%x), 2GB is a reference limit. Go ahead, if the system indeed has hugh memory > 2 GB."
4003	"Cannot lock page at virtual address 0x%lx: %s."
4004	"Cannot open(%s): %s."
4005	"Cannot get physical address for virtual address 0x%lx: %s."
4006	"BDINFO is NULL."
4007	"kvm_open() failed."
4008	"kvm_getproc() failed."
4009	"kvm_physaddr() failed. Cannot get physical address for virtual address 0x%lx."
4010    "NO Data Pattern Selected. Tests will use default pattern(s)."
4011    "Cannot unlock page at virtual address 0x%lx: %s."
4012	"Some Test(s) will run with Default pattern."
4013	"\nEither test size (amount) is not specified OR amount = 0 MB.\n\
Test will use  all the available free swap space on the system for testing"

$ --------------------------------------------------
$ ERROR messages
$ --------------------------------------------------

6000	"%s"
6001	"setrlimit(RLIMIT_DATA) failed to set to RLIM_INFINITY: %s."
6002	"Test terminated after finding maximum number of noncontiguous errors."
6003	"msync() failed: %s."
6004	"Test terminated after finding miscompared data."


$ --------------------------------------------------
$ FATAL messages
$ --------------------------------------------------

8000	"%s"
8001	"Test completed. %d noncontiguous miscompare errors found.\n\
	 Check the info log file for details.\n"
8002	"Swap space exhausted. Increase swap space to allocate at least %lldMB from the process heap."
8003	"Attempt to reserve more than what's been assigned."
8004	"valloc(0x%x) failed: %s."
8005	"open(%s) failed: %s"
8006	"mmap() virtual address 0x%x to %s failed: %s"
8007	"munmap(0x%x) failed: %s."
8008	"close() failed on %s: %s."
8009	"Not enough space to store miscompare information."
8010	"swapctl() failed: %s."
8011	"calloc() failed: %s."
8012	"getitimer() error: %s"
8013	"User Defined Pattern %s  is invalid : %s\n"
8014	"Test pattern style %s is invalid\n"
8015	"\"amount\" option need a number in MB.\n"
8016	"\"amount2\" option need a number in MB.\n"
8017	"\"physmem\" option need a number in MB.\n"
8018	"\"reserve\" option need a number in MB.\n"
8019	"Specify BOARD INFO map.\n"
8020	"Specify User defined Pattern!!.\n"
8021	"Specify Pre-defined Pattern!!.\n"
8022	"malloc() failed: %s."
8023	"Couldn't open file %s: %s."
8024	"llseek() to address 0x%lx failed (%s)."
8025	""%s Check Sum Error.\n"
8026	"read() at address 0x%lx failed (%s)."
8027	"write() at address 0x%lx failed (%s)."
8028	"Specify test method!!."
8029	"No Test Method is Selected" 

$ --------------------------------------------------
$ PROBE messages
$ --------------------------------------------------

10000	"sysinfo failed\n"
10001	"vmem_probe: get_mem_board() returned NULL.\n"
10002	"vmem_probe: No memory boards. get_mem_board(): %s.\n"
10003	"testprobe_vmemtest: swapctl() failed: %s"
