History

perf script: netdev-times: add location parameter to consume_skb

dd1b527831a3 ("net: add location to trace_consume_skb()") added a new parameter to the consume_skb tracepoint. Adapt the script to match.

Lucas Stach committed 2 years ago

Commit a9700511 parent 9aa61d81 file · +2 −1Browse files

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

Unified · Split

tools/perf/scripts/python/netdev-times.py+2−1
@@ -293,7 +293,8 @@ def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, · 292 unmodified lines
293 skbaddr, location, protocol, reason)293 skbaddr, location, protocol, reason)
294 all_event_list.append(event_info)294 all_event_list.append(event_info)
295 295
296def skb__consume_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr):296def skb__consume_skb(name, context, cpu, sec, nsec, pid, comm, callchain,
297 skbaddr, location):
297 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,298 event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm,
298 skbaddr)299 skbaddr)
299 all_event_list.append(event_info)300 all_event_list.append(event_info)