]> sourceware.org Git - systemtap.git/commitdiff
tapset compat: irq tracepoints to use @cast() for $action
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 10 Jan 2011 18:41:26 +0000 (13:41 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Mon, 10 Jan 2011 18:41:26 +0000 (13:41 -0500)
tapset/irq.stp

index 9dc480e1f1291addfa0f15fdea684281825cb32d..51fa9341a8a2960ee0747ca7687a80d0936ff2fc 100644 (file)
@@ -79,16 +79,16 @@ probe irq_handler.entry = kernel.trace("irq_handler_entry") ?
 {
        irq = $irq
        action = $action
-       handler = $action->handler
-       flags = $action->flags
+       handler = @cast($action,"irqaction","kernel<linux/interrupt.h>")->handler
+       flags = @cast($action,"irqaction","kernel<linux/interrupt.h>")->flags
        flags_str = irqflags_str(flags)
-       dev_name = $action->name
-       dev_id = $action->dev_id
-       next_irqaction = $action->next
-       dir = $action->dir
-       thread_fn = $action->thread_fn
-       thread = $action->thread
-       thread_flags = $action->thread_flags
+       dev_name = @cast($action,"irqaction","kernel<linux/interrupt.h>")->name
+       dev_id = @cast($action,"irqaction","kernel<linux/interrupt.h>")->dev_id
+       next_irqaction = @cast($action,"irqaction","kernel<linux/interrupt.h>")->next
+       dir = @cast($action,"irqaction","kernel<linux/interrupt.h>")->dir
+       thread_fn = @cast($action,"irqaction","kernel<linux/interrupt.h>")->thread_fn
+       thread = @cast($action,"irqaction","kernel<linux/interrupt.h>")->thread
+       thread_flags = @cast($action,"irqaction","kernel<linux/interrupt.h>")->thread_flags
 }
 
 /**
@@ -112,16 +112,16 @@ probe irq_handler.exit = kernel.trace("irq_handler_exit") ?
        irq = $irq
        action = $action
        ret = $ret
-       handler = $action->handler
-       flags = $action->flags
+       handler = @cast($action,"irqaction","kernel<linux/interrupt.h>")->handler
+       flags = @cast($action,"irqaction","kernel<linux/interrupt.h>")->flags
        flags_str = irqflags_str(flags)
-       dev_name = $action->name
-       dev_id = $action->dev_id
-       next_irqaction = $action->next
-       dir = $action->dir
-       thread_fn = $action->thread_fn
-       thread = $action->thread
-       thread_flags = $action->thread_flags
+       dev_name = @cast($action,"irqaction","kernel<linux/interrupt.h>")->name
+       dev_id = @cast($action,"irqaction","kernel<linux/interrupt.h>")->dev_id
+       next_irqaction = @cast($action,"irqaction","kernel<linux/interrupt.h>")->next
+       dir = @cast($action,"irqaction","kernel<linux/interrupt.h>")->dir
+       thread_fn = @cast($action,"irqaction","kernel<linux/interrupt.h>")->thread_fn
+       thread = @cast($action,"irqaction","kernel<linux/interrupt.h>")->thread
+       thread_flags = @cast($action,"irqaction","kernel<linux/interrupt.h>")->thread_flags
 }
 
 // Softirq based probes.
This page took 0.029561 seconds and 5 git commands to generate.