Print this page
13178 ::msgbuf could see more than 8KB of logs
Reviewed by: Andy Fiddaman <Andy@omniosce.org>
Reviewed by: Toomas Soome <tsoome@me.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/logsubr.c
          +++ new/usr/src/uts/common/os/logsubr.c
↓ open down ↓ 208 lines elided ↑ open up ↑
 209  209           */
 210  210          log_freeq = log_makeq(LOG_MINFREE, LOG_MAXFREE, (void *)ipltospl(SPL8));
 211  211  
 212  212          /*
 213  213           * Create a queue for messages from high-level interrupt context.
 214  214           * These messages are drained via softcall, or explicitly by panic().
 215  215           */
 216  216          log_intrq = log_makeq(0, LOG_HIWAT, (void *)ipltospl(SPL8));
 217  217  
 218  218          /*
 219      -         * Create a queue to hold the most recent 8K of console messages.
      219 +         * Create a queue to hold the most recent 64K of console messages.
 220  220           * Useful for debugging.  Required by the "$<msgbuf" adb macro.
 221  221           */
 222  222          log_recentq = log_makeq(0, LOG_RECENTSIZE, NULL);
 223  223  
 224  224          /*
 225  225           * Create an id space for clone devices opened via /dev/log.
 226  226           * Need to limit the number of zones to avoid exceeding the
 227  227           * available minor number space.
 228  228           */
 229  229          log_maxzones = (L_MAXMIN32 - LOG_LOGMIN) / LOG_NUMCLONES - 1;
↓ open down ↓ 550 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX