Received: by 10.192.165.148 with SMTP id m20csp1020015imm; Fri, 27 Apr 2018 11:13:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrq0oM8YMynWG9MoLFHR10CdCvf1IGpGs75ECfMKiwRavhi4vfa8tetAVH63p0m5xFNBxt1 X-Received: by 2002:a63:6196:: with SMTP id v144-v6mr3008397pgb.264.1524852810260; Fri, 27 Apr 2018 11:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524852810; cv=none; d=google.com; s=arc-20160816; b=aIu6JdwNQDWG4oms3Cs5Bp28obJxRTOHhNHuIUsAiWahHvwOjpRhLfevoylgcVQzUs sNWwbnm1ArHdkzP0CzN4EywTFBvUlHeWkSkssSUWlPq+d3M5/feBeSI4RbUOFkOv9aSU K9XYtDlgeEIOzLj2rn4ESTrF8EW54Ct+nMD3HHCJLyu3T83pOtnSd2TltjHLc3xFZa8o H40qSNSgSOyKm6BqJZMjsP1NBSMHL+sD8ttL9Kqe297Bt90mu/Ltl3+n09dUFXWsj2Y7 dzgLTAwBStbDdW3dw/DpF+OzAbeXOe3PM4axv2Ml/l6QKwNNJ2bk414YbgxEXFQQY+gE nwpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=nEdQ9J/Vwb+B/KD2O7Bn37TX8hYQM8tio4xFyREEc7I=; b=LMdVFn6rdCUzag4Wj43EzaatW27v3C0dy3YENKH1H5Tp6NGNpE0T0XL+biPf2zp+U0 cO0KlMahzlkmrq+oil90mK202pGKTBQQeTt0rhMla/i+8uFnOXbDAaTAfupZn0ET6fIW luiMjEkL1Fo7ZlPXU3w4tYCKtn5f1UXbOm6d7y3A4Wdsp6ik3+ajLCou+dTR2s4cgvZg 9Pp3C12AgGELXfZzUlPBzRJEn/JJRTqbbr7FDGSpz87DcjE11Wh0cWja/AkUQf40B/Jk 1sFNf7LW3Jkx6Rns/tQoJdRO5L+3Bf8lZuEIcgq+G6HXzmnOzmqvHKKKv5Ap6eE1chJ4 soMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kVHxyT2g; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c25-v6si1647433pgf.237.2018.04.27.11.13.15; Fri, 27 Apr 2018 11:13:30 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=kVHxyT2g; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757703AbeD0SLv (ORCPT + 99 others); Fri, 27 Apr 2018 14:11:51 -0400 Received: from mail-it0-f41.google.com ([209.85.214.41]:35814 "EHLO mail-it0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757197AbeD0SLt (ORCPT ); Fri, 27 Apr 2018 14:11:49 -0400 Received: by mail-it0-f41.google.com with SMTP id 186-v6so2887990itu.0 for ; Fri, 27 Apr 2018 11:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nEdQ9J/Vwb+B/KD2O7Bn37TX8hYQM8tio4xFyREEc7I=; b=kVHxyT2gW7QsbBFjB402l8seE/iZlwXUcIxCz5GbVQnCKQNXz13hvh757Yd2B6m/iU kuBFgcyK7xRY0MRiEMn1wVSfifQjpBXzL2JbTHxAic2Fh6miKNNoprZEGMiJ+Xyphyyx DMQxTz05o7a3UK95ACggpeVdrDngCmDbML0TIW9SICXchN6tLNZgcuS3y8EM33aS9gSt NPL6H3AzR5ZYQK2qQq7KRFcjaZH/jnekptX50J0ttlGb2fkKheCHYlchN4oLbwo+2le7 0B7awl7k6xnjK0sIyOx3t2YKvnJa36GeQEOrsHq7RPMs8Ob6SNXZ4cmfNDuD3Gp4MAax oeaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nEdQ9J/Vwb+B/KD2O7Bn37TX8hYQM8tio4xFyREEc7I=; b=iiqiK+AVXavsD8Ln432oaI6fl+u7yp4sh6pbnk1kce64Z+4GjBylhKBtcXptDRCxzl PcRkmbDIh5LnYxjLFKj4IyA1IbY0EYScHOF+A0AHBpk98oJ4+O1YygZj+3rdKBhPCRfc z9KomoSxg429WdjgiOpqbA2m23J0HAVNsZR+bUojz/O3XVO9Z6ePLiXcQ1WNfQ6GlZIW mvWf46IVSrS4hcbH0vYtEOAlAfgsT+etAdrigGAmSJAh7u6f7QidHnGTsu6wLdsiHT+/ k5dqaT+q1ghqOZF/ph2788Zvd/LBNtEJlS0bHl6G+rAqZHXb+dMKGijQ6qYSlhUZt4PH +pUw== X-Gm-Message-State: ALQs6tCkdobW0ERVf+SSXrWwGbQ1an2iFCIOUP4cCynJJKh0Q3CeN+8d N8AUzIqCm4qCHXwFe1waBdVe1Zz+R8zOEhZzKZhJMILz X-Received: by 2002:a24:6d5:: with SMTP id 204-v6mr3042012itv.47.1524852708631; Fri, 27 Apr 2018 11:11:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.181.213 with HTTP; Fri, 27 Apr 2018 11:11:47 -0700 (PDT) In-Reply-To: <20180427123759.0bc4b8de@gandalf.local.home> References: <20180427042656.190746-1-joelaf@google.com> <1169911546.5820.1524839189395.JavaMail.zimbra@efficios.com> <20180427104747.2d965925@gandalf.local.home> <20180427123759.0bc4b8de@gandalf.local.home> From: Joel Fernandes Date: Fri, 27 Apr 2018 11:11:47 -0700 Message-ID: Subject: Re: [PATCH RFC] tracepoint: Introduce tracepoint callbacks executing with preempt on To: Steven Rostedt Cc: Mathieu Desnoyers , linux-kernel , Peter Zijlstra , Ingo Molnar , Tom Zanussi , Namhyung Kim , Thomas Gleixner , Boqun Feng , "Paul E. McKenney" , fweisbec , Randy Dunlap , Masami Hiramatsu , kbuild test robot , baohong liu , vedang patel , "Cc: Android Kernel" Content-Type: text/plain; charset="UTF-8" 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 9:37 AM, Steven Rostedt wrote: > On Fri, 27 Apr 2018 09:30:05 -0700 > Joel Fernandes wrote: > >> On Fri, Apr 27, 2018 at 7:47 AM, 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. >> >> Here is the list of all callers of the _rcuidle : > > I was thinking of auditing who registers callbacks to any tracepoints. Ok. If you feel strongly about this, I think for now I could also just wrap the callback execution with preempt_disable_notrace. And, when/if we get to doing the blocking callbacks work, we can considering keeping preempts on. thanks, - Joel