Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1344277
| From | Petr Mladek <pmladek@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 3/8] kmsg: introduce additional kmsg devices support |
| Date | 2016-02-26 15:10 +0100 |
| Message-ID | <r6rfI-4re-29@gated-at.bofh.it> (permalink) |
| References | <r5GgO-3YX-3@gated-at.bofh.it> <r5GgO-3YX-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed 2016-02-24 12:53:16, Kazimierz Krosman wrote:
> From: Marcin Niesluchowski <m.niesluchow@samsung.com>
>
> kmsg device provides operations on cyclic logging buffer used mainly
> by kernel but also in userspace by privileged processes.
>
> Additional kmsg devices keep the same log format but may be added
> dynamically with custom size.
>
> Signed-off-by: Marcin Niesluchowski <m.niesluchow@samsung.com>
> Signed-off-by: Paul Osmialowski <p.osmialowsk@samsung.com>
> [Rebased kmsg patch v5 on Linux 4.5-rc5]
> Signed-off-by: Kazimierz Krosman <k.krosman@samsung.com>
> diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
> index 3653a8e..b99403b 100644
> --- a/kernel/printk/printk.c
> +++ b/kernel/printk/printk.c
> @@ -584,9 +595,11 @@ ssize_t msg_print_ext_body(char *buf, size_t size,
> void log_buf_kexec_setup(void)
> {
> VMCOREINFO_SYMBOL(log_buf);
> - VMCOREINFO_SYMBOL(log_buf_len);
> - VMCOREINFO_SYMBOL(log_first_idx);
> - VMCOREINFO_SYMBOL(log_next_idx);
> + VMCOREINFO_STRUCT_SIZE(log_buffer);
> + VMCOREINFO_OFFSET(log_buffer, buf);
> + VMCOREINFO_OFFSET(log_buffer, len);
> + VMCOREINFO_OFFSET(log_buffer, first_idx);
> + VMCOREINFO_OFFSET(log_buffer, next_idx);
This breaks makedumpfile, crash and possibly other tools
that use this information to access the log buffer.
Best Regards,
Petr
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v6 0/8] Additional kmsg devices Kazimierz Krosman <k.krosman@samsung.com> - 2016-02-24 13:00 +0100
[PATCH v6 4/8] kmsg: add additional buffers support to memory class Kazimierz Krosman <k.krosman@samsung.com> - 2016-02-24 13:00 +0100
[PATCH v6 7/8] kmsg: add ioctl for kmsg* devices operating on buffers Kazimierz Krosman <k.krosman@samsung.com> - 2016-02-24 13:00 +0100
[PATCH v6 5/8] kmsg: add function for adding and deleting additional buffers Kazimierz Krosman <k.krosman@samsung.com> - 2016-02-24 13:00 +0100
[PATCH v6 2/8] printk: add one function for storing log in proper format Kazimierz Krosman <k.krosman@samsung.com> - 2016-02-24 13:00 +0100
Re: [PATCH v6 0/8] Additional kmsg devices Tejun Heo <tj@kernel.org> - 2016-02-25 22:50 +0100
Re: [PATCH v6 0/8] Additional kmsg devices Kazimierz Krosman <k.krosman@samsung.com> - 2016-02-26 14:30 +0100
Re: [PATCH v6 0/8] Additional kmsg devices Petr Mladek <pmladek@suse.com> - 2016-02-26 15:50 +0100
Re: [PATCH v6 0/8] Additional kmsg devices Tejun Heo <tj@kernel.org> - 2016-02-27 13:00 +0100
Re: [PATCH v6 3/8] kmsg: introduce additional kmsg devices support Petr Mladek <pmladek@suse.com> - 2016-02-26 15:10 +0100
csiph-web