]> 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)
commit30b50c257000a56b1afb6402593907f29f69c864
treea7bf81033bae377f5507cdd19e714b9686f31029
parentb9661083258aac99b59600e12605cef129fbdc51
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