diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2024-06-05 17:44:42 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-06-07 09:29:23 +0300 |
commit | a9700511fd50b9203a9a9d61b4874eb28571d5da (patch) | |
tree | 02e54dbf51da38eb3c131f81fb59d245d8c13cb1 | |
parent | 9aa61d8ecb7f6f176ff8247a41a4f6eea8376112 (diff) | |
download | linux-a9700511fd50b9203a9a9d61b4874eb28571d5da.tar.xz |
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.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: kernel@pengutronix.de
Cc: patchwork-lst@pengutronix.de
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240605144442.1985270-1-l.stach@pengutronix.de
-rw-r--r-- | tools/perf/scripts/python/netdev-times.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/netdev-times.py b/tools/perf/scripts/python/netdev-times.py index 00552eeb7178..30c4bccee5b2 100644 --- a/tools/perf/scripts/python/netdev-times.py +++ b/tools/perf/scripts/python/netdev-times.py @@ -293,7 +293,8 @@ def skb__kfree_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr, location, protocol, reason) all_event_list.append(event_info) -def skb__consume_skb(name, context, cpu, sec, nsec, pid, comm, callchain, skbaddr): +def skb__consume_skb(name, context, cpu, sec, nsec, pid, comm, callchain, + skbaddr, location): event_info = (name, context, cpu, nsecs(sec, nsec), pid, comm, skbaddr) all_event_list.append(event_info) |