| .. | .. |
|---|
| 139 | 139 | /* |
|---|
| 140 | 140 | * trace_flag_type is an enumeration that holds different |
|---|
| 141 | 141 | * states when a trace occurs. These are: |
|---|
| 142 | | - * IRQS_OFF - interrupts were disabled |
|---|
| 142 | + * IRQS_OFF - interrupts were off (only virtually if pipelining) |
|---|
| 143 | 143 | * IRQS_NOSUPPORT - arch does not support irqs_disabled_flags |
|---|
| 144 | 144 | * NEED_RESCHED - reschedule is requested |
|---|
| 145 | 145 | * HARDIRQ - inside an interrupt handler |
|---|
| 146 | 146 | * 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). |
|---|
| 147 | 150 | */ |
|---|
| 148 | 151 | enum trace_flag_type { |
|---|
| 149 | 152 | TRACE_FLAG_IRQS_OFF = 0x01, |
|---|
| .. | .. |
|---|
| 153 | 156 | TRACE_FLAG_SOFTIRQ = 0x10, |
|---|
| 154 | 157 | TRACE_FLAG_PREEMPT_RESCHED = 0x20, |
|---|
| 155 | 158 | TRACE_FLAG_NMI = 0x40, |
|---|
| 159 | + TRACE_FLAG_IRQS_HARDOFF = 0x80, |
|---|
| 160 | + TRACE_FLAG_OOB_STAGE = TRACE_FLAG_IRQS_NOSUPPORT, |
|---|
| 156 | 161 | }; |
|---|
| 157 | 162 | |
|---|
| 158 | 163 | #define TRACE_BUF_SIZE 1024 |
|---|