FILE
wip.h
File preview with syntax highlighting.
linux-6.19.14/kernel/trace/rv/monitors/wip/wip.h
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Automatically generated C representation of wip automaton 4 * For further information about this format, see kernel documentation: 5 * Documentation/trace/rv/deterministic_automata.rst 6 */ 7 8enum states_wip { 9 preemptive_wip = 0, 10 non_preemptive_wip, 11 state_max_wip 12}; 13 14#define INVALID_STATE state_max_wip 15 16enum events_wip { 17 preempt_disable_wip = 0, 18 preempt_enable_wip, 19 sched_waking_wip, 20 event_max_wip 21}; 22 23struct automaton_wip { 24 char *state_names[state_max_wip]; 25 char *event_names[event_max_wip]; 26 unsigned char function[state_max_wip][event_max_wip]; 27 unsigned char initial_state; 28 bool final_states[state_max_wip]; 29}; 30 31static const struct automaton_wip automaton_wip = { 32 .state_names = { 33 "preemptive", 34 "non_preemptive" 35 }, 36 .event_names = { 37 "preempt_disable", 38 "preempt_enable", 39 "sched_waking" 40 }, 41 .function = { 42 { non_preemptive_wip, INVALID_STATE, INVALID_STATE }, 43 { INVALID_STATE, preemptive_wip, non_preemptive_wip }, 44 }, 45 .initial_state = preemptive_wip, 46 .final_states = { 1, 0 }, 47};
~/
Read-only file preview.