diff options
| author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-09-08 19:48:12 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2022-09-09 12:59:12 +0300 |
| commit | d3e75f1665f37cd7294355dd01bbc72f057a841d (patch) | |
| tree | 4fde00ced82ea174030631e52ed711158425bc20 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 776b71e553841f9cde87c21078ce2d9772e6da7a (diff) | |
| download | linux-d3e75f1665f37cd7294355dd01bbc72f057a841d.tar.xz | |
net: mscc: ocelot: exclude stats from bulk regions based on reg, not name
We want to introduce elements kept in ocelot->stats that aren't exposed
to the unstructured ethtool -S (so they won't have their name populated),
but are otherwise checked for 32-bit wraparounds by
ocelot_port_update_stats().
This isn't possible today because ocelot_prepare_stats_regions() skips
over ocelot_stat_layout elements with no name. Now that we've changed
struct ocelot_stat_layout to keep the absolute register address rather
than the offset relative to SYS_CNT, we can make use of the unpopulated
"reg" value of 0 to mean that the counter isn't present on the current
switch revision, and skip it from the preparation of bulk regions.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
