Browse Source

Fixing the profiling feature in LibOS (#187)

Chia-Che Tsai 6 years ago
parent
commit
5c81975fac
1 changed files with 4 additions and 4 deletions
  1. 4 4
      LibOS/shim/include/shim_profile.h

+ 4 - 4
LibOS/shim/include/shim_profile.h

@@ -29,7 +29,7 @@
 
 
 #ifdef PROFILE
 #ifdef PROFILE
 
 
-#include <shim_atomic.h>
+#include <atomic.h>
 
 
 struct shim_profile {
 struct shim_profile {
     const char * name;
     const char * name;
@@ -38,11 +38,11 @@ struct shim_profile {
     struct shim_profile * root;
     struct shim_profile * root;
     union {
     union {
         struct {
         struct {
-            struct shim_atomic count;
+            struct atomic_int count;
         } occurence;
         } occurence;
         struct {
         struct {
-            struct shim_atomic count;
-            struct shim_atomic time;
+            struct atomic_int count;
+            struct atomic_int time;
         } interval;
         } interval;
     } val;
     } val;
 } __attribute__((aligned(64)));
 } __attribute__((aligned(64)));