[PATCH 3/3] printk: Add ability to set loglevel via "console=" cmdline

2017-09-28 Thread Calvin Owens
This extends the "console=" interface to allow setting the per-console loglevel by adding "/N" to the string, where N is the desired loglevel expressed as a base 10 integer. Invalid values are silently ignored. Cc: Petr Mladek Cc: Steven Rostedt Cc: Sergey Senozhatsky S

[PATCH 2/3] printk: Add /sys/consoles/ interface

2017-09-28 Thread Calvin Owens
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. Cc: Petr Mladek Cc: Steven Rostedt Cc: Sergey Senozhatsky Signed-off-by: Calvin Owens --- (V1: https://lkml.org/lkm

[PATCH 1/3] printk: Introduce per-console loglevel setting

2017-09-28 Thread Calvin Owens
ing a conservative system loglevel setting to avoid disturbing applications. Cc: Petr Mladek Cc: Steven Rostedt Cc: Sergey Senozhatsky Signed-off-by: Calvin Owens --- (V1: https://lkml.org/lkml/2017/4/4/783) Changes in V2: * Honor the ignore_loglevel setting in all cases * Ch

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2017-10-19 Thread Calvin Owens
On 09/28/2017 05:43 PM, Calvin Owens wrote: Not all consoles are created equal: depending on the actual hardware, the latency of a printk() call can vary dramatically. The worst examples are serial consoles, where it can spin for tens of milliseconds banging the UART to emit a message, which can

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2017-10-20 Thread Calvin Owens
On 10/20/2017 01:05 AM, Petr Mladek wrote: On Thu 2017-10-19 16:40:45, Calvin Owens wrote: On 09/28/2017 05:43 PM, Calvin Owens wrote: Not all consoles are created equal: depending on the actual hardware, the latency of a printk() call can vary dramatically. The worst examples are serial

Re: [PATCH 2/3] printk: Add /sys/consoles/ interface

2017-11-08 Thread Calvin Owens
On 11/03/2017 07:32 AM, Kroah-Hartman wrote: On Fri, Nov 03, 2017 at 03:21:14PM +0100, Petr Mladek wrote: On Thu 2017-09-28 17:43:56, Calvin Owens wrote: This adds a new sysfs interface that contains a directory for each console registered on the system. Each directory contains a single

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2018-10-19 Thread Calvin Owens
On Friday 10/19 at 09:04 +0900, Sergey Senozhatsky wrote: > On (09/28/17 17:43), Calvin Owens wrote: > > Not all consoles are created equal: depending on the actual hardware, > > the latency of a printk() call can vary dramatically. The worst examples > > are serial consoles,