Added new macro SYSCALL_TRACING_IGNORE_KTRACE_OUTPUT to disable tracing
for the _kern_ktrace_output() syscall. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24392 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
//#define RUNTIME_LOADER_TRACING
|
||||
//#define SIGNAL_TRACING
|
||||
//#define SYSCALL_TRACING
|
||||
//#define SYSCALL_TRACING_IGNORE_KTRACE_OUTPUT
|
||||
//#define TEAM_TRACING
|
||||
//#define USER_MALLOC_TRACING
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008, Ingo Weinhold, [email protected].
|
||||
* Copyright 2004-2006, Haiku Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
@@ -447,7 +448,12 @@ extern "C" void trace_pre_syscall(uint32 syscallNumber, const void* parameters);
|
||||
void
|
||||
trace_pre_syscall(uint32 syscallNumber, const void* parameters)
|
||||
{
|
||||
new(std::nothrow) SyscallTracing::PreSyscall(syscallNumber, parameters);
|
||||
#ifdef SYSCALL_TRACING_IGNORE_KTRACE_OUTPUT
|
||||
if (syscallNumber != SYSCALL_KTRACE_OUTPUT)
|
||||
#endif
|
||||
{
|
||||
new(std::nothrow) SyscallTracing::PreSyscall(syscallNumber, parameters);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -456,7 +462,13 @@ extern "C" void trace_post_syscall(int syscallNumber, uint64 returnValue);
|
||||
void
|
||||
trace_post_syscall(int syscallNumber, uint64 returnValue)
|
||||
{
|
||||
new(std::nothrow) SyscallTracing::PostSyscall(syscallNumber, returnValue);
|
||||
#ifdef SYSCALL_TRACING_IGNORE_KTRACE_OUTPUT
|
||||
if (syscallNumber != SYSCALL_KTRACE_OUTPUT)
|
||||
#endif
|
||||
{
|
||||
new(std::nothrow) SyscallTracing::PostSyscall(syscallNumber,
|
||||
returnValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user