This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Tapset for probing IRQs, workqueues, etc
On Mon, 2009-11-16 at 11:31 +0530, Prerna Saxena wrote:
> Thanks for pointing it out..
No problem. You added a testcase, it failed. So easy to detect :)
> I guess my patch hadnt applied cleanly !
> I've added this via commit dc5a95301448c26bc016ebc618a8038e531d85f0
Thanks. I added one small workaround for kernel < 2.6.32 (which isn't
actually released yet) which don't have IRQF_ONESHOT. With that
everything passes also on my systems.
Cheers,
Mark
>From 7b76473cbad92366721defee51d93396cb101134 Mon Sep 17 00:00:00 2001
From: Mark Wielaard <mjw@redhat.com>
Date: Mon, 16 Nov 2009 10:33:20 +0100
Subject: [PATCH] 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.
---
tapset/aux_syscalls.stp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp
index d544472..5435d3a 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),
--
1.6.2.5
- References:
- Tapset for probing IRQs, workqueues, etc
- Re: Tapset for probing IRQs, workqueues, etc
- Re: Tapset for probing IRQs, workqueues, etc
- Re: Tapset for probing IRQs, workqueues, etc
- Re: Tapset for probing IRQs, workqueues, etc
- Re: Tapset for probing IRQs, workqueues, etc
- Re: Tapset for probing IRQs, workqueues, etc