Skip to main content

Module trace

Module trace 

Source
Expand description

Lightweight kernel trace buffers for low-level debugging.

Design goals:

  • no_std friendly
  • fixed-size per-CPU ring buffers
  • category filtering
  • minimal lock contention (try_lock drops on contention)

Re-exportsยง

use alloc::vec::Vec; ๐Ÿ”’
use core::sync::atomic::AtomicBool; ๐Ÿ”’
use core::sync::atomic::AtomicU64; ๐Ÿ”’
use core::sync::atomic::Ordering; ๐Ÿ”’
use crate::arch::percpu; ๐Ÿ”’
use crate::process::scheduler; ๐Ÿ”’
use crate::sync::SpinLock; ๐Ÿ”’

Modulesยง

category

Structsยง

CpuTraceRing ๐Ÿ”’
TraceEvent
TraceStats
TraceTaskCtx

Enumsยง

TraceKind

Constantsยง

TRACE_CAPACITY ๐Ÿ”’

Staticsยง

TRACE_DROPPED_TOTAL ๐Ÿ”’
TRACE_MASK ๐Ÿ”’
TRACE_RINGS ๐Ÿ”’
TRACE_SEQ ๐Ÿ”’
TRACE_SERIAL_ECHO ๐Ÿ”’

Functionsยง

clear_all
Performs the clear all operation.
current_cpu ๐Ÿ”’
Performs the current cpu operation.
disable
Performs the disable operation.
enable
Performs the enable operation.
enabled
Performs the enabled operation.
kind_name
Performs the kind name operation.
mask
Performs the mask operation.
mask_human
Performs the mask human operation.
record
Performs the record operation.
serial_echo
Performs the serial echo operation.
set_mask
Sets mask.
set_serial_echo
Sets serial echo.
snapshot_all
Performs the snapshot all operation.
stats
Performs the stats operation.