aboutsummaryrefslogtreecommitdiff
path: root/perf/perf_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'perf/perf_event.h')
-rw-r--r--perf/perf_event.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/perf/perf_event.h b/perf/perf_event.h
index 3b6c3e5..7d7cb5b 100644
--- a/perf/perf_event.h
+++ b/perf/perf_event.h
@@ -872,4 +872,23 @@ static inline void perf_event_init(void) { }
perf_output_copy((handle), &(x), sizeof(x))
#endif /* __KERNEL__ */
+
+
+/*
+ * trace_flag_type is an enumeration that holds different
+ * states when a trace occurs. These are:
+ * IRQS_OFF - interrupts were disabled
+ * IRQS_NOSUPPORT - arch does not support irqs_disabled_flags
+ * NEED_RESCED - reschedule is requested
+ * HARDIRQ - inside an interrupt handler
+ * SOFTIRQ - inside a softirq handler
+ */
+enum trace_flag_type {
+ TRACE_FLAG_IRQS_OFF = 0x01,
+ TRACE_FLAG_IRQS_NOSUPPORT = 0x02,
+ TRACE_FLAG_NEED_RESCHED = 0x04,
+ TRACE_FLAG_HARDIRQ = 0x08,
+ TRACE_FLAG_SOFTIRQ = 0x10,
+};
+
#endif /* _LINUX_PERF_EVENT_H */