summaryrefslogtreecommitdiffstats
path: root/tapset
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-11-16 10:33:20 +0100
committerMark Wielaard <mjw@redhat.com>2009-11-16 10:33:20 +0100
commit7b76473cbad92366721defee51d93396cb101134 (patch)
treec72b53cb3c4b7b305107dc0e2d8dcb90ce8782e7 /tapset
parentdc5a95301448c26bc016ebc618a8038e531d85f0 (diff)
downloadsystemtap-steved-7b76473cbad92366721defee51d93396cb101134.tar.gz
systemtap-steved-7b76473cbad92366721defee51d93396cb101134.tar.xz
systemtap-steved-7b76473cbad92366721defee51d93396cb101134.zip
Define IRQF_ONESHOT for older kernels.
IRQF_ONESHOT was only introduced in 2.6.32. It doesn't hurt defining it if it isn't already there. It will just never show up on older kernels. * tapset/aux_syscalls.stp: Define IRQF_ONESHOT if not already defined.
Diffstat (limited to 'tapset')
-rw-r--r--tapset/aux_syscalls.stp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index d5444723..5435d3aa 100644
--- a/tapset/aux_syscalls.stp
+++ b/tapset/aux_syscalls.stp
@@ -1900,6 +1900,9 @@ function _struct_sigaction32_u:string(uaddr:long)
%{
#include <linux/interrupt.h>
+#ifndef IRQF_ONESHOT
+#define IRQF_ONESHOT 0x00002000
+#endif
static const _stp_val_array const _stp_irq_list[] = {
V(IRQF_DISABLED),
V(IRQF_SAMPLE_RANDOM),