diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-12-15 17:05:03 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2024-02-13 13:56:44 -0700 |
commit | 3cdad0a5a6cf581519748612cb449b43379510a4 (patch) | |
tree | a08701e8e3ade7ebbb8fd9e2cd2d748da364e7e7 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 038ce802e248a985150156da84bc3f118236b898 (diff) | |
download | linux-3cdad0a5a6cf581519748612cb449b43379510a4.tar.gz linux-3cdad0a5a6cf581519748612cb449b43379510a4.tar.bz2 linux-3cdad0a5a6cf581519748612cb449b43379510a4.zip |
selftests/resctrl: Convert perf related globals to locals
Perf related variables pea_llc_miss, pe_read, and pe_fd are globals in
cache.c.
Convert them to locals for better scoping and make pea_llc_miss simpler
by renaming it to pea. Make close(pe_fd) handling easier to understand
by doing it inside cat_val().
Make also sizeof()s use safer way to determine the right struct.
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