Debian Codegraph @

kernel/trace/rv/monitors/sssw/sssw.h

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Automatically generated C representation of sssw automaton
4 * For further information about this format, see kernel documentation:
5 * Documentation/trace/rv/deterministic_automata.rst
6 */
7
8 #define MONITOR_NAME sssw
9
10 enum states_sssw {
11 runnable_sssw,
12 signal_wakeup_sssw,
13 sleepable_sssw,
14 sleeping_sssw,
15 state_max_sssw,
16 };
17
18 #define INVALID_STATE state_max_sssw
19
20 enum events_sssw {
21 sched_set_state_runnable_sssw,
22 sched_set_state_sleepable_sssw,
23 sched_switch_blocking_sssw,
24 sched_switch_in_sssw,
25 sched_switch_preempt_sssw,
26 sched_switch_suspend_sssw,
27 sched_switch_yield_sssw,
28 sched_wakeup_sssw,
29 signal_deliver_sssw,
30 event_max_sssw,
31 };
32
33 struct automaton_sssw {
34 char *state_names[state_max_sssw];
35 char *event_names[event_max_sssw];
36 unsigned char function[state_max_sssw][event_max_sssw];
37 unsigned char initial_state;
38 bool final_states[state_max_sssw];
39 };
40
41 static const struct automaton_sssw automaton_sssw = {
42 .state_names = {
43 "runnable",
44 "signal_wakeup",
45 "sleepable",
46 "sleeping",
47 },
48 .event_names = {
49 "sched_set_state_runnable",
50 "sched_set_state_sleepable",
51 "sched_switch_blocking",
52 "sched_switch_in",
53 "sched_switch_preempt",
54 "sched_switch_suspend",
55 "sched_switch_yield",
56 "sched_wakeup",
57 "signal_deliver",
58 },
59 .function = {
60 {
61 runnable_sssw,
62 sleepable_sssw,
63 sleeping_sssw,
64 runnable_sssw,
65 runnable_sssw,
66 INVALID_STATE,
67 runnable_sssw,
68 runnable_sssw,
69 runnable_sssw,
70 },
71 {
72 INVALID_STATE,
73 sleepable_sssw,
74 INVALID_STATE,
75 signal_wakeup_sssw,
76 signal_wakeup_sssw,
77 INVALID_STATE,
78 signal_wakeup_sssw,
79 signal_wakeup_sssw,
80 runnable_sssw,
81 },
82 {
83 runnable_sssw,
84 sleepable_sssw,
85 sleeping_sssw,
86 sleepable_sssw,
87 sleepable_sssw,
88 sleeping_sssw,
89 signal_wakeup_sssw,
90 runnable_sssw,
91 sleepable_sssw,
92 },
93 {
94 INVALID_STATE,
95 INVALID_STATE,
96 INVALID_STATE,
97 INVALID_STATE,
98 INVALID_STATE,
99 INVALID_STATE,
100 INVALID_STATE,
101 runnable_sssw,
102 INVALID_STATE,
103 },
104 },
105 .initial_state = runnable_sssw,
106 .final_states = { 1, 0, 0, 0 },
107 };