Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5550007imb; Thu, 7 Mar 2019 19:12:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyfkffQqFsJNkGA2CAvWcg+8lV7LEqmuF0F2xs6JdH1L2Z5rDLc7xWJaentVz9eZiEThN1d X-Received: by 2002:a63:e752:: with SMTP id j18mr14466494pgk.313.1552014752904; Thu, 07 Mar 2019 19:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552014752; cv=none; d=google.com; s=arc-20160816; b=vjkfSbSDSwQp0e2URBJkqx+9fKRGOTfRlkyXKsdysd09qP9iYdlekPSEVr85XWqcFk zxFl/TuFDncSCXj1tFG/IqC64nveCQE634Gkbsr9TirfEBgcr2AxGfHKITgrWx0hlY6w qdZP8YNAt6HU/IvR33iOTdwGCk4dGpkCCPI3C6z9fnA8ldBekuFL9no/yT17FNJENE+T 0Ueo7t+K8CbfzZZID/JzIbpaaXAQp5hYIe+rykP5M+bAoSIqPPrqUqpHVvzCdJwSay7z WwpJ73tkZXDPDtF6wh0dWMDRfWSXIxpaLqgbjWnhlcnEay+gXdr2xqDlRaplU0qwJLwf jhLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sU6L662VWl9FEPdqU7e+L5Ut0nmMlyYAXEzcVxhLIho=; b=RWcHV3ag42X3n56Hq1UMvPVJlto8BNLLO4cZIS0RuaDt4ejST3lLJVaLn20YAWf85f cWn98uNsWph3OiG5BlH8kBLXW8EJ+WoemuhKqpSMqq3IuigpTkyDZCPFD7ZS4Io9+Ri2 xyliUd4hEskCQZ06kdpHh7h6sChci3lnlfKKOZ6FiXQNE6+NyBnQ+r6HRQgpJEDllfrK sQJ3XQeGAmh3LCSmKnzPyZLy6mgiLAiu6No4HIleCsPeKpXOM69lsXVWU7WRf2OjQwKy OwcXT910iXIXnHyhHxgVqq3vC2/iA9QhR5EqLnn5dYWZ8XmlS3+z2WEcP44Tv3o/dHkb xKqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AY+Zb43v; 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 70si5646570pla.128.2019.03.07.19.12.17; Thu, 07 Mar 2019 19:12:32 -0800 (PST) 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=AY+Zb43v; 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 S1726784AbfCHDL0 (ORCPT + 99 others); Thu, 7 Mar 2019 22:11:26 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39644 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726399AbfCHDLZ (ORCPT ); Thu, 7 Mar 2019 22:11:25 -0500 Received: by mail-pf1-f195.google.com with SMTP id i20so13034872pfo.6; Thu, 07 Mar 2019 19:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sU6L662VWl9FEPdqU7e+L5Ut0nmMlyYAXEzcVxhLIho=; b=AY+Zb43vPJ1SyUw0wDBY3ScDQTLHs2IpIh+A0VIE16mtONfLg2Hh446VxcQ9uxW5Fq Km6cKAI3eXHggGqiB2zTS/mIzennFlLPYTTfg/YuRmVm70862fYOY9M6DhB4OLwYhGkT +5lUanoBNsSNio4sEj4f0Coa3J12uIw0AmuqrXYiNce0gWrgR2SRK7zSIYfeKOxc+zGp qt0myZPKk3HBM0Jag/M0zZiPJAr8Jb/0qw7N6Jtx0opbUMbm42o94I1l8NKn1qI+1zan byRdCR1FdfLLYNNYV4BbiCPojiCveYlB4/saHjvzBesbwT1nWZKxUajVnrfVfNHI9fsJ Smvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sU6L662VWl9FEPdqU7e+L5Ut0nmMlyYAXEzcVxhLIho=; b=r8rq5Hmu4g8fP65vZ3Z0G9AygS1fMmTfFV3jFMRPYrY+v+0ysbR8JzG9g7G+rl+XNb zoQrv7O3Kq0D76a4Zh/iKJB64fND2i7P7WqIzLN0lhgPq7ww1IPhhL+e/MrhYBNKiy3j IooPZLOZaQvszRHafN9+kh/n7RyhC4O7Urlc5lRNHXHjfF+v17YzNaf2gKgdhu4CKcwv HHYR+3zYgK/+2oBXBknF2cdMj0+6Bo9NLZS9JEMo7qnevidSMWLBkbdfQCLSF+gzsclH VJk493nc0P3GM/WziMOgj12I5slz5+Aqt4L/4suaXPe9YGr2mlU5BmjbbdtqriekHqFm pfmQ== X-Gm-Message-State: APjAAAVs19zv76/SY6wp1rlCiI0aTjD1qwYMUroJagMa5I7wzPv73M3i LMYF9zj2xC0yXOSuOXJHanc= X-Received: by 2002:a63:360e:: with SMTP id d14mr14715870pga.179.1552014684842; Thu, 07 Mar 2019 19:11:24 -0800 (PST) Received: from localhost ([175.223.36.163]) by smtp.gmail.com with ESMTPSA id m9sm10015330pfi.31.2019.03.07.19.11.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 19:11:24 -0800 (PST) Date: Fri, 8 Mar 2019 12:11:21 +0900 From: Sergey Senozhatsky To: Calvin Owens Cc: Sergey Senozhatsky , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Jonathan Corbet , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: Re: [PATCH 4/4] printk: Add a device attribute for the per-console loglevel Message-ID: <20190308031121.GA2480@jagdpanzerIV> References: <4f71564063a07837e3c4df41326bad25e7dc4db4.1551486733.git.calvinowens@fb.com> <20190304080630.GA4495@jagdpanzerIV> <20190304191006.GA51516@calvinowens-mba.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190304191006.GA51516@calvinowens-mba.dhcp.thefacebook.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (03/04/19 19:10), Calvin Owens wrote: > On Monday 03/04 at 17:06 +0900, Sergey Senozhatsky wrote: > > On (03/01/19 16:48), Calvin Owens wrote: > > > +static struct attribute *console_sysfs_attrs[] = { > > > + &dev_attr_loglevel.attr, > > > + NULL, > > > +}; > > > +ATTRIBUTE_GROUPS(console_sysfs); > > > + > > > static struct bus_type console_subsys = { > > > .name = "console", > > > + .dev_groups = console_sysfs_groups, > > > }; > > > > Do we really need to change this dynamically? Console options are > > traditionally static (boot param or DT). Can we also be happy with > > the static per-console loglevel? > > It really does need to be runtime configurable: there are a lot of usecases > that enables, like turning the fast console up to KERN_DEBUG on a pile of > machines you want to take a closer look at. The 'kernel.printk' global > loglevel is also already changable at runtime, and since that setting > interacts with this one it would be strange if only the former were able > to be changed. Fair enough. -ss