tracing: Add proper check for irq_depth routines