Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3641600yba; Tue, 23 Apr 2019 07:16:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyk0I+G7X9jR+rrktRJVPu/Q8yY99zFyQVQLnRO5qFiFoNhizD5ZSUOzUqgoQIkH0gutC55 X-Received: by 2002:a17:902:2ec5:: with SMTP id r63mr26629101plb.139.1556028978845; Tue, 23 Apr 2019 07:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556028978; cv=none; d=google.com; s=arc-20160816; b=v5A3P2RVaf/Spu7xb6bY1B8QTke3xr7Ca8bE1W1SjuD0m4C/CdFk4j0dERmfC0OMkl gw2SDuwI13O4IHKucwNubVF7KWZFEuBA9PkvO6lliFJaapbd8TdqlVMtgfbnizIXlHVu 3cEcS9jge88t62qZ99C9VFDwbmY4Zhab5Bgfv+CQ+VL8oQfxdd0TV7gwtNmjdG85hZzD 0cXH0ndkpGEN1yhjeYh1zu7A+SaH9wybl/3C9hNOxGJ5f7sfFST2dOxYvw8nHrCOWGS6 M9DL9lpvafFU4cgzk5CaXJGe0VwPwgduBTlUilanjD4HFcrBitS8kIz30oMecxkRf0LC ALSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=C8XAGjSC65AdKP+utVTj9UNjBaOEMJ9GuXf07suSFjk=; b=Mu0i//ni0erXnVjGhpGFYQca1S5aEqwAB9Iu1wPOvI+IiEPNUGGEaWSvdTzLoSHum9 5X0I6eWzJ46P8icMqssWcXSC1NQzrs5szDPI8qwSvIWIIHGwegIoMNmRlGZqUuaF2TTr VR9Vp5ig4IhD8R/3VuRh0jDvLTdV31jxyTw4jM4CQcJzVXHZR0JogCPS84jbI2DTOE4v jKpeuc59sx4GlMS/7VlTUhdR608wG3Km2wBDoZAqSFakzdxHaGhEC0zUBOTdVinefU14 rtaSuzDtMyrl8GvcS5NI7R9ANcBc+ZwQ3Z0hbIVT5cUCF3WuSnXIVm/A+slr/nZCKnWW VjXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si14621122pgv.447.2019.04.23.07.16.02; Tue, 23 Apr 2019 07:16:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728060AbfDWONJ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 23 Apr 2019 10:13:09 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:38978 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727829AbfDWONI (ORCPT ); Tue, 23 Apr 2019 10:13:08 -0400 Received: from dggemi403-hub.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 15B3B1ADEC81549BCE04; Tue, 23 Apr 2019 22:13:05 +0800 (CST) Received: from DGGEMI530-MBX.china.huawei.com ([169.254.7.146]) by dggemi403-hub.china.huawei.com ([10.3.17.136]) with mapi id 14.03.0415.000; Tue, 23 Apr 2019 22:13:00 +0800 From: weizhenliang To: Oleg Nesterov CC: "ebiederm@xmission.com" , "colona@arista.com" , "akpm@linux-foundation.org" , "christian@brauner.io" , "arnd@arndb.de" , "tglx@linutronix.de" , "deepa.kernel@gmail.com" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH v3] signal: trace_signal_deliver when signal_group_exit Thread-Topic: [PATCH v3] signal: trace_signal_deliver when signal_group_exit Thread-Index: AdT53MSZ+tEkhqd4QUap/zXK56zV+Q== Date: Tue, 23 Apr 2019 14:13:00 +0000 Message-ID: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.40.99.192] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/23, Oleg wrote: >On 04/23, weizhenliang wrote: >> >> Last time Oleg suggested using SIG_DFL as the third parameter, but its type is 'void (*)(int)', but not expected 'struct k_sigaction *'. > >Yes I misread the signature of TRACE_EVENT(signal_deliver), and I thought you at least compiled the kernel with your patch applied ;) > >> How about >> trace_signal_deliver(SIGKILL, SEND_SIG_NOINFO, &sighand->action[signr >> - 1]); ? > >sure, this should fix the problem. Sorry about that, I will pay more attention to it in the future. And thanks for your reply, I will re-adjust the patch later. Wei.