From e7a14b9aa750f7e50d8bd1b8a527e8cd383399c9 Mon Sep 17 00:00:00 2001 From: jistone Date: Thu, 10 Aug 2006 00:40:08 +0000 Subject: 2006-08-09 Josh Stone * tapset/signal.stp: Create a new tapset that addresses process signals. Much of this was contributed by Manoj Pattabhiraman (IBM). * tapset/process.stp: Remove aliases that now belong in signal tapset * examples/small_demos/proc_snoop.stp, testsuite/buildok/process_test.stp: Rename process.signal_* to new signal.* tapset. --- tapset/process.stp | 64 +----------------------------------------------------- 1 file changed, 1 insertion(+), 63 deletions(-) (limited to 'tapset/process.stp') diff --git a/tapset/process.stp b/tapset/process.stp index 005a698a..e1e9257d 100644 --- a/tapset/process.stp +++ b/tapset/process.stp @@ -7,7 +7,7 @@ // later version. -function _IS_ERR:long(ptr:long) %{ +function _IS_ERR:long(ptr:long) %{ /* pure */ THIS->__retvalue = IS_ERR((const void *)(long)THIS->ptr); %} @@ -112,65 +112,3 @@ probe process.exit = kernel.function("do_exit") { probe process.release = kernel.function("release_task") { task = $p } - - -/* probe process.signal_send - * - * Fires when a process sends a signal to another process. This does not - * include ignored signals. - * - * Context: - * The signal's sender. - * - * Arguments: - * signal - the number of the signal - * signal_name - a string representation of the signal - * task - a task handle to the signal recipient - * shared - indicates whether this signal is shared by the thread group - */ -probe process.signal_send = _process.signal_send.* { - signal = $sig - signal_name = _signal_name($sig) -} - -probe _process.signal_send.part1 = - kernel.function("__group_send_sig_info"), - kernel.function("send_group_sigqueue") -{ - task = $p - shared = 1 -} - -probe _process.signal_send.part2 = - kernel.function("send_sigqueue") -{ - task = $p - shared = 0 -} - -probe _process.signal_send.part3 = - kernel.function("specific_send_sig_info") -{ - task = $t - shared = 0 -} - - -/* probe process.signal_handle - * - * Fires when a process handles a signal. - * - * Context: - * The signal recipient. - * - * Arguments: - * signal - the number of the signal - * signal_name - a string representation of the signal - */ -probe process.signal_handle = - kernel.function("handle_signal") ?, - kernel.inline("handle_signal") ? -{ - signal = $sig - signal_name = _signal_name($sig) -} -- cgit