]> sourceware.org Git - systemtap.git/commitdiff
add definition of function irqflags_str()
authorPrerna Saxena <prerna@linux.vnet.ibm.com>
Mon, 16 Nov 2009 05:55:46 +0000 (11:25 +0530)
committerPrerna Saxena <prerna@linux.vnet.ibm.com>
Mon, 16 Nov 2009 05:55:46 +0000 (11:25 +0530)
tapset/aux_syscalls.stp

index 2f19ab163c797c8970472acf56900bf2348d90a8..d5444723cc16f28a085f6094e44c2a4149af1c67 100644 (file)
@@ -1891,3 +1891,30 @@ function _struct_sigaction32_u:string(uaddr:long)
     }
 #endif
 %}
+
+/*
+ * Function irqflags_str :
+ *     Returns the symbolic string representation of the IRQ flags.
+ *
+ */
+
+%{
+#include <linux/interrupt.h>
+static const _stp_val_array const _stp_irq_list[] = {
+       V(IRQF_DISABLED),
+       V(IRQF_SAMPLE_RANDOM),
+       V(IRQF_SHARED),
+       V(IRQF_PROBE_SHARED),
+       V(IRQF_TIMER),
+       V(IRQF_PERCPU),
+       V(IRQF_NOBALANCING),
+       V(IRQF_IRQPOLL),
+       V(IRQF_ONESHOT),
+       {0, NULL}
+};
+%}
+
+function irqflags_str:string(f:long)
+%{ /* pure */
+       _stp_lookup_or_str(_stp_irq_list, THIS->f, THIS->__retvalue, MAXSTRINGLEN);
+%}
This page took 0.031649 seconds and 5 git commands to generate.