ANON_REGION in futex

上级 49c96f6e
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "cpu.hh" #include "cpu.hh"
#include "percpu.hh" #include "percpu.hh"
#include "kmtrace.hh" #include "kmtrace.hh"
#include "sperf.hh"
// //
// futexkey // futexkey
...@@ -170,6 +171,8 @@ futexaddr::onzero(void) const ...@@ -170,6 +171,8 @@ futexaddr::onzero(void) const
long long
futexwait(futexkey_t key, u64 val, u64 timer) futexwait(futexkey_t key, u64 val, u64 timer)
{ {
ANON_REGION(__func__, &perfgroup);
futexaddr* fa; futexaddr* fa;
mtreadavar("futex:ns:%lx", key); mtreadavar("futex:ns:%lx", key);
...@@ -226,6 +229,8 @@ futexwait(futexkey_t key, u64 val, u64 timer) ...@@ -226,6 +229,8 @@ futexwait(futexkey_t key, u64 val, u64 timer)
long long
futexwake(futexkey_t key, u64 nwake) futexwake(futexkey_t key, u64 nwake)
{ {
ANON_REGION(__func__, &perfgroup);
futexaddr* fa; futexaddr* fa;
u64 nwoke = 0; u64 nwoke = 0;
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论