MCPcopy Create free account
hub / github.com/XpuOS/xsched / OnPreemptLevelChange

Method OnPreemptLevelChange

platforms/cuda/hal/src/level3/cuda_queue.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void CudaQueueLv3Trap::OnPreemptLevelChange(XPreemptLevel level)
29{
30 XASSERT(level <= kPreemptLevelInterrupt, "unsupported level: %d", level);
31 if (level == kPreemptLevelInterrupt) {
32 instrument_manager_->NotifyTrapInstrumented();
33 interrupt_context_->InstrumentTrapHandler();
34 }
35 level_ = level;
36}
37
38void CudaQueueLv3Trap::OnHwCommandSubmit(std::shared_ptr<preempt::HwCommand> hw_cmd)
39{

Callers

nothing calls this directly

Calls 2

InstrumentTrapHandlerMethod · 0.80

Tested by

no test coverage detected