History

perf: net_dropmonitor: Fix trace parameter order

This works much better if we don't treat protocol numbers as addresses.

Ben Hutchings committed 13 years ago

Commit 140c3c61 parent 36803541 file · +1 −1Browse files

Showing the changes to tools/perf/scripts/python (1 of 1 file). Show all

Unified · Split

tools/perf/scripts/python/net_dropmonitor.py+1−1
@@ -64,7 +64,7 @@ def trace_end(): · 63 unmodified lines
64 64
65# called from perf, when it finds a correspoinding event65# called from perf, when it finds a correspoinding event
66def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm,66def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm,
67 skbaddr, protocol, location):67 skbaddr, location, protocol):
68 slocation = str(location)68 slocation = str(location)
69 try:69 try:
70 drop_log[slocation] = drop_log[slocation] + 170 drop_log[slocation] = drop_log[slocation] + 1