Skip to content

Commit 4f1f2a5

Browse files
committed
Improve robustness
1 parent 3cd0ca4 commit 4f1f2a5

File tree

1 file changed

+142
-142
lines changed

1 file changed

+142
-142
lines changed

k3/log/category.go

+142-142
Original file line numberDiff line numberDiff line change
@@ -174,147 +174,147 @@ var (
174174
// Categories is a map of all categories. The key is the category name
175175
// and the description of the category.
176176
Categories = map[string]Category{
177-
"acfg": "acfg|Assembly Configuration Info|Key|Value",
178-
"alen": "alen|Alt enter",
179-
"allv": "allv|Alt leave",
180-
"alrp": "alrp|Alt repeat",
181-
"alwt": "alwt|Alternation wait: no alternative ready|Time at which to wake unless an alternative becomes ready",
182-
"asen": "asen|Altstep enter|Altstep name + parameters",
183-
"aslv": "aslv|Altstep leave|Altstep name + parameters",
184-
"bctr": "bctr|Backtrace event tracks frames visited by components|Component name and tracked frames",
185-
"coal": "coal|alive operation|Component name|Result: alive/killed",
186-
"cocr": "cocr|Component created|Component name|Alive-type indicator: alive/once",
187-
"codo": "codo|Evaluate component.done()|Component name|Outcome",
188-
"cofi": "cofi|Component finished executing behaviour|Final verdict of component",
189-
"cokd": "cokd|Evaluate component.killed()|Component name|Outcome",
190-
"coki": "coki|Component killed|Component name",
191-
"coru": "coru|running operation on component|Component name|Result: running/stopped",
192-
"cosp": "cosp|Component stopped|Component name",
193-
"cost": "cost|Component started|Name of behaviour function",
194-
"cpen": "cpen|Control part enter|Control part name",
195-
"cplv": "cplv|Control part leave|Control part name",
196-
"dbg1": "dbg1|Debug1|message",
197-
"dbg2": "dbg2|Debug2|message",
198-
"dbg3": "dbg3|Debug3|message",
199-
"dbug": "dbug|only for debug purpose|debug string",
200-
"deco": "deco|Decoded a message|Type of message|Encode attribute|Variant attribute|Extension attribute",
201-
"decv": "decv|decvalue|decoded value",
202-
"dtac": "dtac|Default activate|Altstep invocation",
203-
"dtde": "dtde|Default deactivate|Altstep invocation",
204-
"dten": "dten|Default enter|Default name + parameters",
205-
"dtlv": "dtlv|Default leave|Default name + parameters",
206-
"dump": "dump|Catalog item dump|item name|item detail",
207-
"else": "else|Evaluation of else clause|Always ready",
208-
"enco": "enco|Encoded a message|Type of message|Encode attribute|Variant attribute|Extension attribute",
209-
"fnen": "fnen|Function enter|Function name + parameters",
210-
"fnlv": "fnlv|Function leave|Function name + parameters + optional return value",
211-
"fxen": "fxen|External function enter|External function name + parameters",
212-
"fxlv": "fxlv|External function leave|External function name + parameters + optional return value",
213-
"getv": "getv|getverdict operation|Current verdict",
214-
"ilen": "ilen|Interleave enter",
215-
"illv": "illv|Interleave leave",
216-
"matc": "matc|Left-hand-side:value|Right-hand-side:template|List of mismatches (empty means matched)",
217-
"mpar": "mpar|module parameter|name|value",
218-
"paon": "paon|produces no log-line. To be used for switching on parameter logging for functions, altsteps, testcases",
219-
"perf": "perf|Performance Measurement|key|value",
220-
"pllg": "pllg|plugin related log message",
221-
"plod": "plod|Plugin loaded|Path to plugin|Plugin name|Plugin type",
222-
"ptck": "ptck|Evaluate port.check()|Port name|Match template|Outcome",
223-
"ptcl": "ptcl|Port cleared|Port name",
224-
"ptcn": "ptcn|Port connected|First port name|Second port name",
225-
"ptdi": "ptdi|Port disconnected|First port name or all|Optional second port name",
226-
"ptds": "ptds|Item discarded at port|Port name|Item detail (message, call, reply, exception) + value|Reason for discard",
227-
"ptha": "ptha|Port halted|Port name",
228-
"ptmp": "ptmp|Port mapped|Component port name|System port name",
229-
"ptpu": "ptpu|Port published to external connector|Port name",
230-
"ptqu": "ptqu|Item queued to port|Port name|Item detail (message, call, reply, exception) + value",
231-
"ptre": "ptre|Evaluate port.receive() on empty queue|[parameter name->]Port name|Match template",
232-
"ptrx": "ptrx|Evaluate port.receive()|[parameter name->]Port name|Match template|Outcome",
233-
"ptsd": "ptsd|Port send|Component port|System port|Message type name|Message value",
234-
"ptsp": "ptsp|Port stopped|Port name",
235-
"ptst": "ptst|Port started|Port name",
236-
"pttr": "pttr|Evaluate port.trigger()|Port name|Match template|Outcome",
237-
"ptun": "ptun|Port unmapped|Component port name or all|Optional system port name",
238-
"rvon": "rvon|produces value return. To be used for switching on return value logging for functions",
239-
"sdbg": "sdbg|SnapDebug|message",
240-
"setv": "setv|setverdict operation|Previous verdict|New verdict|Reason",
241-
"tcen": "tcen|Testcase enter|Testcase name + parameters",
242-
"tcfi": "tcfi|Testcase finished|testcase name|verdict",
243-
"tclv": "tclv|Testcase leave|Testcase name + parameters",
244-
"tcst": "tcst|Testcase start|testcase name|guard duration",
245-
"tmrd": "tmrd|read operation|Timer name|Expired duration",
246-
"tmru": "tmru|running operation for timer|Timer name|Result: false/true",
247-
"tmsp": "tmsp|Timer stop|Timer name",
248-
"tmst": "tmst|Timer start|Timer name|Timer duration",
249-
"tmto": "tmto|Evaluate timer.timeout()|Timer name|Outcome",
250-
"uact": "uact|User action|User message",
251-
"ulog": "ulog|User action|User log",
252-
"vach": "vach|Value changed|Type name|Value name|New value",
253-
"vrsn": "vrsn|Program version information|version number as X.Y.Z",
254-
"wait": "wait|Wait (real-time)|Time at which to wake",
255-
"ACDC": "ACDC|Ambiguous Codec found|Name of conflicted type|Name of conflicting type",
256-
"ARGI": "ARGI|Insufficient arguments",
257-
"ARGS": "ARGS|Spurious (unexpected) argument|Text of the unexpected argument",
258-
"ARRV": "ARRV|Array bounds violation|Value name|Erroneous array index",
259-
"ARTE": "ARTE|More than one route possible for transmit operation (ambiguous)",
260-
"ARUN": "ARUN|Already running|Identity of already running thread",
261-
"BREF": "BREF|Broken reference: indicates a reportable runtime bug|Erroneous offset",
262-
"CONE": "CONE|Connection error|First port name|Second port name|Error detail",
263-
"CONV": "CONV|Constraint violation|Type name|Constraint|Value name|Erroneous value",
264-
"DEAD": "DEAD|Deadlock: no alternative available",
265-
"DIRE": "DIRE|Discard report at port|Port name|Error detail",
266-
"DIV0": "DIV0|Divide by zero|Value name",
267-
"DKEY": "DKEY|Duplicated map key value inside assignment list|Partial assignment list|Key Value",
268-
"DOME": "DOME|Domain error|Value name",
269-
"DTDE": "DTDE|Default deactivate error|Default state",
270-
"FILE": "FILE|Failed to open a file|Named of file",
271-
"FLOW": "FLOW|Control flow error: indicates a reportable bug|Erroneous operation",
272-
"FOEX": "FOEX|Report a foreign exception during operation: indicates a bug to be reported|C++ RTTI information when available|Error detail",
273-
"ICST": "ICST|Content of the template|Error detail",
274-
"IGRP": "IGRP|Invalid group number in pattern match|Description of pattern|Requested invalid group number",
275-
"INOP": "INOP|Invalid operation|Operation detail",
276-
"LENE": "LENE|Length mismatch|Left value name|Left value length|Right value name|Right value length",
277-
"LIDE": "LIDE|Literal data error|Data type|Data in error",
278-
"LKUP": "LKUP|Lookup error (plugin system): no plugin offered requested service|Type of lookup that failed|First (or only) part of requested service|Second (optional) part of requested service",
279-
"MALF": "MALF|Malformed argument value|Erroneous option or argument|Erroneous value",
280-
"MANY": "MANY|Many valued|Value name",
281-
"MAPE": "MAPE|Mapping error|Component port name|System port name|Error detail",
282-
"NAME": "NAME|Broken name: indicates a reportable runtime bug|Erroneous name",
283-
"NOIM": "NOIM|Feature not implemented|Feature detail",
284-
"NRTE": "NRTE|No route found for transmit operation|Missing destination",
285-
"NSPR": "NSPR|No system port reference in unmap statement with parameters",
286-
"NULL": "NULL|Null value|Value name",
287-
"OMIT": "OMIT|Omitted value|Value name",
288-
"OPTM": "OPTM|Missing argument to option|Short or long form of the option name",
289-
"OPTS": "OPTS|Spurious (unexpected) argument to option|Short or long form of the option name",
290-
"OPTU": "OPTU|Unknown option|Short or long form of the option name",
291-
"OSUF": "OSUF|Object stack underflow (bug)",
292-
"PABV": "PABV|Parameter bound violation, probably from Codec|Erroneous index",
293-
"PAOV": "PAOV|Parameter 'out' violation: out or inout parameter not allowed|Name of erroneous parameter",
294-
"PARE": "PARE|Parse error (read value from string)|Value name|Erroneous input",
295-
"PATE": "PATE|Pattern error during parsing|Erroneous pattern|Error detail",
296-
"PLEX": "PLEX|Report a exception during plugin invocation: indicates a bug to be reported|Error context|Error detail",
297-
"PLOD": "PLOD|Plugin load error|Path to plugin|Plugin name",
298-
"PTFA": "PTFA|Port failed in external connector|Failure detail",
299-
"RNGE": "RNGE|Range error|Erroneous value",
300-
"SIZE": "SIZE|T3XF file size error: size not exact multiple of instruction width (bug)|Name of erroneous file",
301-
"SNAC": "SNAC|Starting behaviour on non-alive (killed) component|Component name",
302-
"SNAP": "SNAP|Invalid operation during snapshot",
303-
"SRUN": "SRUN|Start already running|Identity of already running thread",
304-
"SYSE": "SYSE|Report a std::system_error exception during operation: indicates a bug to be reported|error code|error description",
305-
"TIME": "TIME|Testcase execution time limit exceeded",
306-
"TSTP": "TSTP|Test stopped by the testcase.stop operation|Detail",
307-
"TYPE": "TYPE|Type mismatch (bug)|Expected type|Given type",
308-
"UBLK": "UBLK|Unterminated block in input file (corrupt file or compiler bug)|Offset of start of block|Offset of scan limit",
309-
"UNAS": "UNAS|Unassignable|Value name",
310-
"UNDF": "UNDF|Undefined value|Value name",
311-
"UNOP": "UNOP|Unkown operation: invalid operation encountered (corrupt file?)",
312-
"UTF8": "UTF8|UTF-8 parse error|Error detail",
313-
"UTOB": "UTOB|Attempt to call a bound (runs on) behaviour from an unbound behaviour",
314-
"VRSN": "VRSN|Input file version error|Erroneous version",
315-
"WAIT": "WAIT|Time for a wait operation has already passed",
316-
"WCPA": "WCPA|The parameter passed to checkstate is not valid|Passed parameter value",
317-
"WIDE": "WIDE|Instruction width too wide (> 64-bit)|Name of the rejected file",
318-
"WPAC": "WPAC|Wrong number of parameters passed to paramaterized map or unmap statement|Expected number of parameters|Received number of parameters",
177+
"acfg": ACFG,
178+
"alen": ALEN,
179+
"allv": ALLV,
180+
"alrp": ALRP,
181+
"alwt": ALWT,
182+
"asen": ASEN,
183+
"aslv": ASLV,
184+
"bctr": BCTR,
185+
"coal": COAL,
186+
"cocr": COCR,
187+
"codo": CODO,
188+
"cofi": COFI,
189+
"cokd": COKD,
190+
"coki": COKI,
191+
"coru": CORU,
192+
"cosp": COSP,
193+
"cost": COST,
194+
"cpen": CPEN,
195+
"cplv": CPLV,
196+
"dbg1": DBG1,
197+
"dbg2": DBG2,
198+
"dbg3": DBG3,
199+
"dbug": DBUG,
200+
"deco": DECO,
201+
"decv": DECV,
202+
"dtac": DTAC,
203+
"dtde": DTDE,
204+
"dten": DTEN,
205+
"dtlv": DTLV,
206+
"dump": DUMP,
207+
"else": ELSE,
208+
"enco": ENCO,
209+
"fnen": FNEN,
210+
"fnlv": FNLV,
211+
"fxen": FXEN,
212+
"fxlv": FXLV,
213+
"getv": GETV,
214+
"ilen": ILEN,
215+
"illv": ILLV,
216+
"matc": MATC,
217+
"mpar": MPAR,
218+
"paon": PAON,
219+
"perf": PERF,
220+
"pllg": PLLG,
221+
"plod": PLOD,
222+
"ptck": PTCK,
223+
"ptcl": PTCL,
224+
"ptcn": PTCN,
225+
"ptdi": PTDI,
226+
"ptds": PTDS,
227+
"ptha": PTHA,
228+
"ptmp": PTMP,
229+
"ptpu": PTPU,
230+
"ptqu": PTQU,
231+
"ptre": PTRE,
232+
"ptrx": PTRX,
233+
"ptsd": PTSD,
234+
"ptsp": PTSP,
235+
"ptst": PTST,
236+
"pttr": PTTR,
237+
"ptun": PTUN,
238+
"rvon": RVON,
239+
"sdbg": SDBG,
240+
"setv": SETV,
241+
"tcen": TCEN,
242+
"tcfi": TCFI,
243+
"tclv": TCLV,
244+
"tcst": TCST,
245+
"tmrd": TMRD,
246+
"tmru": TMRU,
247+
"tmsp": TMSP,
248+
"tmst": TMST,
249+
"tmto": TMTO,
250+
"uact": UACT,
251+
"ulog": ULOG,
252+
"vach": VACH,
253+
"vrsn": VRSN,
254+
"wait": WAIT,
255+
"ACDC": ErrACDC,
256+
"ARGI": ErrARGI,
257+
"ARGS": ErrARGS,
258+
"ARRV": ErrARRV,
259+
"ARTE": ErrARTE,
260+
"ARUN": ErrARUN,
261+
"BREF": ErrBREF,
262+
"CONE": ErrCONE,
263+
"CONV": ErrCONV,
264+
"DEAD": ErrDEAD,
265+
"DIRE": ErrDIRE,
266+
"DIV0": ErrDIV0,
267+
"DKEY": ErrDKEY,
268+
"DOME": ErrDOME,
269+
"DTDE": ErrDTDE,
270+
"FILE": ErrFILE,
271+
"FLOW": ErrFLOW,
272+
"FOEX": ErrFOEX,
273+
"ICST": ErrICST,
274+
"IGRP": ErrIGRP,
275+
"INOP": ErrINOP,
276+
"LENE": ErrLENE,
277+
"LIDE": ErrLIDE,
278+
"LKUP": ErrLKUP,
279+
"MALF": ErrMALF,
280+
"MANY": ErrMANY,
281+
"MAPE": ErrMAPE,
282+
"NAME": ErrNAME,
283+
"NOIM": ErrNOIM,
284+
"NRTE": ErrNRTE,
285+
"NSPR": ErrNSPR,
286+
"NULL": ErrNULL,
287+
"OMIT": ErrOMIT,
288+
"OPTM": ErrOPTM,
289+
"OPTS": ErrOPTS,
290+
"OPTU": ErrOPTU,
291+
"OSUF": ErrOSUF,
292+
"PABV": ErrPABV,
293+
"PAOV": ErrPAOV,
294+
"PARE": ErrPARE,
295+
"PATE": ErrPATE,
296+
"PLEX": ErrPLEX,
297+
"PLOD": ErrPLOD,
298+
"PTFA": ErrPTFA,
299+
"RNGE": ErrRNGE,
300+
"SIZE": ErrSIZE,
301+
"SNAC": ErrSNAC,
302+
"SNAP": ErrSNAP,
303+
"SRUN": ErrSRUN,
304+
"SYSE": ErrSYSE,
305+
"TIME": ErrTIME,
306+
"TSTP": ErrTSTP,
307+
"TYPE": ErrTYPE,
308+
"UBLK": ErrUBLK,
309+
"UNAS": ErrUNAS,
310+
"UNDF": ErrUNDF,
311+
"UNOP": ErrUNOP,
312+
"UTF8": ErrUTF8,
313+
"UTOB": ErrUTOB,
314+
"VRSN": ErrVRSN,
315+
"WAIT": ErrWAIT,
316+
"WCPA": ErrWCPA,
317+
"WIDE": ErrWIDE,
318+
"WPAC": ErrWPAC,
319319
}
320320
)

0 commit comments

Comments
 (0)