summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tapset/ChangeLog6
-rw-r--r--tapset/aux_syscalls.stp4
2 files changed, 10 insertions, 0 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index 769d9ca3..870ca61c 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2007-10-09 Mike Mason <mmlnx@us.ibm.com>
* rpc.stp: Replaced atomic_read()'s with kread()'s
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)