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

initialize scopedperf earlier

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