diff options
author | Jacob Keller <[email protected]> | 2018-04-12 11:15:57 -0700 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2018-05-09 09:02:39 -0700 |
commit | 36592d6ce8d38590894fb34329b0786386ee75bc (patch) | |
tree | 2277966956b4ac5ab81f772cb0cec730d4fe8f85 /tools/perf/scripts/python/syscall-counts.py | |
parent | d63bb21a7e722fcaa6cc6a217f21fe25a9e2c89e (diff) |
fm10k: use macro to avoid passing the array and size separately
Avoid potential bugs with fm10k_add_stat_strings and
fm10k_add_ethtool_stats by using a macro to calculate the ARRAY_SIZE
when passing. This helps ensure that the size is always correct.
Note that it assumes we only pass static const fm10k_stat arrays, and
that evaluation of the argument won't have side effects.
Signed-off-by: Jacob Keller <[email protected]>
Tested-by: Krishneil Singh <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions