public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* dmesg macro in Documentation/kdump/gdbmacros.txt outdated
@ 2013-03-01  1:31 Andreas Fenkart
  2013-03-01  1:57 ` Greg KH
  2013-03-01  7:23 ` Daniel Mack
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Fenkart @ 2013-03-01  1:31 UTC (permalink / raw)
  To: gregkh, kay; +Cc: linux-kernel, Daniel Mack


Is there an updated version matching the changed printk structure?

thanks,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dmesg macro in Documentation/kdump/gdbmacros.txt outdated
  2013-03-01  1:31 dmesg macro in Documentation/kdump/gdbmacros.txt outdated Andreas Fenkart
@ 2013-03-01  1:57 ` Greg KH
  2013-03-01  7:23 ` Daniel Mack
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2013-03-01  1:57 UTC (permalink / raw)
  To: Andreas Fenkart; +Cc: kay, linux-kernel, Daniel Mack

On Fri, Mar 01, 2013 at 02:31:27AM +0100, Andreas Fenkart wrote:
> 
> Is there an updated version matching the changed printk structure?

Not that I know of, but you might want to ask the author of that file to
update it if possible.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: dmesg macro in Documentation/kdump/gdbmacros.txt outdated
  2013-03-01  1:31 dmesg macro in Documentation/kdump/gdbmacros.txt outdated Andreas Fenkart
  2013-03-01  1:57 ` Greg KH
@ 2013-03-01  7:23 ` Daniel Mack
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Mack @ 2013-03-01  7:23 UTC (permalink / raw)
  To: Andreas Fenkart; +Cc: gregkh, kay, linux-kernel

On 01.03.2013 02:31, Andreas Fenkart wrote:
> Is there an updated version matching the changed printk structure?

I hacked something up a while ago, but it's not perfect. The code below
stops dumping too early IIRC, but I never got around to fix that. Maybe
someone wants to look at it and help debug, so we can put it into
gdbmacros.txt ...

Thanks,
Daniel


define dmesg
        set $idx = 0
        set $seq = 0

        while ($seq++ < log_next_seq)
                set $buf = log_buf + $idx
                set $log = (struct log *) $buf

                if ($log->len == 0)
                        loop_break
                end

                printf "%s\n", (char *) ($buf + sizeof(struct log))
                set $idx += $log->len
        end
end

document dmesg
dmesg
Print the content of the kernel message buffer
end


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-01  7:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-01  1:31 dmesg macro in Documentation/kdump/gdbmacros.txt outdated Andreas Fenkart
2013-03-01  1:57 ` Greg KH
2013-03-01  7:23 ` Daniel Mack

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox