generic, x86: add tests for prctl PR_GET_TSC and PR_SET_TSC
authorErik Bosman <ebn310@few.vu.nl>
Fri, 11 Apr 2008 16:57:22 +0000 (18:57 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:55 +0000 (19:19 +0200)
commitf1326973262382150c26bf4dfccd0fce310c4a9c
tree746cda0780feebf8e97d34f1b8e64f77bb15c3e7
parent529e25f646e08901a6dad5768f681efffd77225e
generic, x86: add tests for prctl PR_GET_TSC and PR_SET_TSC

This patch adds three tests that test whether the PR_GET_TSC and
PR_SET_TSC commands have the desirable effect.

The tests check whether the control register is updated correctly
at context switches and try to discover bugs while enabling/disabling
the timestamp counter.

Signed-off-by: Erik Bosman <ejbosman@cs.vu.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Documentation/prctl/disable-tsc-ctxt-sw-stress-test.c [new file with mode: 0644]
Documentation/prctl/disable-tsc-on-off-stress-test.c [new file with mode: 0644]
Documentation/prctl/disable-tsc-test.c [new file with mode: 0644]