From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1901 invoked by alias); 28 Jul 2006 08:05:17 -0000 Received: (qmail 1893 invoked by uid 22791); 28 Jul 2006 08:05:16 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ausmtp06.au.ibm.com (HELO ausmtp06.au.ibm.com) (202.81.18.155) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Jul 2006 08:05:14 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp06.au.ibm.com (8.13.6/8.13.6) with ESMTP id k6S86oLS7532562 for ; Fri, 28 Jul 2006 18:06:50 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.250.242]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k6S88YnM221110 for ; Fri, 28 Jul 2006 18:08:34 +1000 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k6S85AkN016902 for ; Fri, 28 Jul 2006 18:05:10 +1000 Received: from [127.0.0.1] ([9.181.133.250]) by d23av01.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k6S858TK015213; Fri, 28 Jul 2006 18:05:10 +1000 Message-ID: <44C9C56C.5020809@cn.ibm.com> Date: Fri, 28 Jul 2006 08:05:00 -0000 From: Li Guanglei Organization: IBM CSTL User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: "systemtap@sourceware.org" CC: Manoj S Pattabhiraman Subject: Re: Systemtap probe for Signals References: <44C71635.60902@cn.ibm.com> In-Reply-To: <44C71635.60902@cn.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2006-q3/txt/msg00177.txt.bz2 Hi, Beside the probe points in your tapset, I'd like to probe the following signal related kernel functions: 1. do_sigpending It is used to suspend signals. Called by sys_rt_sigpending and sys_sigpending 2. handle_signal It is called when the kernel want to invoke the signal handlers. Called by do_signal. 3. do_sigaction It is called by sys_sigaction, compat_sys_rt_sigaction, compat_sys_rt_sigaction, sys_rt_sigaction, sys_signal. It is corresponding to the signal() and sigaction() calles from use app. 4. sigprocmask It is called by sys_sigprocmask, sys_rt_sigprocmask. And I found you put a point on sig_ignored. But I don't think sig_ignored is used to ignore a signal. It is only used to check whether or not a signal has been ignored. And another comment is about signal.sendsig and signal.send_sig_queue. The difference between send_signal and send*sigqueue is that send_signal will alloc a sigqueue before adding a signal into that queue. But their intention are almost the same: sending a signal to a process. I am not sure whether we could combine them into one probe or leave it unchanged. - Guanglei