]> sourceware.org Git - glibc.git/commit
x86: Support RDTSCP for benchtests
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Oct 2018 09:19:15 +0000 (02:19 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 24 Oct 2018 09:19:34 +0000 (02:19 -0700)
commit7cc65773f04e0f4252428c40dcbb784a39b58cd1
tree8ab811df64ea1c81daac9b4e8b645ea3998acf08
parent18ad0de6513bf8a8e4ba757c069e6806d07920f8
x86: Support RDTSCP for benchtests

RDTSCP waits until all previous instructions have executed and all
previous loads are globally visible before reading the counter.  RDTSC
doesn't wait until all previous instructions have been executed before
reading the counter.  All x86 processors since 2010 support RDTSCP
instruction.  This patch adds RDTSCP support to benchtests.

* benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
USE_RDTSCP is defined.
* sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
USE_RDTSCP is defined.
ChangeLog
benchtests/Makefile
benchtests/README
sysdeps/x86/hp-timing.h
This page took 0.040522 seconds and 5 git commands to generate.