diff options
author | eteo <eteo> | 2008-01-16 15:41:28 +0000 |
---|---|---|
committer | eteo <eteo> | 2008-01-16 15:41:28 +0000 |
commit | ed22941d3e10e5723ead8381d79b55ba8a36981c (patch) | |
tree | 50abbf455621c8d482ffee837854bd3955cf1be8 /stapfuncs.5.in | |
parent | 9012e89f2c17fddccac864f366af495ba7703f9b (diff) | |
download | systemtap-steved-ed22941d3e10e5723ead8381d79b55ba8a36981c.tar.gz systemtap-steved-ed22941d3e10e5723ead8381d79b55ba8a36981c.tar.xz systemtap-steved-ed22941d3e10e5723ead8381d79b55ba8a36981c.zip |
2008-01-16 Eugene Teo <eteo@redhat.com>
* stapfuncs.5.in: Document signal.stp tapset functions.
2008-01-16 Eugene Teo <eteo@redhat.com>
* signal.stp (get_sa_flags, get_sa_handler): New functions to
return addresses of sa_flags and sa_handler of struct k_sigaction.
(sigset_mask_str): New function. Returns a string containing the
set of signals to be blocked when executing the signal handler.
(is_sig_blocked): New function. Checks task_struct->blocked signal
mask for signals that are currently blocked.
(signal_str): New function. Translates a signal number.
(sa_flags_str): New function. Translates the sa_flags.
(sa_handler_str): New function. Returns the signal action or handler
associated to the signal.
2008-01-16 Eugene Teo <eteo@redhat.com>
* buildok/signal-embedded.stp: Add all new embedded C functions
in signal.
Diffstat (limited to 'stapfuncs.5.in')
-rw-r--r-- | stapfuncs.5.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/stapfuncs.5.in b/stapfuncs.5.in index 3802117a..85a00b37 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -444,6 +444,29 @@ Convert from host to network byte order, 32-bit. htons:long (x:long) Convert from host to network byte order, 16-bit. +.SS SIGNAL +.TP +get_sa_flags:long (act:long) +Returns the numeric value of sa_flags. +.TP +get_sa_handler:long (act:long) +Returns the numeric value of sa_handler. +.TP +sigset_mask_str:string (mask:long) +Returns the string representation of the sigset sa_mask. +.TP +is_sig_blocked:long (task:long, sig:long) +Returns 1 if the signal is currently blocked, or 0 if it is not. +.TP +sa_flags_str:string (sa_flags:long) +Returns the string representation of sa_flags. +.TP +sa_handler_str(handler) +Returns the string representation of sa_handler. If it is not SIG_DFL, SIG_IGN +or SIG_ERR, it will return the address of the handler. +.TP +signal_str(num) +Returns the string representation of the given signal number. .SH FILES .nh |