提交 32bf96eb 创建 作者: Nickolai Zeldovich's avatar Nickolai Zeldovich

initialize scopedperf earlier

上级 9721f171
...@@ -80,6 +80,7 @@ cmain(u64 mbmagic, u64 mbaddr) ...@@ -80,6 +80,7 @@ cmain(u64 mbmagic, u64 mbaddr)
initmp(); initmp();
initlapic(); initlapic();
initkalloc(mbaddr); initkalloc(mbaddr);
initsperf();
initproc(); // process table initproc(); // process table
initsched(); // scheduler run queues initsched(); // scheduler run queues
initgc(); // gc epochs and threads initgc(); // gc epochs and threads
...@@ -95,7 +96,6 @@ cmain(u64 mbmagic, u64 mbaddr) ...@@ -95,7 +96,6 @@ cmain(u64 mbmagic, u64 mbaddr)
initpci(); initpci();
initnet(); initnet();
initidle(); initidle();
initsperf();
if (VERBOSE) if (VERBOSE)
cprintf("ncpu %d %lu MHz\n", ncpu, cpuhz / 1000000); cprintf("ncpu %d %lu MHz\n", ncpu, cpuhz / 1000000);
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "gc.hh" #include "gc.hh"
#include "crange.hh" #include "crange.hh"
#include "cpputil.hh" #include "cpputil.hh"
#include "sperf.hh"
enum { vm_debug = 0 }; enum { vm_debug = 0 };
...@@ -273,6 +274,8 @@ vmap::lookup(uptr start, uptr len) ...@@ -273,6 +274,8 @@ vmap::lookup(uptr start, uptr len)
int int
vmap::insert(vmnode *n, uptr vma_start, int dotlb) vmap::insert(vmnode *n, uptr vma_start, int dotlb)
{ {
ANON_REGION("vmap::insert", perfgroup);
vma *e; vma *e;
{ {
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论