Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756306AbdDEX4C (ORCPT ); Wed, 5 Apr 2017 19:56:02 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:47934 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753109AbdDEXzy (ORCPT ); Wed, 5 Apr 2017 19:55:54 -0400 Authentication-Results: goodmis.org; dkim=none (message not signed) header.d=none;goodmis.org; dmarc=none action=none header.from=fb.com; Date: Wed, 5 Apr 2017 16:55:24 -0700 From: Calvin Owens To: Steven Rostedt CC: Petr Mladek , Sergey Senozhatsky , Greg Kroah-Hartman , Jiri Slaby , Andrew Morton , Manuel =?utf-8?Q?Sch=C3=B6lling?= , Hans de Goede , Paul Burton , , Subject: Re: [RFC][PATCH 2/2] printk: Add /sys/consoles/${con}/ and maxlevel attribute Message-ID: <20170405235524.kqbfzihbyy3lwtps@Haydn> References: <8d144e1ec0c18761c4a6e14353e49e81a81bc924.1491345440.git.calvinowens@fb.com> <20170404233050.3afba596@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20170404233050.3afba596@gandalf.local.home> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [2620:10d:c090:200::e:2533] X-ClientProxiedBy: DM5PR1601CA0032.namprd16.prod.outlook.com (10.174.111.45) To CY4PR15MB1221.namprd15.prod.outlook.com (10.172.177.19) X-MS-Office365-Filtering-Correlation-Id: 7ecb847a-fa27-4159-85db-08d47c7f3dcf X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:CY4PR15MB1221; X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1221;3:pwxcnca4522g4gx5G0yfsPyzHgIThJtS0ALi8KxKjOM/TTtXbdPQDHfFk0x7CqDxjay3+6CObAziDfq6bVxOmeBFUPJIWKcDy/mLYnBhdRU1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Jsz26SqtSc8brE57FFFo7Hy+9q3IQNWPu41sG3IByxZuxWak4dX5dB73fqskvGUS/zNjdG0IYV9XP/KpK3XJN27EjpROdtbRE8GTOXnSeovsEgOQkyaF1rv8VdZPeh+RjhI3EKaoOEHNZl/sGaMY868vK/LLTEQV65fByIMmZg+lSOVJvmTWVwkkUWltEEDS2uoA2LPkJnEoX0NvUN91Ta2Y9lNdpkUzHxdU2crNYIlUbmq8UTdK6zK9LO+H8s9Qg3gWkYfXTDNoPWNTvyJpWCW19pvSXCWQN96FoFXE8smZ4qqqkcxizrSFJ048OJUC+uybGFByIqzeqpbwNEZEWoasOxkHl7D2hkHcWBa9SO9xfAvXplZmokwaI3Wo8tEXXFXYDTF4H4zdsMB8iZ85l0q467h0YG7Wn9zm0yE9l7Gsd8GIFaoddw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(6072148);SRVR:CY4PR15MB1221;BCL:0;PCL:0;RULEID:;SRVR:CY4PR15MB1221; X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1221;4:7jGUYDgbsqvq3+71b4rvZtsqN254NNTQzo5OrgWKo+V5abULEUJjqVJ+1BmvaqzY/LGGK9rjFHZssCkmT1gr9IfFEVvF1Ze2dAwNys4IHWqPaVOGeU0JuNskLaJYAioJ39h9+6YEg/bCExrbM/d+bZJk179phb3XVPtUnVmHkEqGwDljPXe80jfMHLeZ+ilQWRAeJpifJ86aA1SOIqc3pSVBHkg1CpKR7e78EVjIGoyJdgB6D4DV2VqRGrvIS3oPjtt1zrPzXbFDqme3HUssskvRS5YHnaifXHXEUkdCkcldN1kkyKqihCk4bq8ENdlshzNmCnTpyxxug4tIIurH4H98se0sR4KUGQqccM/4gSXMzwRfZXsQkUXyFEv27OgAQTPCMh6BtkX+i004oe3H+Z3CDn3gOj+vZO5PMKmfn22U2jALKRL5qD1mz718ftoFbH6blHuGClOSRK2m5h8p66VIiK3JrriCJiVkY1MGG0GG0+Tnb31R/hsFtTdPOiw13HFYBr1fGW8bUrFtN2363QAYbdtFBVVr42tcWdzp/eoeLr9usoulXGCIholztcHEnHQDSX0U1i5iKyD7H/jbpQAtIpkrwuAnXcRdF8p5UfitcHnY4eek5KkmbXFo9KfQwz6P4sYyijKqzH8LwRswgEAndh1AThFnFLL0sPkYqFHfhG+Wl329akFUBgmZBP4gAWWDnYMDh8NcUTQAz6/6iIKR6ak/cGHClFUmSvTFEElsZbVmEfUd6/C8bOdW46JWeXvktahDe+NbCFJshQmriw== X-Forefront-PRVS: 0268246AE7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(24454002)(55016002)(50986999)(9686003)(76176999)(25786009)(7736002)(5660300001)(305945005)(54356999)(23676002)(33716001)(110136004)(8666007)(38730400002)(33646002)(54906002)(7416002)(6496005)(6246003)(8676002)(189998001)(42186005)(6116002)(6666003)(50466002)(2950100002)(4001350100001)(6916009)(1076002)(86362001)(81166006)(2906002)(4326008)(229853002)(83506001)(53936002)(47776003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1221;H:Haydn;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjE1TUIxMjIxOzIzOkNRVnozWDdWSWdFRUxlcTFhdzZTSTFyQ2Nm?= =?utf-8?B?ZmptQ1Uvb0ptdEdKbTVLYTVCU2ttbGw5SE1PUEJqZWQ4VktPU3pmZmdESFJp?= =?utf-8?B?ZTV5ZU9pU1Y1YzBvTDNiQmFTYWVlRjIyemY4UGtUWHQzb1I4dGR6ZGhpL0Yx?= =?utf-8?B?UjVBZjdybEkyMitqcXB6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issyDvYlL97ZTcCjUVxE1RKgTHkxchpsD1oKAJraeggWR5UaEXtArwPsx3ud/EBjZi3x5HFw7V90hQ==;24:O7VMbBLjq4B1oeECBwPt7UbfOMlvHeMwQYK8wTPogIiwzFUQEq7LDERJfJ241iT/VvfjFA81KT3vMQ3PkZQklfIYObDGeleo4UGmraVOAT8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1221;7:AnadDkd/AFWPcGBkdv0ffVo7U7jjNqLvufCG6BwsKlluafGRM8U9Q49POLwBOKDhM0JByuG0aZ456CUmoJbRQjumzbcb83RCGi4ahlAgReCeVazW2BRnqorXYBRK71GPmumVvNvobckx4s02Q2kgEbKfxtn2aFYpd4RFxZp/B+muUtasZJHbEx3BkYtl41o7T+Io4HfuuL+uet8y+FGTebcI3CtL9eon8ihL+Z3PFjU1ii01A1hkwrrpoL2+57n6XeqDnqskoWGNHrzOFhNh0QBry+11L0kz30Wd8z0nK0B5wsfr9J/PziFMVmMa31Hji3ziyW8otfMgabK9RKJMCw==;20:aw5WBYpALC4XvcDEVhX89Um1ooGctzXDbV0l8AZvTypMj32Ht6ukxzcm36gXax/kk3WwehTfjfauUu5HjtZNGEkPLm341j1aFrT29/zSJ4VO9+p+uWwalV47vf0Wt2n1MCejlGpNYAgkv8CkbOIvU9iRjzYpV9e9ISpoy2pceIA= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Apr 2017 23:55:29.4314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1221 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-05_17:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 25 On Tuesday 04/04 at 23:30 -0400, Steven Rostedt wrote: > On Tue, 4 Apr 2017 16:03:20 -0700 > Calvin Owens wrote: > > > This does the simplest possible thing: add a directory at the root of > > sysfs that allows setting the "maxlevel" parameter for each console. > > > > We can let kobject destruction race with console removal: if it does, > > maxlevel_{show,store}() will safely fail with -ENODEV. This is a little > > weird, but avoids embedding the kobject and therefore needing to totally > > refactor the way we handle console struct lifetime. > > Can you also add a patch that allows this to be set on the kernel > command line, when the consoles are defined. Absolutely :) Thanks, Calvin > -- Steve > > > > > Signed-off-by: Calvin Owens