Skip to content
Commit 36229897 authored by Len Brown's avatar Len Brown
Browse files

tools/power turbostat: make fewer systems calls



skip the open(2)/close(2) on each msr read
by keeping the /dev/cpu/*/msr files open.

The remaining read(2) is generally far fewer cycles
than the removed open(2) system call.

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 58cc30a4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment