提交 140c3c6a 编写于 作者: B Ben Hutchings 提交者: David S. Miller

perf: net_dropmonitor: Fix trace parameter order

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

Cc: stable@vger.kernel.org
Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 36803542
...@@ -64,7 +64,7 @@ def trace_end(): ...@@ -64,7 +64,7 @@ def trace_end():
# called from perf, when it finds a correspoinding event # called from perf, when it finds a correspoinding event
def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm,
skbaddr, protocol, location): skbaddr, location, protocol):
slocation = str(location) slocation = str(location)
try: try:
drop_log[slocation] = drop_log[slocation] + 1 drop_log[slocation] = drop_log[slocation] + 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册