Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp576783ybe; Wed, 4 Sep 2019 04:38:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTDuq/kh+K4HOsypAuMRhFDN0peyVfGLymcljfRRbOdGdYV30KUi1RekEgeZi51/25U+tW X-Received: by 2002:a17:902:76c2:: with SMTP id j2mr36113202plt.305.1567597124876; Wed, 04 Sep 2019 04:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567597124; cv=none; d=google.com; s=arc-20160816; b=QkEGIw0rM9NXh1p96KXYyzAT2EQ3wn4mcmrrzENTduGCR4lTe7dC7eViAARUCLu1Hf 4ctukQY9R3gEea/knH8fV5aCo/2nFnRd+dZLRn7Je9bSzKO7qnkkANhTrZBnf0RlVDqq XgwAMBARVKNtartO1UzIVKEW5S/m7ZDU9PnvE/5yaLC5DQG3KMhXsYJnzOddfxm6RHAK v+erWXJWp+ZCEqSioEITHg2R/jr63DuPAWvB2SD5h0Wf8SYg1qbMCVtR/GchiLWiPMPl 8t2Q+xIKPfoON4QgaUNbZ6N2FEPQHdQ8cWOEKSs5x1e6Ot+NGfh/K02+SdwMKqxITrhx QRCQ== 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; bh=bkqiMmcMSzgDij2duLb6nAnpriLE9CKCpSEQQYX5dTw=; b=MDQmCvP2tu/CFPKzZskWHPIXbklKjkuGrFE5My0usQDKlxv+GLs/1+Upjz4Ry6WtGf 19tUvb3bZjikYftylaFVJebVLhSgc1jVQxzT1K8/2H8khzxdZRA30MrH0EuyNGxjKJz4 yrsA9aTLylKofhNMK5XRvW/BFy+s85LCdjFDUetfbZZRkJnqFBYeaVs5I4kbp5efavou ud6yXYERB5tVbuOtnuqMfK432H9IhP2xWBBCzLX1tRvZJ5ABILdLRiQNRkNwY3KMJe35 ovDwrK4uFPgG0CMcVedcQur+lsPNQr15cZbfcbREXStfx6nRJ6QLCX0CN9xG4bArZQKa 1flQ== 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 g4si16727810pgf.383.2019.09.04.04.38.28; Wed, 04 Sep 2019 04:38:44 -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 S1729680AbfIDLhn (ORCPT + 99 others); Wed, 4 Sep 2019 07:37:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:52662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727768AbfIDLhm (ORCPT ); Wed, 4 Sep 2019 07:37:42 -0400 Received: from oasis.local.home (bl11-233-114.dsl.telepac.pt [85.244.233.114]) (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 A4BD222CF7; Wed, 4 Sep 2019 11:37:40 +0000 (UTC) Date: Wed, 4 Sep 2019 07:37:34 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Viktor Rosendahl , Ingo Molnar , linux-kernel@vger.kernel.org, Joel Fernandes Subject: Re: [PATCH v5 1/4] ftrace: Implement fs notification for tracing_max_latency Message-ID: <20190904073734.0a70236c@oasis.local.home> In-Reply-To: <20190904082046.GB2349@hirez.programming.kicks-ass.net> References: <20190903132602.3440-1-viktor.rosendahl@gmail.com> <20190903132602.3440-2-viktor.rosendahl@gmail.com> <20190904082046.GB2349@hirez.programming.kicks-ass.net> X-Mailer: Claws Mail 3.17.3 (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 Wed, 4 Sep 2019 10:20:46 +0200 Peter Zijlstra wrote: > On Tue, Sep 03, 2019 at 03:25:59PM +0200, Viktor Rosendahl wrote: > > > It seems like it would be possible to simply replace the calls to > > latency_fsnotify_enable/disable() with calls to > > start/stop_critical_timings(). However, the main problem is that it > > would not work for the wakup tracer. The wakeup tracer needs a > > facility that postpones the notifications, not one that prevents the > > measurements because all its measurements takes place in the middle > > of __schedule(). On the other hand, in some places, like in idle and > > the console we need start stop functions that prevents the > > measurements from being make. > > Like Joel already mentioned; you can use irq_work here. And I was thinking the exact same thing here too ;-) -- Steve