From: Vivek Goyal <vgoyal@redhat.com>
To: Lubomir Rintel <lkundrak@v3.sk>
Cc: Joe Perches <joe@perches.com>, Dave Young <dyoung@redhat.com>,
Simon Horman <horms@verge.net.au>,
kexec@lists.infradead.org
Subject: Re: [PATCH v2] vmcore-dmesg: Understand >= v3.11-rc4 dmesg
Date: Mon, 23 Sep 2013 13:03:53 -0400 [thread overview]
Message-ID: <20130923170353.GC10812@redhat.com> (raw)
In-Reply-To: <1379602186-13617-1-git-send-email-lkundrak@v3.sk>
On Thu, Sep 19, 2013 at 04:49:46PM +0200, Lubomir Rintel wrote:
> Symbol name changed with the following commit:
> 62e32ac printk: rename struct log to struct printk_log
>
> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
> Cc: Simon Horman <horms@verge.net.au>
> Cc: Vivek Goyal <vgoyal@redhat.com>
> Cc: Joe Perches <joe@perches.com>
> Cc: Dave Young <dyoung@redhat.com>
> ---
Looks good to me. Agreed that let us put kernel verion number in
changelog since this change became effective.
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Vivek
>
> Changes for v2:
> * Clarified printk_log vs. log in some comments.
>
> vmcore-dmesg/vmcore-dmesg.c | 16 ++++++++++++----
> 1 files changed, 12 insertions(+), 4 deletions(-)
>
> diff --git a/vmcore-dmesg/vmcore-dmesg.c b/vmcore-dmesg/vmcore-dmesg.c
> index 0f477c0..dd222cd 100644
> --- a/vmcore-dmesg/vmcore-dmesg.c
> +++ b/vmcore-dmesg/vmcore-dmesg.c
> @@ -34,10 +34,10 @@ static loff_t logged_chars_vaddr;
> static loff_t log_first_idx_vaddr;
> static loff_t log_next_idx_vaddr;
>
> -/* struct log size */
> +/* struct printk_log (or older log) size */
> static uint64_t log_sz;
>
> -/* struct log field offsets */
> +/* struct printk_log (or older log) field offsets */
> static uint64_t log_offset_ts_nsec = UINT64_MAX;
> static uint16_t log_offset_len = UINT16_MAX;
> static uint16_t log_offset_text_len = UINT16_MAX;
> @@ -324,19 +324,27 @@ static void scan_vmcoreinfo(char *start, size_t size)
> *symbol[i].vaddr = vaddr;
> }
>
> - /* Check for "SIZE(log)=" */
> + /* Check for "SIZE(printk_log)" or older "SIZE(log)=" */
> if (memcmp("SIZE(log)=", pos, 10) == 0)
> log_sz = strtoull(pos + 10, NULL, 10);
> + if (memcmp("SIZE(printk_log)=", pos, 17) == 0)
> + log_sz = strtoull(pos + 17, NULL, 10);
>
> - /* Check for struct log field offsets */
> + /* Check for struct printk_log (or older log) field offsets */
> if (memcmp("OFFSET(log.ts_nsec)=", pos, 20) == 0)
> log_offset_ts_nsec = strtoull(pos + 20, NULL, 10);
> + if (memcmp("OFFSET(printk_log.ts_nsec)=", pos, 27) == 0)
> + log_offset_ts_nsec = strtoull(pos + 27, NULL, 10);
>
> if (memcmp("OFFSET(log.len)=", pos, 16) == 0)
> log_offset_len = strtoul(pos + 16, NULL, 10);
> + if (memcmp("OFFSET(printk_log.len)=", pos, 23) == 0)
> + log_offset_len = strtoul(pos + 23, NULL, 10);
>
> if (memcmp("OFFSET(log.text_len)=", pos, 21) == 0)
> log_offset_text_len = strtoul(pos + 21, NULL, 10);
> + if (memcmp("OFFSET(printk_log.text_len)=", pos, 28) == 0)
> + log_offset_text_len = strtoul(pos + 28, NULL, 10);
>
> if (last_line)
> break;
> --
> 1.7.1
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2013-09-23 17:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-18 12:21 [RESEND PATCH] vmcore-dmesg: Understand >= v3.11-rc4 dmesg Lubomir Rintel
2013-09-19 14:38 ` Dave Young
2013-09-19 14:49 ` [PATCH v2] " Lubomir Rintel
2013-09-20 1:50 ` Dave Young
2013-09-20 1:55 ` Joe Perches
2013-09-20 7:40 ` Dave Young
2013-09-23 17:03 ` Vivek Goyal [this message]
2013-10-30 3:12 ` WANG Chao
2013-10-30 17:06 ` Lubomir Rintel
2013-10-31 0:34 ` Taras Kondratiuk
2013-10-31 5:38 ` WANG Chao
2013-10-31 6:18 ` WANG Chao
2013-10-31 6:20 ` Simon Horman
2013-10-31 16:42 ` Taras Kondratiuk
2013-11-01 0:32 ` Simon Horman
2014-05-22 13:51 ` Vivek Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130923170353.GC10812@redhat.com \
--to=vgoyal@redhat.com \
--cc=dyoung@redhat.com \
--cc=horms@verge.net.au \
--cc=joe@perches.com \
--cc=kexec@lists.infradead.org \
--cc=lkundrak@v3.sk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.