$  Copyright(c) 1998 Sun Microsystems, Inc.
# All rights reserved.
#
#

$  #ident "@(#)vmemtest.msg	1.4      01/07/27 SMI"




$ 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 (%d pages) of virtual memory."
3	"Specified 0x%08x (%lld) bytes (%d pages) of virtual memory."
4	"Allocated 0x%08x (%lld) bytes (%d pages)."
5	"Virtual memory test: testing from \
 address 0x%08x to 0x%08x.\n   Will write to entire range before checking."
6	"Recomparing memory (read only, no write) from \
 address 0x%x to 0x%x."
7	"Virtual memory test:\n  Testing virtual memory from address \
 0x%lx to 0x%lx.\n  Will write and read memory 1 page at a time for %d pages."
8	"0x%x: 0x%x"
9	"exp_pat 0x%x: obs_pat 0x%x"
10	"0x%lx: 0x%lx"
11	"exp 0x%lx: obs 0x%lx"
12	"0x%llx: 0x%llx"
13	"0x%ld"
14	"%ld"
15	"Test Pattern 0x%08x"
16	"Test Style %s  %d"	

$ --------------------------------------------------
$ INFO 2000
$ --------------------------------------------------

2000	"%s"

2001	"Recompare of memory: found %d miscompare errors \
 instead of the %d found during the first read."

2002	"Recompare of page %d: found %d miscompare errors \
 instead of the %d found during the first read."

2003	"Recompare of %s: found %d contiguous bytes that miscompared:\n"

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

2005	"vmem test specific arguments [defaults]:\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\
pp=address|walk_1|walk_0|0x00000000|0x5aa55aa5|0xdb6db6db|UserDefined\n\
	address:\t\taddress \n\
	walk_1:\t\t\twalk one	\n\
	walk_0:\t\t\twalk zero	\n\
	0x00000000:\t\tall 0s 	\n\
	0x5aa55aa5:\t\t0x5aa55aa5 \n\
	0xdb6db6db:\t\t0xdb6db6db \n\
	UserDefined:\t\tUse  pattern which specified by \n\
\t\t\t\tup=  \n\
 up=0x<hexdecimal>:     eg. 0x2a341234\n\
 mode=Page|Regular:     write/read memory 1 page at a time.\n"

2006	"\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" 

2007	"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."

2008	"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" 

2009 	"\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" 

2010	 "\
    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" 

2011	"\
    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" 

2012	"\
    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" 

2013	"\
    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" 

2014 "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."

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

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


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

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

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

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