Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17895
b: refs/heads/master
c: 8428cfe
h: refs/heads/master
i:
  17893: 551a60d
  17891: 5265281
  17887: 805bfd6
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jan 12, 2006
1 parent 644657f commit bb13fcb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: beb25c6e27b21d0c0f7b9c2769fa334f1f9a8c2c
refs/heads/master: 8428cfe893c1f13eb22cd879669f12b65900738f
22 changes: 22 additions & 0 deletions trunk/Documentation/kdump/gdbmacros.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bb13fcb

Please sign in to comment.