diff options
author | Prerna Saxena <prerna@linux.vnet.ibm.com> | 2009-11-16 11:25:46 +0530 |
---|---|---|
committer | Prerna Saxena <prerna@linux.vnet.ibm.com> | 2009-11-16 11:25:46 +0530 |
commit | dc5a95301448c26bc016ebc618a8038e531d85f0 (patch) | |
tree | 40ae94851289c82c52dc09bf50380087ef336ebe /tapset/aux_syscalls.stp | |
parent | 6b95efe9fd58e1884baa7ec14de68996e88e0868 (diff) | |
download | systemtap-steved-dc5a95301448c26bc016ebc618a8038e531d85f0.tar.gz systemtap-steved-dc5a95301448c26bc016ebc618a8038e531d85f0.tar.xz systemtap-steved-dc5a95301448c26bc016ebc618a8038e531d85f0.zip |
add definition of function irqflags_str()
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r-- | tapset/aux_syscalls.stp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index 2f19ab16..d5444723 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -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); +%} |