update test
[lttv.git] / trunk / tests / kernel / test-nop-speed.c
index f75af52589a94e1f4be4b3fff8e7f2be05f6a061..2749e5f4bbe6016475951435af87f4ab87ae3871 100644 (file)
 
 #define NR_TESTS 20000
 
+int var, var2;
+
 struct proc_dir_entry *pentry = NULL;
 
 void empty(void)
 {
        asm volatile ("");
+       var += 50;
+       var /= 10;
+       var *= var2;
 }
 
 void twobytesjump(void)
@@ -23,26 +28,41 @@ void twobytesjump(void)
        asm volatile ("jmp 1f\n\t"
                ".byte 0x00, 0x00, 0x00\n\t"
                "1:\n\t");
+       var += 50;
+       var /= 10;
+       var *= var2;
 }
 
 void fivebytesjump(void)
 {
        asm (".byte 0xe9, 0x00, 0x00, 0x00, 0x00\n\t");
+       var += 50;
+       var /= 10;
+       var *= var2;
 }
 
 void threetwonops(void)
 {
        asm (".byte 0x66,0x66,0x90,0x66,0x90\n\t");
+       var += 50;
+       var /= 10;
+       var *= var2;
 }
 
 void fivebytesnop(void)
 {
        asm (".byte 0x66,0x66,0x66,0x66,0x90\n\t");
+       var += 50;
+       var /= 10;
+       var *= var2;
 }
 
 void fivebytespsixnop(void)
 {
        asm (".byte 0x0f,0x1f,0x44,0x00,0\n\t");
+       var += 50;
+       var /= 10;
+       var *= var2;
 }
 
 void perform_test(const char *name, void (*callback)(void))
This page took 0.022812 seconds and 4 git commands to generate.