diff options
-rw-r--r-- | tapset/ChangeLog | 4 | ||||
-rw-r--r-- | tapset/aux_syscalls.stp | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 0293c390..65199bf3 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,7 @@ +2008-06-17 Zhaolei <zhaolei@cn.fujitsu.com> + + * aux_syscalls.stp (__fork_flags): Add termination signal. + 2008-06-13 Josh Stone <joshua.i.stone@intel.com> * aux_syscalls.stp, ctime.stp, inet.stp, memory.stp, diff --git a/tapset/aux_syscalls.stp b/tapset/aux_syscalls.stp index bb0547f9..502b0ff8 100644 --- a/tapset/aux_syscalls.stp +++ b/tapset/aux_syscalls.stp @@ -1705,7 +1705,13 @@ const _stp_val_array const _stp_fork_list[] = { function __fork_flags:string(flags:long) %{ /* pure */ - _stp_lookup_or_str(_stp_fork_list, THIS->flags, THIS->__retvalue, MAXSTRINGLEN); + _stp_lookup_or_str(_stp_fork_list, THIS->flags & ~0xff, THIS->__retvalue, MAXSTRINGLEN); + if ( THIS->flags & 0xff ) { + /* flags contains the termination signal */ + if (*THIS->__retvalue) + strlcat(THIS->__retvalue, "|", MAXSTRINGLEN); + _stp_lookup_str(_stp_signal_list, THIS->flags & 0xff, THIS->__retvalue, MAXSTRINGLEN); + } %} %{ |