Print this page
3503 usba doesn't initialize cc_no_resources, causes gibberish output in kstat:

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/usb/usba/hcdi.c
          +++ new/usr/src/uts/common/io/usb/usba/hcdi.c
↓ open down ↓ 335 lines elided ↑ open up ↑
 336  336                  kstat_named_init(&esp->cc_data_underrun,
 337  337                      "Data Underruns", KSTAT_DATA_UINT64);
 338  338                  kstat_named_init(&esp->cc_buffer_overrun,
 339  339                      "Buffer Overruns", KSTAT_DATA_UINT64);
 340  340                  kstat_named_init(&esp->cc_buffer_underrun,
 341  341                      "Buffer Underruns", KSTAT_DATA_UINT64);
 342  342                  kstat_named_init(&esp->cc_timeout,
 343  343                      "Command Timed Out", KSTAT_DATA_UINT64);
 344  344                  kstat_named_init(&esp->cc_not_accessed,
 345  345                      "Not Accessed By Hardware", KSTAT_DATA_UINT64);
      346 +                kstat_named_init(&esp->cc_no_resources,
      347 +                    "No Resources", KSTAT_DATA_UINT64);
 346  348                  kstat_named_init(&esp->cc_unspecified_err,
 347  349                      "Unspecified Error", KSTAT_DATA_UINT64);
      350 +                kstat_named_init(&esp->cc_stopped_polling,
      351 +                    "Stopped Polling", KSTAT_DATA_UINT64);
      352 +                kstat_named_init(&esp->cc_pipe_closing,
      353 +                    "Pipe Closing", KSTAT_DATA_UINT64);
      354 +                kstat_named_init(&esp->cc_pipe_reset,
      355 +                    "Pipe Reset", KSTAT_DATA_UINT64);
      356 +                kstat_named_init(&esp->cc_not_supported,
      357 +                    "Command Not Supported", KSTAT_DATA_UINT64);
      358 +                kstat_named_init(&esp->cc_flushed,
      359 +                    "Request Flushed", KSTAT_DATA_UINT64);
 348  360  #ifdef  NOTYETNEEDED
 349  361                  kstat_named_init(&esp->hcdi_usb_failure,
 350  362                      "USB Failure", KSTAT_DATA_UINT64);
 351  363                  kstat_named_init(&esp->hcdi_usb_no_resources,
 352  364                      "No Resources", KSTAT_DATA_UINT64);
 353  365                  kstat_named_init(&esp->hcdi_usb_no_bandwidth,
 354  366                      "No Bandwidth", KSTAT_DATA_UINT64);
 355  367                  kstat_named_init(&esp->hcdi_usb_pipe_reserved,
 356  368                      "Pipe Reserved", KSTAT_DATA_UINT64);
 357  369                  kstat_named_init(&esp->hcdi_usb_pipe_unshareable,
↓ open down ↓ 659 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX