// This script tracks time between packet queue and xmit. // The information is provided to userspace using Memory Mapped Values (mmv) // which are updated every second and are readable by a PCP pmda. global inst, instance_latency, instance_count // Set up the mmv and make it available probe begin { indom = mmv_add_indom(1, "xmit device", "list of network transmit devices") // fallback instance device "eth0" if none specified if (argc == 1) { argv[1] = "eth0" argc++ } // create instances for each network device for (i=1; iname)] <<< t - st delete skb_queue_start_t[$skb] } }