Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-10-14 Thread Petr Mladek
On Wed 2016-10-12 03:12:56, Sean Hudson wrote: > On 10/5/2016 2:48 PM, Petr Mladek wrote: > > On Tue 2016-10-04 12:55:35, Sean Hudson wrote: > >> On 10/4/2016 6:27 AM, Petr Mladek wrote: > >>> IMHO, the only way is to revisit all locations when the log buffer > >>> is accessed and add all the neede

Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-10-11 Thread Sean Hudson
On 10/5/2016 2:48 PM, Petr Mladek wrote: > On Tue 2016-10-04 12:55:35, Sean Hudson wrote: >> On 10/4/2016 6:27 AM, Petr Mladek wrote: >>> On Fri 2016-09-30 23:06:49, Sean Hudson wrote: On 9/30/2016 7:39 AM, Petr Mladek wrote: > >> Note, there is a small window of time during early boot

Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-10-05 Thread Petr Mladek
On Tue 2016-10-04 12:55:35, Sean Hudson wrote: > On 10/4/2016 6:27 AM, Petr Mladek wrote: > > On Fri 2016-09-30 23:06:49, Sean Hudson wrote: > >> On 9/30/2016 7:39 AM, Petr Mladek wrote: > >>> > >>> Is the bootloader allowed to write to the shared buffer from this > >>> point on? How will be synchr

Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-10-04 Thread Sean Hudson
On 10/4/2016 6:27 AM, Petr Mladek wrote: > On Fri 2016-09-30 23:06:49, Sean Hudson wrote: >> On 9/30/2016 7:39 AM, Petr Mladek wrote: >>> >>> Is the bootloader allowed to write to the shared buffer from this >>> point on? How will be synchronized the writes from the kernel and >>> the bootloader? >

Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-10-04 Thread Petr Mladek
On Fri 2016-09-30 23:06:49, Sean Hudson wrote: > On 9/30/2016 7:39 AM, Petr Mladek wrote: > > On Thu 2016-09-29 19:55:56, Sean Hudson wrote: > >> + /* Overwrite the default lcb pointer, buffer pointer, and length. */ > >> + lcb = new_lcb; > >> + lcb->log_buf = (char *)new_lcb->log_buf; > >> + l

Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-09-30 Thread Sean Hudson
On 9/30/2016 7:39 AM, Petr Mladek wrote: > On Thu 2016-09-29 19:55:56, Sean Hudson wrote: >> This debug feature provides a convenient way to collect log entries across >> multiple, warmboot cycles and to share those entries with a boot loader. >> It allows the kernel to use an external buffer for k

Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-09-30 Thread Petr Mladek
On Thu 2016-09-29 19:55:56, Sean Hudson wrote: > This debug feature provides a convenient way to collect log entries across > multiple, warmboot cycles and to share those entries with a boot loader. > It allows the kernel to use an external buffer for kernel log messages and > is controlled by an o

[RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-09-29 Thread Sean Hudson
This debug feature provides a convenient way to collect log entries across multiple, warmboot cycles and to share those entries with a boot loader. It allows the kernel to use an external buffer for kernel log messages and is controlled by an optional command line parameter. The buffer can contain