archive mirror
 help / color / mirror / Atom feed
From: Andries Brouwer <>
To: Pavel Machek <>
Cc: Alex LIU <>,
Subject: Re: The purpose of PT_TRACESYSGOOD
Date: Tue, 11 Jan 2005 03:30:03 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

>> 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.

  reply	other threads:[~2005-01-11  2:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-10  3:58 The purpose of PT_TRACESYSGOOD Alex LIU
2005-01-10 20:24 ` Pavel Machek
2005-01-11  2:30   ` Andries Brouwer [this message]
2005-01-11  6:28     ` Alex LIU
2005-01-11 11:10       ` Andries Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).