lkml.org 
[lkml]   [2005]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: The purpose of PT_TRACESYSGOOD
Date
Then I think the tracing thread should call the ptrace_request to set
PTRACE_O_TRACESYSGOOD flag of the traced thread first before
ptrace(PTRACE_SYSCALL...) ,right?
Thanks a lot!

Alex

Andries Brouwer wrote:

>> What's the effect of PT_TRACESYSGOOD flag? I found it's used only set
>> in ptrace_setoptions, which is called in the function ptrace_request.
>> And the PT_TRACESYSGOOD flag will be requested in do_syscall_trace.
>> What's the purpose of that flag?

>/*
> * A child stopped at a syscall has status as if it received SIGTRAP.
> * In order to distinguish between SIGTRAP and syscall, some kernel
> * versions have the PTRACE_O_TRACESYSGOOD option, that sets an extra
> * bit 0x80 in the syscall case.
> */

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.075 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site