| 424 | } |
| 425 | |
| 426 | static void |
| 427 | netisr_print_workstream(struct sysctl_netisr_workstream *snwsp) |
| 428 | { |
| 429 | struct sysctl_netisr_work *snwp; |
| 430 | u_int i; |
| 431 | |
| 432 | xo_open_list("work"); |
| 433 | for (i = 0; i < work_array_len; i++) { |
| 434 | snwp = &work_array[i]; |
| 435 | if (snwp->snw_wsid != snwsp->snws_wsid) |
| 436 | continue; |
| 437 | xo_open_instance("work"); |
| 438 | xo_emit("{t:workstream/%4u} ", snwsp->snws_wsid); |
| 439 | xo_emit("{t:cpu/%3u} ", snwsp->snws_cpu); |
| 440 | xo_emit("{P: }"); |
| 441 | xo_emit("{t:name/%-6s}", netisr_proto2name(snwp->snw_proto)); |
| 442 | xo_emit(" {t:length/%5u}", snwp->snw_len); |
| 443 | xo_emit(" {t:watermark/%5u}", snwp->snw_watermark); |
| 444 | xo_emit(" {t:dispatched/%8ju}", snwp->snw_dispatched); |
| 445 | xo_emit(" {t:hybrid-dispatched/%8ju}", |
| 446 | snwp->snw_hybrid_dispatched); |
| 447 | xo_emit(" {t:queue-drops/%8ju}", snwp->snw_qdrops); |
| 448 | xo_emit(" {t:queued/%8ju}", snwp->snw_queued); |
| 449 | xo_emit(" {t:handled/%8ju}", snwp->snw_handled); |
| 450 | xo_emit("\n"); |
| 451 | xo_close_instance("work"); |
| 452 | } |
| 453 | xo_close_list("work"); |
| 454 | } |
| 455 | |
| 456 | void |
| 457 | netisr_stats(void) |
no test coverage detected