summaryrefslogtreecommitdiffstats
path: root/tapset/aux_syscalls.stp
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 /tapset/aux_syscalls.stp
parentf1552be17f72676f8fbc2c40292f4aebf883c321 (diff)
downloadsystemtap-steved-93fdaa0d0fed842826f105f409d6cf39e08e9d42.tar.gz
systemtap-steved-93fdaa0d0fed842826f105f409d6cf39e08e9d42.tar.xz
systemtap-steved-93fdaa0d0fed842826f105f409d6cf39e08e9d42.zip
aux_syscalls.stp (__fork_flags): Add termination signal.
Diffstat (limited to 'tapset/aux_syscalls.stp')
-rw-r--r--tapset/aux_syscalls.stp8
1 files changed, 7 insertions, 1 deletions
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);
+ }
%}
%{