summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhaolei <zhaolei@cn.fujitsu.com>2008-06-17 09:23:27 +0800
committerZhaolei <zhaolei@cn.fujitsu.com>2008-06-17 09:23:27 +0800
commit93fdaa0d0fed842826f105f409d6cf39e08e9d42 (patch)
treedd5d24c7c0ce7219665a2024a94cd75cbca0a6f6
parentf1552be17f72676f8fbc2c40292f4aebf883c321 (diff)
downloadsystemtap-steved-93fdaa0d0fed842826f105f409d6cf39e08e9d42.tar.gz
systemtap-steved-93fdaa0d0fed842826f105f409d6cf39e08e9d42.tar.xz
systemtap-steved-93fdaa0d0fed842826f105f409d6cf39e08e9d42.zip
aux_syscalls.stp (__fork_flags): Add termination signal.
-rw-r--r--tapset/ChangeLog4
-rw-r--r--tapset/aux_syscalls.stp8
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);
+ }
%}
%{