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@...>
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
--