aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorMingming Cao <[email protected]>2025-07-09 15:33:32 +0000
committerJakub Kicinski <[email protected]>2025-07-11 01:06:46 +0000
commit01b8114b432d7baaa5e51ab229c12c4f36b8e2c6 (patch)
treec6e9ffcc499fb8aa0fe5a6005525a491dc49bcab /tools/perf/scripts/python/syscall-counts.py
parentnet: appletalk: Fix device refcount leak in atrtr_create() (diff)
downloadkernel-01b8114b432d7baaa5e51ab229c12c4f36b8e2c6.tar.gz
kernel-01b8114b432d7baaa5e51ab229c12c4f36b8e2c6.zip
ibmvnic: Fix hardcoded NUM_RX_STATS/NUM_TX_STATS with dynamic sizeof
The previous hardcoded definitions of NUM_RX_STATS and NUM_TX_STATS were not updated when new fields were added to the ibmvnic_{rx,tx}_queue_stats structures. Specifically, commit 2ee73c54a615 ("ibmvnic: Add stat for tx direct vs tx batched") added a fourth TX stat, but NUM_TX_STATS remained 3, leading to a mismatch. This patch replaces the static defines with dynamic sizeof-based calculations to ensure the stat arrays are correctly sized. This fixes incorrect indexing and prevents incomplete stat reporting in tools like ethtool. Fixes: 2ee73c54a615 ("ibmvnic: Add stat for tx direct vs tx batched") Signed-off-by: Mingming Cao <[email protected]> Reviewed-by: Dave Marquardt <[email protected]> Reviewed-by: Haren Myneni <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions