hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/kernel/trace/trace.h
....@@ -139,11 +139,14 @@
139139 /*
140140 * trace_flag_type is an enumeration that holds different
141141 * states when a trace occurs. These are:
142
- * IRQS_OFF - interrupts were disabled
142
+ * IRQS_OFF - interrupts were off (only virtually if pipelining)
143143 * IRQS_NOSUPPORT - arch does not support irqs_disabled_flags
144144 * NEED_RESCHED - reschedule is requested
145145 * HARDIRQ - inside an interrupt handler
146146 * SOFTIRQ - inside a softirq handler
147
+ * IRQS_HARDOFF - interrupts were hard disabled
148
+ * OOB_STAGE - running over the oob stage (assume IRQ tracing
149
+ * support is always available w/ pipelining).
147150 */
148151 enum trace_flag_type {
149152 TRACE_FLAG_IRQS_OFF = 0x01,
....@@ -153,6 +156,8 @@
153156 TRACE_FLAG_SOFTIRQ = 0x10,
154157 TRACE_FLAG_PREEMPT_RESCHED = 0x20,
155158 TRACE_FLAG_NMI = 0x40,
159
+ TRACE_FLAG_IRQS_HARDOFF = 0x80,
160
+ TRACE_FLAG_OOB_STAGE = TRACE_FLAG_IRQS_NOSUPPORT,
156161 };
157162
158163 #define TRACE_BUF_SIZE 1024