If you press 'q' the pager should exit instead of printing everything from dmesg which can really bog down a 9600 baud serial link. The same is true for the bta command.
Showing the changes to kernel/debug (2 of 2 files). Show all
Unified · Split
| @@ -129,6 +129,8 @@ kdb_bt(int argc, const char **argv) · 128 unmodified lines | ||
| 129 | 129 | } |
| 130 | 130 | /* Now the inactive tasks */ |
| 131 | 131 | kdb_do_each_thread(g, p) { |
| 132 | + if (KDB_FLAG(CMD_INTERRUPT)) | |
| 133 | + return 0; | |
| 132 | 134 | if (task_curr(p)) |
| 133 | 135 | continue; |
| 134 | 136 | if (kdb_bt1(p, mask, argcount, btaprompt)) |
| @@ -2100,6 +2100,8 @@ static int kdb_dmesg(int argc, const char **argv) · 2099 unmodified lines | ||
| 2100 | 2100 | } |
| 2101 | 2101 | if (!lines--) |
| 2102 | 2102 | break; |
| 2103 | + if (KDB_FLAG(CMD_INTERRUPT)) | |
| 2104 | + return 0; | |
| 2103 | 2105 | |
| 2104 | 2106 | kdb_printf("%.*s\n", (int)len - 1, buf); |
| 2105 | 2107 | } |