collect_context

Function collect_context 

Source
pub(super) fn collect_context() -> LogContext
Expand description

为新的日志条目收集上下文信息

§实现状态

  • 时间戳: 已通过 arch::timer::get_time() 实现
  • CPU ID: 通过 arch::kernel::cpu::cpu_id() 实现
  • 任务 ID: 通过当前任务的 tid 字段获取(如果存在任务)