Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2033338ybp; Thu, 10 Oct 2019 00:58:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqySO3Sh1/7bEc/sga8DZa0sJB4mjjiLEeT+l+VbkZNjWH08L0cd3evbaR8F9ZFHl6vthhO6 X-Received: by 2002:a17:906:5e19:: with SMTP id n25mr6988745eju.131.1570694301322; Thu, 10 Oct 2019 00:58:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570694301; cv=none; d=google.com; s=arc-20160816; b=pz00RZ7RnhwV8bseNZo0/o/OmJjTFlor7NNYljV1XZEdu81xx//xvR0cnfHNy/2+fI 4z9r/tF67gtgZ3XJoPhDVhbVReG5UP8/mCBfDsq9SD/J/2D1a8L3Aw72LT25QvH17neJ Axv/w7egGzJRYDgggP/9lSxNxlRNTevY4RNgEUT3vq41YoHKfnYsaD857vmAkDDMh7Pt pM13GrI2GpH6r7shC55FXtzY0x60C4V4OG4q1lisw4rT/r4iEQxgZBzrZkxYseBqFUd/ SQuVJMJRrkT8GR7fZLMJIZW02wHwkDP5Wosf27KDIHLB6sHZVT/6Op+iMDTcjwxL+ZdO Zi0Q== 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 :in-reply-to:references:mime-version:dkim-signature; bh=abZRbHtx5iae3osvif2/XET2yXd88kPrNl4NEXaM0H8=; b=jV18vYX2pKOGIDNAcMaUR8CRH/INFlvP5Y9fkxom+G1fDFlhcUbhAWfKu0BFK4HuG/ QWgWoy7oJazHSwVj2psB9IM1TN0zizHzNcfpN3ZbXZFBKbcgIeZRJMJxFNePiD4IQ8sv 6lXWO6aM3d/GfsL32G6ZPoIO4hBL6rVW/lt4leNbPu9sZjQhDzGoSXV1Qnyiv2Df3txH /ywvAtlm68ZMA0QwmmEh4l+7PYRsX4UVFJ22VM1GnV8sCe05lhbpVPQswm09c5T8MrTY 2Uocaa+sho9JEIwJ+Ey6w9+E2CrZnrmhrW+sNAaHV03snBh6OABln+OZXJIfLdKAsEQ9 eltA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r9XnX277; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si2682783ejr.204.2019.10.10.00.57.57; Thu, 10 Oct 2019 00:58:21 -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=@gmail.com header.s=20161025 header.b=r9XnX277; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732993AbfJJH5n (ORCPT + 99 others); Thu, 10 Oct 2019 03:57:43 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:43990 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726864AbfJJH5n (ORCPT ); Thu, 10 Oct 2019 03:57:43 -0400 Received: by mail-ed1-f65.google.com with SMTP id r9so4556649edl.10 for ; Thu, 10 Oct 2019 00:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=abZRbHtx5iae3osvif2/XET2yXd88kPrNl4NEXaM0H8=; b=r9XnX277LTpf7y0OwaeUmdL7TPJb44sg1GG0+Tz2Q8tSweblfMVFwsjE55CnbRbBWe /qnOwBACZtBt0HW8bItxWWfe7OCuxSyt+F5X9WUTj/rUTYwYUSVRtjixCCUr1y5JL4Lt RC2AqdRz46xKNoF82mIqpXp2fiW6OyuhByYfObVCIYHiEKkf6S7+iyAFM0P07H7+YaeD 2ziYzqRu8hLDWFAdhO4XtnS4O1Oyx2QHx63pjl8w80sxWhSrBHcJtPAYrrEfkSpE3WXG vea2xUjE+DjiBwBudQG3TyrUd5+tPoc5PDsvv5cy8jkHTheiu5qQXE2+rGs8E6bf/0ZL DxvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=abZRbHtx5iae3osvif2/XET2yXd88kPrNl4NEXaM0H8=; b=qx317RcLVFKaYFCfg4BjLc1n74f2xjdQ8u4toqFxJAUBdjWAVZ5FEhF3zQhV/4e8T+ ntbUrj6loyoOKtotlpkLGSKjqRA3S86kyjjmeMFNzVqFG4TmToqIL8KDIqnhHzaEMCuD bJLRvky1skzbv/2AYoQHWDAt9jo5ZALLS6twNJECR67e/CXjevCOkTGj1nxZAOPbG/tZ 8oHCHs4qk8anNQUjvrQ5mAcgrzFIxsp/5kyzheowkjUJZFX9Qshgf//DBEEi1Tfi3rUD VPPklgcF8ccTU2tiHzk6fnL71NNLerX33cH+HL/XyCcrjhVYxaPUDmRMtEs6Wg9pVm+/ cCJg== X-Gm-Message-State: APjAAAWWAeukIjHtLr6H0iuD17XOXpyM0ZBPGeoNUvF0UBqiJiGc8Iel wys1jGkbAWjnlkYQ0usRo/Zt7CM3hDmTTpyQzg== X-Received: by 2002:a17:906:2410:: with SMTP id z16mr6889645eja.120.1570694262042; Thu, 10 Oct 2019 00:57:42 -0700 (PDT) MIME-Version: 1.0 References: <20191008220824.7911-1-viktor.rosendahl@gmail.com> <20191008220824.7911-5-viktor.rosendahl@gmail.com> <20191009141114.GC143258@google.com> <20191009140804.74d9ab1f@gandalf.local.home> In-Reply-To: <20191009140804.74d9ab1f@gandalf.local.home> From: Viktor Rosendahl Date: Thu, 10 Oct 2019 09:57:31 +0200 Message-ID: Subject: Re: [PATCH v8 4/4] ftrace: Add an option for tracing console latencies To: Steven Rostedt Cc: Joel Fernandes , Ingo Molnar , linux-kernel@vger.kernel.org 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 Den ons 9 okt. 2019 kl 20:08 skrev Steven Rostedt : > > On Wed, 9 Oct 2019 16:51:07 +0200 > Viktor Rosendahl wrote: > > > Apologies, I should have replied there but I have been a bit busy the > > last few days with other topics, and I felt a bit indecisive about > > that point, so I just sloppily addressed the issue in the cover letter > > of this new series: > > > > "I have retained the fourth patch, although it was suggested that is becoming > > obsolete soon. I have retained it only because I do not know the status of > > the code that will make it obsolete. It's the last patch of the series and > > if there indeed is some code that will remove the latency issues from the > > printk code, then of course it makes sense to drop it. The first three patches > > will work without it." > > > > I thought that, since it's the last in the series, it would be > > possible for maintainers to just take the first three if the last one > > is not wanted. > > > > For me it solves a rather important problem though, so if the code > > that will make it obsolete isn't available for some time, then perhaps > > it should be considered as a temporary solution. > > > > Of course, if there is a commitment to never remove any knobs from > > /sys/kernel/debug/tracing/trace_options, then I can easily understand > > that it's not wanted as a temporary fix. > > There isn't quite a commitment to not remove knobs, but if a tool > starts relying on a knob, then, the answer is yes there is :-p > > As this will hopefully become something we don't worry about in the > future, I would rather have this be a kernel command line option. This > way, it wont be something that tools can really check for. > > If you add a trace_console_latency option to the kernel command line, > we can enable it that way. And then when it becomes obsolete, we can > simply remove it, without breaking any tools. > > Would that work for you? > Sounds good to me. I will try to adjust the patch accordingly within a few days. best regards, Viktor > -- Steve