summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2022-05-08 11:08:22 +0300
committerDavid S. Miller <davem@davemloft.net>2022-05-08 13:46:20 +0300
commit32fb67a3e7a65171cd790ff0e65fcee49cae7cf5 (patch)
tree5814a2b4eed84e3c394de3d7c95f70c1a77036a8 /tools/perf/scripts/python
parentc353fb0d4c932e4b8b561d31afc54b5a60df3d95 (diff)
downloadlinux-32fb67a3e7a65171cd790ff0e65fcee49cae7cf5.tar.xz
selftests: lib: Add a generic helper for obtaining HW stats
The function get_l3_stats() from the test hw_stats_l3.sh will be useful for any test that wishes to work with L3 stats. Furthermore, it is easy to generalize to other HW stats suites (for when such are added). Therefore, move the code to lib.sh, rewrite it to have the same interface as the other stats-collecting functions, and generalize to take the name of the HW stats suite to collect as an argument. Signed-off-by: Petr Machata <petrm@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions