Received: by 10.192.165.148 with SMTP id m20csp862021imm; Fri, 27 Apr 2018 08:41:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoVqL+IR17v7POI0sPpwn69eX34gp/GLKgKm6aD+Y/8OmJBdCglWaRIAOS0T/4uganSRycD X-Received: by 2002:a63:3701:: with SMTP id e1-v6mr2514961pga.237.1524843689260; Fri, 27 Apr 2018 08:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524843689; cv=none; d=google.com; s=arc-20160816; b=GKdoqS3gZb35x8uR0JDAsrXRjMskG+YV6GMij/LaP6XRZbaiJafWSzfv5iTFWbokXd lFFYK+W4sugBgX4BHE0tqJP09TCw+xHmdCf03Dz0sJKif8xbVtQd5xWb5oIO35k2oRHh /vb3Oi42i+jjzL+gYbMY32FL51smwBxDVFSYn8YtV4j20aQkfgmVGBUq70Zw1+eSslnp cNu7zMcjJc+6zExApXgZaZ3Q8d+PmqQmF8wCItJWNV/+qsumHQc8GAvmAkQZY0OOa1aW zhia1lWI2OK1ycrO0rBrkrP0epKO3jMSQQWsSFgwzIcaXpsEQHSWK0IQfcZeLLrQUTlZ L32g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=cHGhXcn+io7+OBS4X2y/PQ9+aQaM7UsgqP1GsNSrJ9k=; b=Vzak2lAaog77HI1VO4Lwtx+8dH3x6Mpc3JgoNlDANACTTEGRIaTYwrcLv/8/7rBbfr nrDWCjCTUf7XMjUGGJ2whG2g4V2npEtfvQrGk4geogqYP+opE7ASHqHnkGccRhBqrJUI 1f4fbx0GmOnwxRnH0wSPjRJEYS/YBqU2QD1ZXbnZoRVkfVevnZw0QTnCPj1hwSd0f5hH 3K7Oh1/9p6djXCiJq2JjqXMpGhiAvjFTNo9HcFfaBH1YIaPw2XTSJfWnFR+0DQEj9NMl QWlAmpOyl0tO3TnTgeo1MtD7jKvlpKAxJbF3oX0C5Xu9aMhXVOe/zuFfPQuBW1h45q/B JIjg== 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 d17-v6si1381263pgv.188.2018.04.27.08.41.14; Fri, 27 Apr 2018 08:41:29 -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 S933003AbeD0PkK (ORCPT + 99 others); Fri, 27 Apr 2018 11:40:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:48138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932803AbeD0PkJ (ORCPT ); Fri, 27 Apr 2018 11:40:09 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EBC1F2184B; Fri, 27 Apr 2018 15:40:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBC1F2184B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 27 Apr 2018 11:40:05 -0400 From: Steven Rostedt To: "Paul E. McKenney" 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 Message-ID: <20180427114005.31d1e8ab@gandalf.local.home> In-Reply-To: <20180427153826.GK26088@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> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Steve