Monitor's automata definition is only used locally, so make them static for all existing monitors. Link: https://lore.kernel.org/all/202208210332.gtHXje45-lkp@intel.com Link: https://lore.kernel.org/all/202208210358.6HH3OrVs-lkp@intel.com Link: https://lkml.kernel.org/r/a50e27c3738d6ef809f4201857229fed64799234.1661266564.git.bristot@kernel.org Fixes:ccc319dcb4
("rv/monitor: Add the wwnr monitor") Fixes:8812d21219
("rv/monitor: Add the wip monitor skeleton created by dot2k") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
46 lines
1 KiB
C
46 lines
1 KiB
C
/*
|
|
* Automatically generated C representation of wip automaton
|
|
* For further information about this format, see kernel documentation:
|
|
* Documentation/trace/rv/deterministic_automata.rst
|
|
*/
|
|
|
|
enum states_wip {
|
|
preemptive_wip = 0,
|
|
non_preemptive_wip,
|
|
state_max_wip
|
|
};
|
|
|
|
#define INVALID_STATE state_max_wip
|
|
|
|
enum events_wip {
|
|
preempt_disable_wip = 0,
|
|
preempt_enable_wip,
|
|
sched_waking_wip,
|
|
event_max_wip
|
|
};
|
|
|
|
struct automaton_wip {
|
|
char *state_names[state_max_wip];
|
|
char *event_names[event_max_wip];
|
|
unsigned char function[state_max_wip][event_max_wip];
|
|
unsigned char initial_state;
|
|
bool final_states[state_max_wip];
|
|
};
|
|
|
|
static struct automaton_wip automaton_wip = {
|
|
.state_names = {
|
|
"preemptive",
|
|
"non_preemptive"
|
|
},
|
|
.event_names = {
|
|
"preempt_disable",
|
|
"preempt_enable",
|
|
"sched_waking"
|
|
},
|
|
.function = {
|
|
{ non_preemptive_wip, INVALID_STATE, INVALID_STATE },
|
|
{ INVALID_STATE, preemptive_wip, non_preemptive_wip },
|
|
},
|
|
.initial_state = preemptive_wip,
|
|
.final_states = { 1, 0 },
|
|
};
|