diff options
author | 2023-12-15 17:05:03 +0200 | |
---|---|---|
committer | 2024-02-13 13:56:44 -0700 | |
commit | 3cdad0a5a6cf581519748612cb449b43379510a4 (patch) | |
tree | a08701e8e3ade7ebbb8fd9e2cd2d748da364e7e7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/resctrl: Improve perf init (diff) | |
download | wireguard-linux-3cdad0a5a6cf581519748612cb449b43379510a4.tar.xz wireguard-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 '')
0 files changed, 0 insertions, 0 deletions