From: mita@miraclelinux.com (Akinobu Mita)
To: fastboot@lists.osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] kdump: add dmesg gdbmacro into document
Date: Fri, 6 Jan 2006 11:33:07 +0900 [thread overview]
Message-ID: <20060106023306.GB18912@miraclelinux.com> (raw)
Add gdb macro which print the kernel ring buffer into kdump docs
Signed-off-by: Akinobu Mita <mita@miraclelinux.com>
--- 2.6/Documentation/kdump/gdbmacros.txt.orig 2006-01-06 10:47:06.000000000 +0900
+++ 2.6/Documentation/kdump/gdbmacros.txt 2006-01-06 10:47:46.000000000 +0900
@@ -177,3 +177,25 @@ document trapinfo
'trapinfo <pid>' will tell you by which trap & possibly
addresthe kernel paniced.
end
+
+
+define dmesg
+ set $i = 0
+ set $end_idx = (log_end - 1) & (log_buf_len - 1)
+
+ while ($i < logged_chars)
+ set $idx = (log_end - 1 - logged_chars + $i) & (log_buf_len - 1)
+
+ if ($idx + 100 <= $end_idx) || \
+ ($end_idx <= $idx && $idx + 100 < log_buf_len)
+ printf "%.100s", &log_buf[$idx]
+ set $i = $i + 100
+ else
+ printf "%c", log_buf[$idx]
+ set $i = $i + 1
+ end
+ end
+end
+document dmesg
+ print the kernel ring buffer
+end
next reply other threads:[~2006-01-06 2:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-06 2:33 Akinobu Mita [this message]
2006-01-06 2:34 ` [PATCH 2/2] doc: refer to kdump in oops-tracing.txt Akinobu Mita
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=20060106023306.GB18912@miraclelinux.com \
--to=mita@miraclelinux.com \
--cc=fastboot@lists.osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox