kernel/trace/rv/monitors/snep/snep.h

Source file repositories/reference/linux-study-clean/kernel/trace/rv/monitors/snep/snep.h

File Facts

System
Linux kernel
Corpus path
kernel/trace/rv/monitors/snep/snep.h
Extension
.h
Size
1285 bytes
Lines
62
Domain
Core OS
Bucket
Scheduler, Processes, Timers, Sync, And Syscalls
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

struct automaton_snep {
	char *state_names[state_max_snep];
	char *event_names[event_max_snep];
	unsigned char function[state_max_snep][event_max_snep];
	unsigned char initial_state;
	bool final_states[state_max_snep];
};

static const struct automaton_snep automaton_snep = {
	.state_names = {
		"non_scheduling_context",
		"scheduling_contex",
	},
	.event_names = {
		"preempt_disable",
		"preempt_enable",
		"schedule_entry",
		"schedule_exit",
	},
	.function = {
		{
			non_scheduling_context_snep,
			non_scheduling_context_snep,
			scheduling_contex_snep,
			INVALID_STATE,
		},
		{
			INVALID_STATE,
			INVALID_STATE,
			INVALID_STATE,
			non_scheduling_context_snep,
		},
	},
	.initial_state = non_scheduling_context_snep,
	.final_states = { 1, 0 },
};

Annotation

Implementation Notes