Просмотр исходного кода

netlog: grow the ring from 2 KB to 4 KB

The 2 KB ring overflows during boot (the MTRR/driver trail is ~3.5 KB), so
`make netmon` loses lines and prints "[netlog: output dropped, buffer full]".
4 KB keeps the whole boot log; the kernel still fits below the 0x7F000 wall.
Johannes Zellner 2 недель назад
Родитель
Сommit
f7b31da60a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      netlog.c

+ 1 - 1
netlog.c

@@ -5,7 +5,7 @@
 #include "timer.h"
 #include "netlog.h"
 
-#define NETLOG_RING      2048   /* producer/consumer byte ring */
+#define NETLOG_RING      4096   /* producer/consumer byte ring */
 #define NETLOG_FLUSH_MIN 256    /* flush even without a newline at this size */
 #define NETLOG_IDLE_MS   100    /* flush a partial line after this idle time */