1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Automatically generated C representation of tss automaton
4  * For further information about this format, see kernel documentation:
5  *   Documentation/trace/rv/deterministic_automata.rst
6  */
7 
8 enum states_tss {
9 	thread_tss = 0,
10 	sched_tss,
11 	state_max_tss
12 };
13 
14 #define INVALID_STATE state_max_tss
15 
16 enum events_tss {
17 	sched_switch_tss = 0,
18 	schedule_entry_tss,
19 	schedule_exit_tss,
20 	event_max_tss
21 };
22 
23 struct automaton_tss {
24 	char *state_names[state_max_tss];
25 	char *event_names[event_max_tss];
26 	unsigned char function[state_max_tss][event_max_tss];
27 	unsigned char initial_state;
28 	bool final_states[state_max_tss];
29 };
30 
31 static const struct automaton_tss automaton_tss = {
32 	.state_names = {
33 		"thread",
34 		"sched"
35 	},
36 	.event_names = {
37 		"sched_switch",
38 		"schedule_entry",
39 		"schedule_exit"
40 	},
41 	.function = {
42 		{     INVALID_STATE,         sched_tss,     INVALID_STATE },
43 		{         sched_tss,     INVALID_STATE,        thread_tss },
44 	},
45 	.initial_state = thread_tss,
46 	.final_states = { 1, 0 },
47 };
48