$ Copyright 1998-2003 Sun Microsystems, Inc.  All rights reserved.
$ Use is subject to license terms.

$ #ident	"@(#)mptest.msg	1.21	03/03/04 SMI"

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


$ ------------VERBOSE-----------------------------
$ MPTEST_CALLBACK_MSG	1
1 "Message recieved from VTS kernel: Type %d %s\n "
$ MP_TESTCASE_START	2
2 "MP test case %s started with ordinal %d"
$ MP_TESTCASE_END	3
3 "MP test case %s ended with ord %d"

$ ------------VERBOSE-----------------------------
$ V_lock_unlock_start
4 "Lock/Unlock Subtest: START"

$ V_lock_unlock_end
5 "Lock/Unlock Subtest:  END"

$ V_io_test_start
6 "Data I/O Subtests:  START"

$ V_io_test_end
7 "Data I/O Subtest:  END"

$ V_shmem_start
8 "Shared Memory Subtest:  START"

$ V_shmem_end
9 "Shared Memory Subtest:  END"

$ V_single_cache_test_start
10 "Single Cache Line Subtest:  START"

$ V_next_multi_line_cache
11 "Multi Cache Line Subtest: advance to next cache line"

$ V_single_cache_test_end
12 "Single Cache Line Subtest: END"

$ V_multi_cache_test_start
13 "Multiple Cache Line Subtest: START"

$ V_multi_cache_test_end
14 "Multiple Cache Line Subtest: END"

$ V_starting_iotest
15 "Starting data io subtest %d"

$ V_starting_shmem_proc_p1
16 "Begin of shmem subtest p1  proc no. %d cpu mask %016llx"

$ V_starting_shmem_proc_p2
17 "Begin of shmem subtest p2  proc no. %d cpu mask %016llx"

$ V_shmem_proc_end
18 "End of shmem subtest  %d"

$ V_mplock end 
20 "End of Lock Subest %d: p%d"

$ I_connect_msg
21 "Connected <%3s>"

$ I_mlock_err
22  "mlock error.  %s"  Probable_Cause(s): < Overly loaded system> <Processor error?> Recommended_Action(s): <Reduce System Load> <Isolate the bad processor.>


$
24   "Number of processors is %d"

$
26   "End of IO Subtest %d: p%d"

$
28   "End of  Multi-Line Cache Subtest %d: p%d "

$ MP_CLASS_START
29 "%s started"

$ MP_CLASS_END
30 "%s over"




$ INFO Messages	TBD - Reclassify?

$ 2000	ARG_CHECK_FAILED
2000	Invalid argument for option %s

$ 2001 MP_TEST_USAGE
2001	%s specific arguments \n\
Generic Arguments \n\
	M=0+1+2+3+... \n\
		CPU Mask    - Specified by CPUIDs separated by a "+" \n\
	method=ECacheCoherency+IOCacheCoherency+SharedMemory+SynchronizationPrimitives\n\
		Class of    - Used to specify one or more class of test methods, by\n\
		test method	  default Synchronization Primitives and Ecache Coherency\n\
					  are run. \n\
	tone=ParallelMode+Random \n\
		Test Tone   - Used to specify the test tone, default is normal.\n\
	count=Number of test iterations \n\
	\n\
MPCons test case specific options: \n\
	mpcons_tone=mlockBuffer+AtomicMode+ByteMode+ImmediateMode+RandomMode+ReverseMode+PrefetchMode+Trigger+Offset\n\
		mlockBuffer   - Lock the shared buffer in memory\n\
		AtomicMode    - Enable Atomic mode\n\
		ByteMode      - Enable Byte mode\n\
		ImmediateMode - Enable Immediate mode\n\
		RandomMode    - Enable Random Mode\n\
		ReverseMode   - Reverse direction to decrement through memory\n\
		PrefetchMode  - Enable use of V9 prefetch instructions\n\
		Trigger       - Enable LA trigger on error\n\
		Offset        - Enable use of	linesize buffer offsets\n\
		This option is not mandatory. By default, the mpcons_tone assumes a\n\
		normal mode of operation. \n\
	mpcons_numtmout=[1-10]\n\
		Selects number of timeout iterations\n\
	mpcons_wait=<count>\n\
		Force CPU 1 to write first if number of CPUs is less than <count>\n\
	mpcons_loops=<value>\n\
		Set loops to specified <value>\n\
	mpcons_memsize=<size>\n\
		Use specified memory <size> (MB). This should always be set to the\n\
		default value.\n\
	mpcons_seed=<seed>\n\
		Set random number <seed> to specified value.\n\n\n

$ Warning Messages
$ MP_TEST_CASE_CLEANUP_FAIL	4000
4000	Cleanup failed for %s

$ MP_TSTCLASS_CLEANUP_FAIL 
4001	Cleanup failed for %s

$
30   "End of Shmem Subtest %d: p%d"

$ ------------------------------------------------
$ 6002	TEST_USAGE_MSG 
6002 "%s specific arguments: \n\
	M=<processors to be enabled>\n\
	   : 256 hexdecimal number to represent the processors\n\
	method=ECacheCoherency+IOCacheCoherency+SharedMemory+SynchronizationPrimitives \n\
	   : One or more class of test methods selected \n\
	tone=ParallelMode+Random \n\
	   : Selection of test tone \n\
	count=Number of test iterations \n\
	coverage=% Coverage for cache"
	


$ /***** error message ******/

$ E_mplock_failed
6000 "mp lock failed" Probable_Cause(s): <Faulty Processor?> Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>

 
$ E_number_tests_err
6001 "All subtests are disabled" Probable_Cause(s):  Probable_Cause(s):   Probable_Cause(s):  <Parameter error> Recommended_Action(s): <At least enable one subtest>

$ E_thr_setconcurrency_err
6002 "thr_setconcurrency error" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>


$ E_thr_create_err
6003 "Error in creating threads: %s" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ E_thr_join_err
6004 "thr_join() thread %d error status: %x"  Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ E_proc_mask_err
6005 "Processor Number Error: Expect %d Was  %d" Probable_Cause(s): <Some processors are disappeared from processor mask> Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>


$ E_uadmin_err
6006 "Failed in system call uadmin, errno = %d, sys_errlist = %s" Probable_Cause(s): <Syetem load too heavy?> <Select processor which does not exist> <System error?> Recommended_Action(s): <Reduce the system load> <Check the command line and option file> <If the problem persists, call your authorized Sun service provider.>

$ E_getnextbitmsk_err
6007 "Failed in function getnextbitmsk!" Probable_Cause(s):  <System error?> Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>

$ E_proc_mask_err2
6008 "Processor Mask Error: check mask 0x%016llx cpu mask  0x%016llx" Probable_Cause(s): <Some processors are disappeared from processor mask> Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>


$ E_shmget_err
6009 "Failed to get shared memory, err = %s" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ E_shm_create_err
6010 "Failed to create shared memory, err = %s" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ E_shmem_fail
6011 "Shared Memory Subtest:  Process %d, Processor %d, *curr_add %x curr_addr %x, cpu_mask %llx, FAIL" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ E_rdm_compare_err
6014 "Failed on read & compare: Processor %d, read=%x, exp=%x"
 Probable_Cause(s): <Bad Processor?> <System error?> Recommended_Action(s): <Isolate the error one> <If the problem persists, call your authorized Sun service provider.>

$ E_not_mp_system
6016 "Not a MP system!" Probable_Cause(s): <Faulty Processor?>  <Should not run mptest on this system> 
 

$ -------------------------------------------
$ F_open_file_err
8000 "Failed to open %s. Error: %s." Probable_Cause(s): <Not enough disk space>  <Permission error?>  <System error?> Recommended_Action(s): <Allocate disk space> <Check directory/file permission> <If the problem persists, call your authorized Sun service provider.>

$ F_valloc_err
8001 "Failed to create a page" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ F_mmap_err
8002 "mmap address space to device" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ F_mlock_err
8004  "mlock error.  %s"  Probable_Cause(s): < Overly loaded system> <Processor error?> Recommended_Action(s): <Reduce System Load> <Isolate the bad processor.>

$ 8003 is from cmptest. When a syscall from prominfo util fails, this message is called.
8003	"System call %s failure: %s"

$ F_no_test_to_run
8005 "All subtests are disabled"  Probable_Cause(s):  <Parameter error: None subtest is selected> Recommended_Action(s): <re-enter command line correctly: At least select one subtest>

$ F_cannot_run_mp
8006 "Can not run mptest!  You need to enable at least two processors."  Probable_Cause(s):  <Parameter error: You have selecte less than two processors for testing> Recommended_Action(s): <re-enter command line correctly: At least select two processors>

$ F_mutex_lock_err
8007 "mutex_lock error: %s\n" Probable_Cause(s): < The lock is already busy > Recommended_Actions(s): <Call your authorized Sun service provider.>

$ F_valloc_err2
8008 "alloc error:%s" Probable_Cause(s): <Syetem load too heavy?> <System error?> Recommended_Action(s): <Reduce the system load> <If the problem persists, call your authorized Sun service provider.>

$ F_mutex_unlock_err
8009 "mutex_unlock error: %s\n" Probable_Cause(s): < The lock has invalid data > Recommended_Actions(s): <Call your authorized Sun service provider.>

$ F_mask error
8010 "Cpu number %d: Expected ID %d. Was %d" Probable_Cause(s): <Some processors are disappeared from processor mask> Recommended_Action(s): <If the problem persists, call your authorized Sun service provider.>

$ DISABLED_CPU_SELECT	8014	
8014 "Processor %d is not online or does not exist" Probable_Cause(s): <User specified non-existant processor on the command line> <Processor selected is off-line> Recommended_Action(s): <Check the command line and option file> <If the problem persists, call your authorized Sun service provider.>

$ CPU_SELECT_OVERFLOW	8015
8015 "Processor %d greater than MAXCPU (1024)" Probable_Cause(s): <User specified non-existant processor on the command line> <Processor selected is off-line> Recommended_Action(s): <Check the command line and option file> <If the problem persists, call your authorized Sun service provider.>

$ MP_TST_RUN_FAIL         8100
8100 "Function MPtest run failed"

$ MP_TSTCLASS_RUN_FAIL    8101
8101 "Function %s failed"

$ MP_TSTMTD_RUN_FAIL      8102
8102 "Function %s failed"

$ MP_TSTCASE_RUN_FAIL     8103
8103 "Function %s failes"

$ MP_TMPFILE_ERR          8104    
8104 "Temp file create fail"

$ MP_SYSCALL_FAIL         8105    
8105 "Syscall/Lib call fail %s, error=%s"

$ MP_SHMALLOC_FAIL        8106    
8106 "Shared memory alloc failed"

$ MP_GLBL_INIT_FAILED	8016
8016 "Initialization of global data failed"
$ MP_RUN_FAIL	8017
8017	"MP test run failed" 
$ MP_TEST_CASE_RUN_FAIL	8018
8018	"MP Test method %s failed"
$ MP_TEST_CASE_RUN_FAIL	8019
8019	"MP Test case %s failed"
$ -----------------------------------------------------------------------
$ PROBE messages
$ -----------------------------------------------------------------------

10000	"The processor selected %d does not exist. Probably option file has invalid data.\n"
10001	"number_processors: %d.\n"
10002	"ERROR: Invalid parameter.\n"
10003	"ERROR: None sub-tests is enabled.\n"
10004	"ERROR: Must select 2 or more processors.\n"
