OSDN Git Service

tools/power turbostat: Build with _FILE_OFFSET_BITS=64
authorAlexander Monakov <amonakov@ispras.ru>
Sun, 23 Aug 2020 20:27:02 +0000 (23:27 +0300)
committerLen Brown <len.brown@intel.com>
Thu, 3 Sep 2020 17:59:10 +0000 (13:59 -0400)
commit4be61e6b769fc3f97b58870aa4258e27968f07e1
tree9c7c4c2e1446c8f8808dbc879cabeff2b11ac219
parent33eb82251af9be47a625ca1578f44e596a3a0ca9
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: Alexander Monakov <amonakov@ispras.ru>
Tested-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/Makefile