1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
5 * wrapper around IRQ flags.
7 * Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
10 #ifndef _LTTNG_WRAPPER_IRQFLAGS_H
11 #define _LTTNG_WRAPPER_IRQFLAGS_H
13 #include <lttng-kernel-version.h>
14 #include <linux/irqflags.h>
19 int lttng_regs_irqs_disabled(struct pt_regs
*regs
)
21 unsigned long flags
= regs
->flags
;
23 return raw_irqs_disabled_flags(flags
);
28 * lttng_regs_irqs_disabled() returns -1 if irqoff state is unknown.
29 * TODO: should implement lttng_regs_irqs_disabled for each architecture
30 * to add interruptible context for kprobes and kretprobes.
34 int lttng_regs_irqs_disabled(struct pt_regs
*regs
)
40 #endif /* _LTTNG_WRAPPER_IRQFLAGS_H */
This page took 0.03073 seconds and 4 git commands to generate.