Print this page
3503 usba doesn't initialize cc_no_resources, causes gibberish output in kstat:
*** 341,352 ****
--- 341,364 ----
"Buffer Underruns", KSTAT_DATA_UINT64);
kstat_named_init(&esp->cc_timeout,
"Command Timed Out", KSTAT_DATA_UINT64);
kstat_named_init(&esp->cc_not_accessed,
"Not Accessed By Hardware", KSTAT_DATA_UINT64);
+ kstat_named_init(&esp->cc_no_resources,
+ "No Resources", KSTAT_DATA_UINT64);
kstat_named_init(&esp->cc_unspecified_err,
"Unspecified Error", KSTAT_DATA_UINT64);
+ kstat_named_init(&esp->cc_stopped_polling,
+ "Stopped Polling", KSTAT_DATA_UINT64);
+ kstat_named_init(&esp->cc_pipe_closing,
+ "Pipe Closing", KSTAT_DATA_UINT64);
+ kstat_named_init(&esp->cc_pipe_reset,
+ "Pipe Reset", KSTAT_DATA_UINT64);
+ kstat_named_init(&esp->cc_not_supported,
+ "Command Not Supported", KSTAT_DATA_UINT64);
+ kstat_named_init(&esp->cc_flushed,
+ "Request Flushed", KSTAT_DATA_UINT64);
#ifdef NOTYETNEEDED
kstat_named_init(&esp->hcdi_usb_failure,
"USB Failure", KSTAT_DATA_UINT64);
kstat_named_init(&esp->hcdi_usb_no_resources,
"No Resources", KSTAT_DATA_UINT64);