1. 11 Jul, 2016 1 commit
  2. 07 Feb, 2016 1 commit
  3. 03 Feb, 2016 1 commit
  4. 08 Jul, 2015 1 commit
    • Henrik Gramner's avatar
      x86: Serialize rdtsc in read_time() · d1a6cb19
      Henrik Gramner authored
      Improves the accuracy of measurements, especially in short sections.
      
      To quote the Intel 64 and IA-32 Architectures Software Developer's Manual:
      "The RDTSC instruction is not a serializing instruction. It does not necessarily
      wait until all previous instructions have been executed before reading the counter.
      Similarly, subsequent instructions may begin execution before the read operation
      is performed. If software requires RDTSC to be executed only after all previous
      instructions have completed locally, it can either use RDTSCP (if the processor
      supports that instruction) or execute the sequence LFENCE;RDTSC."
      
      SSE2 is a requirement for lfence so only use it on SSE2-capable systems.
      Prefer lfence;rdtsc over rdtscp since rdtscp is supported on fewer systems.
      Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
      d1a6cb19
  5. 09 Mar, 2014 1 commit
  6. 21 Sep, 2013 1 commit
  7. 07 Jul, 2012 1 commit
  8. 19 Mar, 2011 1 commit
  9. 01 Apr, 2009 1 commit
  10. 31 Aug, 2008 1 commit
  11. 17 Oct, 2007 1 commit
  12. 16 Jun, 2007 1 commit
  13. 07 Oct, 2006 1 commit
  14. 10 Sep, 2006 1 commit
  15. 02 Jul, 2006 2 commits
  16. 01 Jul, 2006 1 commit