lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 01 Mar 2013 08:23:30 +0100
From:	Daniel Mack <zonque@...il.com>
To:	Andreas Fenkart <andreas.fenkart@...eamunlimited.com>
CC:	gregkh@...uxfoundation.org, kay@...y.org,
	linux-kernel@...r.kernel.org
Subject: Re: dmesg macro in Documentation/kdump/gdbmacros.txt outdated

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ