diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2024-06-05 16:44:42 +0200 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-06-07 08:29:23 +0200 |
commit | a9700511fd50b9203a9a9d61b4874eb28571d5da (patch) | |
tree | 02e54dbf51da38eb3c131f81fb59d245d8c13cb1 /tools/perf/scripts/python/netdev-times.py | |
parent | perf: parse-events: Fix compilation error while defining DEBUG_PARSER (diff) | |
download | linux-a9700511fd50b9203a9a9d61b4874eb28571d5da.tar.xz linux-a9700511fd50b9203a9a9d61b4874eb28571d5da.zip |
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
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
-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) |