Changed to reporting the time for 4096 syscalls to complete.
authorethereal <ethereal@ethv.net>
Tue, 17 Jun 2014 16:54:29 +0000 (09:54 -0700)
committerethereal <ethereal@ethv.net>
Tue, 17 Jun 2014 16:54:29 +0000 (09:54 -0700)
kernel/kmain.c

index 0e03851..1674000 100644 (file)
@@ -28,7 +28,7 @@ void wrmsr_wrapper(uint32_t which, uint64_t val) {
 void userspace() {
     while(1) {
         uint64_t before = rdtsc_wrapper();
-        __asm__("syscall");
+        for(int i = 0; i < 4096; i ++) __asm__("syscall");
         uint64_t after = rdtsc_wrapper();
         update_with_value(after-before);
     }