diff options
author | 2013-09-27 18:52:49 +0100 | |
---|---|---|
committer | 2013-10-04 23:31:51 +0100 | |
commit | 4bae913bd372aab90fdbd91e7e5fb841a2a0dc15 (patch) | |
tree | 182cf2705eb6349cb1fea0cc69dd2cd446b0be64 /tools/perf/scripts/python/syscall-counts.py | |
parent | sfc: Fix internal indices of ethtool stats for EF10 (diff) | |
download | linux-dev-4bae913bd372aab90fdbd91e7e5fb841a2a0dc15.tar.xz linux-dev-4bae913bd372aab90fdbd91e7e5fb841a2a0dc15.zip |
sfc: Refactor EF10 stat mask code to allow for more conditional stats
Previously, efx_ef10_stat_mask returned a static const unsigned long[], which
meant that each possible mask had to be declared statically with
STAT_MASK_BITMAP. Since adding a condition would double the size of the
decision tree, we now create the bitmask dynamically.
To do this, we have two functions efx_ef10_raw_stat_mask, which returns a u64,
and efx_ef10_get_stat_mask, which fills in an unsigned long * argument.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions