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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user