Added [un]lock_tracing_buffer(). This allows other components to analyze

tracing buffer entries even when not in the kernel debugger.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27302 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-09-03 14:51:00 +00:00
parent 232fd3bae3
commit aa1a64f35a
2 changed files with 20 additions and 0 deletions
+18
View File
@@ -1179,6 +1179,24 @@ dump_tracing(int argc, char** argv, WrapperTraceFilter* wrapperFilter)
}
void
lock_tracing_buffer()
{
#if ENABLE_TRACING
acquire_spinlock(&sLock);
#endif
}
void
unlock_tracing_buffer()
{
#if ENABLE_TRACING
release_spinlock(&sLock);
#endif
}
extern "C" status_t
tracing_init(void)
{