Received: by 10.192.165.148 with SMTP id m20csp879057imm; Fri, 27 Apr 2018 08:58:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrxHxnn9NabfDLL8xK5tSUtc2cJEEPYRYJ1Eoz3svvabZftOOUiZTjM30yBNNEzyZxfkL9c X-Received: by 2002:a17:902:189:: with SMTP id b9-v6mr2816823plb.204.1524844739214; Fri, 27 Apr 2018 08:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524844739; cv=none; d=google.com; s=arc-20160816; b=JunlQdzoLHpGoymM6sEeF3zx2CqWuMiIVT1m66xUiK2Oe2Vb+ptlHvdzPxTk+kFPHE 6fBWFvbJVDw+1F0XvvBfGjUDyUB5w7GeHC+OBDjocKyorLCEyMx+ODHTFR6a1RarMvYw f5ardCoxkBmAa/oFr3HdN7s4fXB/mdaEFHmAUo0eAcf9YYjc09cZsTsHSezRugFqK1gt QdrYvwLXoBaPoD/FUA9g07G+VAYuwdDegXy2YI8w4deHCLFX6VfOCpC55NX6WudrPxlb UxxbvyLUi05H1qvYwgAjdEH8M2fq57jDcBxTeoUycgqSbaGVbuy2/hNQ9W/EJgZGrEuU 9CsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=pCH6gRrB4khi2jgqMVThHYahtyuq+3+4vzXHL2tkH0c=; b=x5Z8p6rea/mj/UUacn6cJNiN9xWiPG4ggWVkbEoQEDhpVk/44lvQs5yMC8sPuKVS5H FBTVMdRYsF0s1A8TC687XRGasPPk8YZNPd6xQjflZMsi/TbsFzFeEEomQLg6MwF5sTO0 G0KKskShrPek8YQo+iEkT0Eyki0tUdlImZBzKeLB19JVp3lJnukmCxgyKepRJJOaCu0a gM3pQonL/K9ZYtKFGom0ap0TL7aR03JshgFf3HnlfkUsjhWYl1v+7JAyKgidNpSuM6Bc xMf14TjD22c3ViMOGnLuJQ3KvI3DSz5+zhJIx3PNDSnLFrUAKqXQZvGFWtLrxxt0tfPB lpNQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l81si1485893pfj.127.2018.04.27.08.58.44; Fri, 27 Apr 2018 08:58:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758572AbeD0P5h (ORCPT + 99 others); Fri, 27 Apr 2018 11:57:37 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:36724 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758290AbeD0P5f (ORCPT ); Fri, 27 Apr 2018 11:57:35 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3RFtP5n012988 for ; Fri, 27 Apr 2018 11:57:35 -0400 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hm4ccey9t-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Apr 2018 11:57:35 -0400 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 27 Apr 2018 11:57:34 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 27 Apr 2018 11:57:29 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3RFvT0M66846770; Fri, 27 Apr 2018 15:57:29 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C8246B2046; Fri, 27 Apr 2018 12:59:30 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 8FB9CB204D; Fri, 27 Apr 2018 12:59:30 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 5577F16C196D; Fri, 27 Apr 2018 08:58:46 -0700 (PDT) Date: Fri, 27 Apr 2018 08:58:46 -0700 From: "Paul E. McKenney" To: Steven Rostedt Cc: Mathieu Desnoyers , Joel Fernandes , linux-kernel , Peter Zijlstra , Ingo Molnar , Tom Zanussi , Namhyung Kim , Thomas Gleixner , Boqun Feng , fweisbec , Randy Dunlap , Masami Hiramatsu , kbuild test robot , baohong liu , vedang patel , kernel-team@android.com Subject: Re: [PATCH RFC] tracepoint: Introduce tracepoint callbacks executing with preempt on Reply-To: paulmck@linux.vnet.ibm.com References: <20180427042656.190746-1-joelaf@google.com> <1169911546.5820.1524839189395.JavaMail.zimbra@efficios.com> <20180427104747.2d965925@gandalf.local.home> <20180427153826.GK26088@linux.vnet.ibm.com> <20180427114005.31d1e8ab@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180427114005.31d1e8ab@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18042715-0040-0000-0000-000004233B0D X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008932; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01024075; UDB=6.00522844; IPR=6.00803306; MB=3.00020808; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-27 15:57:33 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042715-0041-0000-0000-000008293D14 Message-Id: <20180427155846.GM26088@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-27_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804270153 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 11:40:05AM -0400, Steven Rostedt wrote: > On Fri, 27 Apr 2018 08:38:26 -0700 > "Paul E. McKenney" wrote: > > > On Fri, Apr 27, 2018 at 10:47:47AM -0400, Steven Rostedt wrote: > > > On Fri, 27 Apr 2018 10:26:29 -0400 (EDT) > > > Mathieu Desnoyers wrote: > > > > > > > The general approach and the implementation look fine, except for > > > > one small detail: I would be tempted to explicitly disable preemption > > > > around the call to the tracepoint callback for the rcuidle variant, > > > > unless we plan to audit every tracer right away to remove any assumption > > > > that preemption is disabled in the callback implementation. > > > > > > I'm thinking that we do that audit. There shouldn't be many instances > > > of it. I like the idea that a tracepoint callback gets called with > > > preemption enabled. > > > > Are you really sure you want to increase your state space that much? > > Why not? The code I have in callbacks already deals with all sorts of > context - normal, softirq, irq, NMI, preemption disabled, irq > disabled. But why? Do people really expect good real-time response on systems instrumented with lots of tracing? Thanx, Paul