diff options
author | zhaolei <zhaolei> | 2007-10-09 23:52:54 +0000 |
---|---|---|
committer | zhaolei <zhaolei> | 2007-10-09 23:52:54 +0000 |
commit | 8e67a997469cfdc08db58a214612f63dd6e8ebab (patch) | |
tree | b793c8e5ba77ece98df477c0fc053f599fb84e52 /tapset/aux_syscalls.stp | |
parent | 35f3ab9e17f5e743e2deb3e5c14a3f1776b18e84 (diff) | |
download | systemtap-steved-8e67a997469cfdc08db58a214612f63dd6e8ebab.tar.gz systemtap-steved-8e67a997469cfdc08db58a214612f63dd6e8ebab.tar.xz systemtap-steved-8e67a997469cfdc08db58a214612f63dd6e8ebab.zip |
2007-10-10 Zhaolei <zhaolei@cn.fujitsu.com>
From Lai Jiangshan <laijs@cn.fujitsu.com>
* aux_syscalls.stp (_stp_lookup_or_str) redirect to _stp_lookup_str
if val is 0.
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r-- | tapset/aux_syscalls.stp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index 6d6fa311..08018ad2 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -1533,6 +1533,10 @@ void _stp_lookup_str(const _stp_val_array * const array, long val, char *ptr, in void _stp_lookup_or_str(const _stp_val_array * const array, long val, char *ptr, int len) { int i = 0, flag = 0; + if (val == 0) { + _stp_lookup_str(array, val, ptr, len); + return; + } while (array[i].name) { if (array[i].val & val) { if (flag) |