mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
A while back I created the dropmonitor protocol, which allowed users to get reports of dropped frames communicated to them via a netlink socket. While useful, several people have now asked that I integrate the ability to do drop monitoring with perf, so they don't have to run additional tools. This patch adds a drop monitor script to the perf suite, and provides the same output that the netlink socket does. Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Neil Horman <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
5 lines
132 B
Bash
Executable File
5 lines
132 B
Bash
Executable File
#!/bin/bash
|
|
# description: display a table of dropped frames
|
|
|
|
perf script -s "$PERF_EXEC_PATH"/scripts/python/net_dropmonitor.py $@
|