Skip to main content

ShellBackend

Trait ShellBackend 

Source
pub trait ShellBackend {
Show 13 methods // Required methods fn kernel_info(&self) -> KernelInfo; fn memory_stats(&self) -> MemoryStats; fn task_list(&self) -> Vec<TaskInfo>; fn cpu_info(&self) -> Vec<CpuInfo>; fn queue_stats(&self) -> QueueStats; fn vector_stats(&self) -> VectorStats; fn proof_stats(&self) -> ProofStats; fn capability_entries(&self, task_id: Option<u32>) -> Vec<CapEntry>; fn witness_entries(&self, count: usize) -> Vec<WitnessEntry>; fn perf_counters(&self) -> PerfCounters; fn trace_enabled(&self) -> bool; fn set_trace(&mut self, enabled: bool); fn reboot(&mut self);
}
Expand description

Trait for kernel integration with the debug shell.

Implementors provide access to kernel state for each command.

Required Methods§

Source

fn kernel_info(&self) -> KernelInfo

Get kernel information.

Source

fn memory_stats(&self) -> MemoryStats

Get memory statistics.

Source

fn task_list(&self) -> Vec<TaskInfo>

Get task list.

Source

fn cpu_info(&self) -> Vec<CpuInfo>

Get CPU information for all CPUs.

Source

fn queue_stats(&self) -> QueueStats

Get queue statistics.

Source

fn vector_stats(&self) -> VectorStats

Get vector store statistics.

Source

fn proof_stats(&self) -> ProofStats

Get proof subsystem statistics.

Source

fn capability_entries(&self, task_id: Option<u32>) -> Vec<CapEntry>

Get capability table entries for a task.

Source

fn witness_entries(&self, count: usize) -> Vec<WitnessEntry>

Get recent witness log entries.

Source

fn perf_counters(&self) -> PerfCounters

Get performance counters.

Source

fn trace_enabled(&self) -> bool

Check if syscall tracing is enabled.

Source

fn set_trace(&mut self, enabled: bool)

Toggle syscall tracing.

Source

fn reboot(&mut self)

Trigger system reboot.

Implementors§