Debian Codegraph @

kernel/trace/rv/monitors/wwnr/wwnr.h

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Automatically generated C representation of wwnr automaton
4 * For further information about this format, see kernel documentation:
5 * Documentation/trace/rv/deterministic_automata.rst
6 */
7
8 #define MONITOR_NAME wwnr
9
10 enum states_wwnr {
11 not_running_wwnr,
12 running_wwnr,
13 state_max_wwnr,
14 };
15
16 #define INVALID_STATE state_max_wwnr
17
18 enum events_wwnr {
19 switch_in_wwnr,
20 switch_out_wwnr,
21 wakeup_wwnr,
22 event_max_wwnr,
23 };
24
25 struct automaton_wwnr {
26 char *state_names[state_max_wwnr];
27 char *event_names[event_max_wwnr];
28 unsigned char function[state_max_wwnr][event_max_wwnr];
29 unsigned char initial_state;
30 bool final_states[state_max_wwnr];
31 };
32
33 static const struct automaton_wwnr automaton_wwnr = {
34 .state_names = {
35 "not_running",
36 "running",
37 },
38 .event_names = {
39 "switch_in",
40 "switch_out",
41 "wakeup",
42 },
43 .function = {
44 { running_wwnr, INVALID_STATE, not_running_wwnr },
45 { INVALID_STATE, not_running_wwnr, INVALID_STATE },
46 },
47 .initial_state = not_running_wwnr,
48 .final_states = { 1, 0 },
49 };