MCPcopy Create free account
hub / github.com/F-Stack/f-stack / netisr_print_workstream

Function netisr_print_workstream

tools/netstat/netisr.c:426–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424}
425
426static void
427netisr_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
456void
457netisr_stats(void)

Callers 1

netisr_statsFunction · 0.85

Calls 6

xo_open_listFunction · 0.85
xo_open_instanceFunction · 0.85
xo_emitFunction · 0.85
netisr_proto2nameFunction · 0.85
xo_close_instanceFunction · 0.85
xo_close_listFunction · 0.85

Tested by

no test coverage detected