diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-12-15 17:05:12 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-02-13 13:56:45 -0700 |
commit | ca1608875ae21bb40a7731b81bc0e2c95622d502 (patch) | |
tree | 9958d734cda96722d4750fd53656c877948e295a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c603ff5bb830b8c22dae56ca3ca5ceb5c103525b (diff) | |
download | linux-ca1608875ae21bb40a7731b81bc0e2c95622d502.tar.gz linux-ca1608875ae21bb40a7731b81bc0e2c95622d502.tar.bz2 linux-ca1608875ae21bb40a7731b81bc0e2c95622d502.zip |
selftests/resctrl: Pass write_schemata() resource instead of test name
write_schemata() takes the test name as an argument and determines the
relevant resource based on the test name. Such mapping from name to
resource does not really belong to resctrlfs.c that should provide
only generic, test-independent functions.
Pass the resource stored in the test information structure to
write_schemata() instead of the test name. The new API is also more
flexible as it enables to use write_schemata() for more than one
resource within a test.
While touching the sprintf(), move the unnecessary %c that is always
'=' directly into the format string.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions