···1212#ifndef _LINUX_TRACE_IRQFLAGS_H1313#define _LINUX_TRACE_IRQFLAGS_H14141515+#include <linux/irqflags_types.h>1516#include <linux/typecheck.h>1617#include <linux/cleanup.h>1718#include <asm/irqflags.h>···3433#endif35343635#ifdef CONFIG_TRACE_IRQFLAGS3737-3838-/* Per-task IRQ trace events information. */3939-struct irqtrace_events {4040- unsigned int irq_events;4141- unsigned long hardirq_enable_ip;4242- unsigned long hardirq_disable_ip;4343- unsigned int hardirq_enable_event;4444- unsigned int hardirq_disable_event;4545- unsigned long softirq_disable_ip;4646- unsigned long softirq_enable_ip;4747- unsigned int softirq_disable_event;4848- unsigned int softirq_enable_event;4949-};50365137DECLARE_PER_CPU(int, hardirqs_enabled);5238DECLARE_PER_CPU(int, hardirq_context);
+22
include/linux/irqflags_types.h
···11+/* SPDX-License-Identifier: GPL-2.0 */22+#ifndef _LINUX_IRQFLAGS_TYPES_H33+#define _LINUX_IRQFLAGS_TYPES_H44+55+#ifdef CONFIG_TRACE_IRQFLAGS66+77+/* Per-task IRQ trace events information. */88+struct irqtrace_events {99+ unsigned int irq_events;1010+ unsigned long hardirq_enable_ip;1111+ unsigned long hardirq_disable_ip;1212+ unsigned int hardirq_enable_event;1313+ unsigned int hardirq_disable_event;1414+ unsigned long softirq_disable_ip;1515+ unsigned long softirq_enable_ip;1616+ unsigned int softirq_disable_event;1717+ unsigned int softirq_enable_event;1818+};1919+2020+#endif2121+2222+#endif /* _LINUX_IRQFLAGS_TYPES_H */