瀏覽代碼

Fixing the profiling feature in LibOS (#187)

Chia-Che Tsai 6 年之前
父節點
當前提交
5c81975fac
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      LibOS/shim/include/shim_profile.h

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

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