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/sys/log.h
          +++ new/usr/src/uts/common/sys/log.h
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   28  /*        All Rights Reserved   */
  29   29  
  30   30  #ifndef _SYS_LOG_H
  31   31  #define _SYS_LOG_H
  32   32  
  33      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  34      -
  35   33  #include <sys/types.h>
  36   34  #include <sys/strlog.h>
  37   35  #include <sys/stream.h>
  38   36  
  39   37  #ifdef  __cplusplus
  40   38  extern "C" {
  41   39  #endif
  42   40  
  43   41  #define LOG_CONSMIN     0               /* /dev/conslog minor */
  44   42  #define LOG_LOGMIN      5               /* /dev/log minor */
↓ open down ↓ 3 lines elided ↑ open up ↑
  48   46  #define LOG_LOGMAXIDX   15              /* up to 16 /dev/log clones */
  49   47  #define LOG_NUMCLONES   (LOG_LOGMAXIDX - LOG_LOGMINIDX + 1)
  50   48  
  51   49  #define LOG_MID         44              /* module ID */
  52   50  #define LOG_MINPS       0               /* min packet size */
  53   51  #define LOG_MAXPS       1024            /* max packet size */
  54   52  #define LOG_LOWAT       2048            /* threshold for backenable */
  55   53  #define LOG_HIWAT       1048576         /* threshold for tossing messages */
  56   54  
  57   55  #define LOG_MAGIC       0xf00d4109U     /* "food for log" - unsent msg magic */
  58      -#define LOG_RECENTSIZE  8192            /* queue of most recent messages */
       56 +#define LOG_RECENTSIZE  65536           /* queue of most recent messages */
  59   57  #define LOG_MINFREE     4096            /* message cache low water mark */
  60   58  #define LOG_MAXFREE     8192            /* message cache high water mark */
  61   59  
  62   60  typedef struct log log_t;
  63   61  typedef int (log_filter_t)(log_t *, log_ctl_t *);
  64   62  
  65   63  struct log {
  66   64          queue_t         *log_q;         /* message queue */
  67   65          log_filter_t    *log_wanted;    /* message filter */
  68   66          mblk_t          *log_data;      /* parameters for filter */
↓ open down ↓ 57 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX