path: openvswitch_3.7.0-1/utilities/bugtool/ovs-bugtool.in cmd_output(CAP_DISK_INFO, [DF, '-alT']) cmd_output(CAP_DISK_INFO, [DF, '-alTi']) if len(pidof('iscsid')) != 0: cmd_output(CAP_DISK_INFO, [ISCSIADM, '-m', 'node']) cmd_output(CAP_DISK_INFO, [LS, '-R', '/sys/class/scsi_host']) path: openvswitch_3.7.0-1/utilities/bugtool/ovs-bugtool.in def pidof(name): pids = [] path: openvswitch_3.7.0-1/Documentation/intro/install/afxdp.rst Measure your system call rate by doing:: pstree -p `pidof ovs-vswitchd` strace -c -p path: openvswitch_3.7.0-1/Documentation/intro/install/afxdp.rst cd bpf-next/tools/perf make ./perf record -p `pidof ovs-vswitchd` sleep 10 ./perf report path: openvswitch_3.7.0-1/utilities/gdb/ovs_gdb.py # # Example: # $ gdb $(which ovs-vswitchd) $(pidof ovs-vswitchd) # (gdb) source ./utilities/gdb/ovs_gdb.py # path: openvswitch_3.7.0-1/utilities/usdt-scripts/kernel_delay.rst .. code-block:: console # kill -STOP $(pidof ovs-vswitchd); \ sleep 1; \ kill -CONT $(pidof ovs-vswitchd); path: openvswitch_3.7.0-1/utilities/usdt-scripts/kernel_delay.rst # kill -STOP $(pidof ovs-vswitchd); \ sleep 1; \ kill -CONT $(pidof ovs-vswitchd); Note that these statistics only count events where the thread was running at path: openvswitch_3.7.0-1/Documentation/topics/usdt-probes.rst This is a simple bpftrace one-liner to show all ``main:*`` USDT probes :: # bpftrace -p $(pidof ovs-vswitchd) -e \ 'usdt::main:* { printf("%s %u [%u] %u %s\n", comm, pid, cpu, elapsed, probe); }' path: openvswitch_3.7.0-1/Documentation/topics/usdt-probes.rst while they are being generated :: # /usr/share/bcc/tools/trace -T -p $(pidof ovs-vswitchd) \ 'u::main:run_start' 'u::main:poll_block' TIME PID TID COMM FUNC path: openvswitch_3.7.0-1/Documentation/topics/usdt-probes.rst If you execute this on a running process, ``bpftrace -lp $(pidof ovs-vswitchd) "usdt:*"`` , it will list all USDT events, i.e., also the ones available in the used shared libraries. path: openvswitch_3.7.0-1/Documentation/topics/usdt-probes.rst # perf record -e sdt_main:run_start -e sdt_main:poll_block \ -p $(pidof ovs-vswitchd) sleep 30 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.039 MB perf.data (132 samples) ]