]> git.baikalelectronics.ru Git - kernel.git/commit
printk: add clear_idx symbol to vmcoreinfo
authorIvan Delalande <colona@arista.com>
Thu, 17 Mar 2016 21:21:30 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 17 Mar 2016 22:09:34 +0000 (15:09 -0700)
commitafd3518f986c95f8947b16ab1ad2dbf7d5d641fd
treea7bf81033bae377f5507cdd19e714b9686f31029
parentb123a4d314da1b3dc40a458453a7b79fa29d37c5
printk: add clear_idx symbol to vmcoreinfo

This allows us to extract from the vmcore only the messages emitted
since the last time the ring buffer was cleared.  We just have to make
sure its value is always up-to-date, when old messages are discarded to
free space in log_make_free_space() for example.

Signed-off-by: Zeyu Zhao <zzy8200@gmail.com>
Signed-off-by: Ivan Delalande <colona@arista.com>
Cc: Kay Sievers <kay@vrfy.org>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk/printk.c