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

$ Message ID ranges:
$ VERBOSE  1 ~ 1999
$ INFO     2000 ~ 3999
$ WARNING  4000 ~ 5999
$ ERROR    6000 ~ 7999
$ FATAL    8000 ~ 9998
$ 9999 is reserved by test library for old style messages.
$ 0 is reserved and is an invalid message for all tests.
$ L1_CALLBACK_MSG 1999
1999	"Message recieved from VTS kernel: Type %d %s\n"


$ *********************************************
$ VERBOSE/DEBUG messages
$ *********************************************
$ L1_START_MSG 1
1	"Initiating L1 cache stressing test for processor with cpu-id =%d ..."
$ L1_PASSCOUNT_MSG 2
2       "Thrash set to %lu iterations, for processor with cpu-id = %d"
$ L1_WRVCYCLE_MSG 3
3       "Thrashing L1 cache of processor with cpu-id = %d ..."
$ L1_END_MSG 4
4       "L1 cache stressing complete for processor with cpu-id = %d"
$ L1_BUFFSIZE_MSG 5
5	"L1 test buffer set to %lu kbytes for processor with cpu-id = %d"
$ L1_PC_SOFT_HIT 6
6 "\nFor cpu id = %d, FP Loads that hit a P-Cache line  per second that \n was prefetched by software prefetch instruction = %lld hits/sec"
$ L1_COM_ARG 7
7 "cmdline M= option value is null. Use the default value=all CPUs"
$ L1_MRC_RWSTRDNG 8
8 "Starting L1 March test with row striding for cpuid = %d\n"
$ L1_MRC_CLSTRDNG 9
9 "Starting L1 March test with column striding for cpuid = %d"
$ L1_PCSS_STRT 10
10 "Starting March SS test on Prefetch Cache of  processor with cpu-id = %d"
$ L1_PCSS_END 11
11 "Finished March SS test on  Prefetch Cache of processor with cpu-id = %d"
$ L1_PCSAM_START 12
12 "Starting March SAM test on Prefetch Cache of  processor with cpu-id = %d"
$ L1_PCSAM_END 13
13 ""Finished March SAM test on Prefetch Cache of processor with cpu-id = %d"
$ L1_ECC_START 	 14
14	"Starting ECC Monitor for l1dcachetest"
$ L1_LOCK_FAILD
15	"Failed to lock the allocated memory"
$ L1_PC_ECU_STRT 16
16	"Starting ECU to Prefetch Cache Data path testing for cpu-id = %d"
$ L1_PC_ECU_END 17
17	"Finished ECU to Prefetch Cache Data path testing for cpu-id = %d"
$ L1_STQ_SIU_STRT 18
18	"Starting Store Queue to SIU Data path testing for cpu-id = %d"
$ L1_STQ_SIU_END 19
19	"Finished Store Queue to SIU Data path testing for cpu-id = %d"
$ L1_ECU_DC_STRT 20
20	"Starting ECU to Data Cache Data path testing for cpu-id = %d"
$ L1_ECU_DC_END 21
21	"Finished ECU to Data Cache Data path testing for cpu-id = %d"
$ L1_CPC_VERSION_MISMATCH 22
22    "cpc library version mismatch: %s"
$ L1_CPC_FUNC_FAILED      23
23    "cpc library function call %s failed : %s"
$ L1_CPC_CANT_MEAS      24
24    "Can not measure Events : %s"
$ L1_CPC_CANT_BIND      25
25    "Can't bind cpc event to lwp %d, %s: %s"
$ L1_LIBCPC_MSG 	26
26	"SUNWcpc, SUNWcpcu(x) packages not installed. Performance counters will not be available."
$ L1_CPC_NOTAVAILABLE     27
27	"Performance counters will not be available"
$ L1_MSG_CPC_INIT_FAILED 28
28 	"CPC interface initialization failed; %s: %s\n Performance counter will not be sampled"
$ L1_CPC_COUNTINFO	29
29	"L1 cache %s%s %llu, %s %llu for Processor with cpuid = %d"
$ L1_MIXED_CONF		30
30	"Mixed configuration of Processor is detected, performance counter will be disabled\n\
         as libcpc V2 is not supported for Mixed configuration System" 
$ *****************************************************
$ INFO messages (includeing INFO, CONSOLE, and LOGFILE)
$ No double quotes (" ") is needed for INFO messages.
$ *****************************************************
$ TEST_USAGE_MSG 2000
2000	%s specific arguments: \n\
	M=0+1+2+3+.+N...   (N = Cpu-id of online CPUs to be tested)\n\
	count=N         (N = Thrash Cycles {1...1024})\n\
	pcloop=N	(N = Number of loops, the Prefetch Cache subtests\n\
		             to be executed\n\
	em      = Enabled|Disabled ECC monitor [Disabled]\n\
	threshold = Max number of ECC error reports [1] \n\
	perf    = Enabled|Disabled performance counter [Disabled] \n\
	NOTE: Prefetch Cache subtests are only supported for UltraSPARC-III\n\
	family of processors/UltraSPARC-IV \n\
	Examples: \n\
	i) ./l1dcachetest -x	\n\
	Both Data Cache and Prefetch Cache subtests will run with \n\
	default loop value, pcloop=256,count=256[Default Value]   \n\
	All online CPUs will be selected for testing. \n\
	ii) ./l1dcachetest -x -o M=8+9,count=256,pcloop=0,em=Enabled,\n\
	    threshold=2,perf=Enabled \n\
	Here Data Cache subtests will run with loop value count=256 \n\
	whereas, pcloop=0, will disable the Prefetch Cache subtests	\n\
	To unselect Data Cache subtests or Prefetch Cache subtests, set \n\
	count=0 or pcloop=0 \n\
	iii) ./l1dcachetest -x -o M=8,count=400	\n\
	Data Cache subtests will run with loop value = 400 \n\
	and Prefetch cache Subtests will run with default loop count[256]\n\
	iv) /l1dacachetest -x -o pcloop=400	\n\
	Data Cache subtests will run with default loop count value[256] \n\
	whereas Prefetch Cache Subtests will run with loop count=400 \n\
	All online CPUs will be selected for testing \n
$ L1_CONNECT_MSG 2001
2001	"Connected : CPU (cpu-id = %d ) Level 1 cache : size %d Kbytes line %d bytes associativity %d"
$ L1_DISCONNECT_MSG 2002
2002	"NotConnected : CPU(cpu-id = %d ) Level 1 cache"
$ L1_ECC_SUMRY	2004
2004	\nECC error summary (After reaching the Threshold)\n\
Found %d correctable ECC errors during the current pass\n\
Will Terminate l1dcachetest instance#%d through pass#%d\n\
Test will  continue to run if run_on_error! is set system wide\n\n\t%s
$ L1_ECC_NEW	2005
2005 	\nSummary of New ECC errors found while completing pass# %d \
(instance %d)
$ L1_ECC_PER	2006
2006    \n\Found %d persistent ECC errors on %s\n
$ L1_ECC_STKY	2007
2007	\n\Found %d sticky ECC errors on %s\n
$ L1_ECC_INTMNT	2008
2008	\n\Found %d intermittent ECC errors on %s\n
$ L1_ECCFOUND	2009
2009	\n\Found %d ECC errors on %s
$ L1_FMA_ERR_MSG 2010
2010 %s 
$ TEST_USAGE_MSG_x86 2011
2011	%s specific arguments: \n\
	M=0+1+2+3+.+N...   (N = Cpu-id of online CPUs to be tested)\n\
	count=N         (N = Thrash Cycles {1...1024})\n\
	Examples: \n\
	i) ./l1dcachetest -x	\n\
	Data Cache subtest will run with \n\
	default loop value, count=256[Default Value]   \n\
	All online CPUs will be selected for testing. \n\
	ii) ./l1dcachetest -x -o M=8+9,count=256,\n\
	Here Data Cache subtests will run with loop value count=256 \n\
	iii) ./l1dcachetest -x -o M=8,count=400	\n\
	Data Cache subtests will run with loop value = 400 \n\
	All online CPUs will be selected for testing \n
$ L1_CONNECT_MSG 2001
$ 
$*********************************
$ WARNING messages
$*********************************
$ L1_TLIB_FAIL 4007
4007	"Test lib call %s failure: return value %d;Taking default values for cache size etc.\n"
$ L1_THRCRT_FAILED 	4013
4013	"Failed to create l1dcachetest thread on CPU%d. It will not be tested"
$ ********************************
$ ERROR messages
$ ********************************
$ L1_RVERROR_MSG 6000
6000    "Read/Verify of L1 cache failed for processor with cpu-id = %d"
$ L1_STRESSERROR_MSG 6001
6001    "Stress of L1 cache failed for processor with cpu-id = %d"
$ L1_NOBIND_MSG 6002
6002    "No process bind information specified"
$ L1_BINDFAIL_MSG 6003
6003    "Bind to proccessor %d failed"
$ L1_MISCOMPARE 6004
6004 "Failed on read & compare, while doing %s test  : \n\
cpu-id = %d, Read = %llx, Expected = %llx" \n\
Probable_Cause(s): <Bad Processor?> <Bad Memory?> <System error?> Recommended_Action(s): <Isolate the error> <If the problem persists, call your authorized Sun service provider.>

$ L1_ECC_ERR	6005
6005	Stopping after finding %d ECC errors \n\
For more details on ECC errors occurred, see system log files\n\t%s\n
$ L1_ECC_ERR_FMA	6006
6006	Stopping after finding %d correctable ECC errors \n\
Use \"fmdump -eV\" to get complete listing of the ereport\n\t%s\n

$ *******************************
$ FATAL messages
$ *******************************
$ L1_ARGERROR_MSG 8000
8000   "Please enter an appropriate value, %s=?"
$ L1_WRNGOPT_FRMT 8002
8002 "M= option value %s has wrong format"
$ L1_SYSCALL_FAIL 8003
8003 "System/Library  call %s failure: %s"
$ L1_NOTVALID_CPU 8004
8004 "M= option value %s is a invalid or offlined cpu-id  that l1dcachetest can test"
$ L1_ILGL_OPT	8005
8005 "Illegal l1dcachetest option"
$ L1_OLDNOT_VALID_CPU 	8006
8006 "dev=cpu-unit%d is a invalid or offlined cpu-id  that l1dcachetest can test"
$ L1_ALLOCERROR_MSG 8007
8007    "failed to allocate  test buffer"

$ TESTLIB_FAIL   8008
8008    "Testlib call %s failed:Return value %d"

$ ***************************
$ PROBE messages
$ ***************************
10001 "System call %s failure: %s"
10002 "Failed to find out the CPU type" 
10003 "Failed in vts_tlib_get_cpu_config()"
10004 "ERROR: Mix Configuration is  detected. Perfcounters will be disabled.\n\
	libcpc is not mixed configuation aware"
10003 "Could not get the online cpu list"
