login
Header Space

 
 

Re: [PATCH 1/3] Add prctl commands PR_GET_TSC and PR_SET_TSC

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <andi@...>
Cc: Andrew Morton <akpm@...>, Thomas Gleixner <tglx@...>, Ingo Molnar <mingo@...>, H. Peter Anvin <hpa@...>, Arjan van de Ven <arjan@...>, Andrea Arcangeli <andrea@...>, Linus Torvalds <torvalds@...>, <linux-kernel@...>
Date: Sunday, April 13, 2008 - 5:44 am

On Sun, 13 Apr 2008, Andi Kleen wrote:


I'm using it for deterministic replay. With this trap it is
possible to emulate the instruction using ptrace and knowing
the outcome. Deterministic replay can be useful, amongst other
things, for debugging and security (instructing your debugger
to undo instructions for example, to see what happened before
a fault.)

Not having this trap means emulation should be used to catch
the instruction, leading to bad performance.

Without the timestamp counter, the only instruction leading
to non-determinism (that I'm aware of) is the CPUID instruction
that returns on which core it runs, but that doesn't seem to
be used that much.

Erik Bosman
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] Add prctl commands PR_GET_TSC and PR_SET_TSC, Erik Bosman, (Sun Apr 13, 5:44 am)
speck-geostationary