1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Automatically generated C representation of snroc automaton 4 * For further information about this format, see kernel documentation: 5 * Documentation/trace/rv/deterministic_automata.rst 6 */ 7 8 enum states_snroc { 9 other_context_snroc = 0, 10 own_context_snroc, 11 state_max_snroc 12 }; 13 14 #define INVALID_STATE state_max_snroc 15 16 enum events_snroc { 17 sched_set_state_snroc = 0, 18 sched_switch_in_snroc, 19 sched_switch_out_snroc, 20 event_max_snroc 21 }; 22 23 struct automaton_snroc { 24 char *state_names[state_max_snroc]; 25 char *event_names[event_max_snroc]; 26 unsigned char function[state_max_snroc][event_max_snroc]; 27 unsigned char initial_state; 28 bool final_states[state_max_snroc]; 29 }; 30 31 static const struct automaton_snroc automaton_snroc = { 32 .state_names = { 33 "other_context", 34 "own_context" 35 }, 36 .event_names = { 37 "sched_set_state", 38 "sched_switch_in", 39 "sched_switch_out" 40 }, 41 .function = { 42 { INVALID_STATE, own_context_snroc, INVALID_STATE }, 43 { own_context_snroc, INVALID_STATE, other_context_snroc }, 44 }, 45 .initial_state = other_context_snroc, 46 .final_states = { 1, 0 }, 47 }; 48