summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2024-11-14 15:59:45 +0800
committerLen Brown <len.brown@intel.com>2024-11-30 16:42:07 -0500
commitc7538f33853b11d0ff2a81efb78bde125d1fc49f (patch)
treea0b6afc5619d86be109167f8f4dc7202ade025e9 /tools/perf/scripts/python/exported-sql-viewer.py
parentd071004e623b7433573019d67cba79e345d83006 (diff)
downloadlinux-stable-c7538f33853b11d0ff2a81efb78bde125d1fc49f.tar.gz
linux-stable-c7538f33853b11d0ff2a81efb78bde125d1fc49f.tar.bz2
linux-stable-c7538f33853b11d0ff2a81efb78bde125d1fc49f.zip
tools/power turbostat: Cache graphics sysfs file descriptors during probe
Snapshots of the graphics sysfs knobs are taken based on file descriptors. To optimize this process, open the files and cache the file descriptors during the graphics probe phase. As a result, the previously cached pathnames become redundant and are removed. This change aims to streamline the code without altering its functionality. No functional change intended. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions