Skip to content
Commit 4be61e6b authored by Alexander Monakov's avatar Alexander Monakov Committed by Len Brown
Browse files

tools/power turbostat: Build with _FILE_OFFSET_BITS=64



For compatibility reasons, Glibc off_t is a 32-bit type on 32-bit x86
unless _FILE_OFFSET_BITS=64 is defined. Add this define, as otherwise
reading MSRs with index 0x80000000 and above attempts a pread with a
negative offset, which fails.

Signed-off-by: default avatarAlexander Monakov <amonakov@ispras.ru>
Tested-by: default avatarLiwei Song <liwei.song@windriver.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 33eb8225
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