linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Denys Vlasenko <dvlasenk@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>,
	linux-kernel@vger.kernel.org,
	Denys Vlasenko <vda.linux@googlemail.com>
Subject: Re: Why I want PTRACE_O_TRACESTOP option
Date: Fri, 9 Sep 2011 09:18:53 +0900	[thread overview]
Message-ID: <20110909001853.GA29319@htj.dyndns.org> (raw)
In-Reply-To: <1315500802.18043.45.camel@dhcp-25-63.brq.redhat.com>

Hello, Denys.

On Thu, Sep 08, 2011 at 06:50:01PM +0200, Denys Vlasenko wrote:
> Consider what will happen when a next ptrace fix will require
> a way to change ptrace API at runtime. A new option will likely
> be introduced, say, PTRACE_O_TRACEPONY, with next available
> bit position 7, and perhaps some new event will be generated,
> PTRACE_EVENT_PONY, with value.... yes, it can't be 7,
> PTRACE_EVENT_STOP took it. So it will probably be 8.

Then, just give it the next matching number.

If options naturally happen to match the events, that's a nice
coincidence.  If the real life requirement deviates from the beautiful
one-to-one mapping, then, so be it.  No, the magical contiguous one to
one mapping isn't the most important design concern.

To me, the rationale presented here almost argues against
PTRACE_O_TRACESTOP.  :(

Thanks.

-- 
tejun

  reply	other threads:[~2011-09-09  0:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08 16:50 Why I want PTRACE_O_TRACESTOP option Denys Vlasenko
2011-09-09  0:18 ` Tejun Heo [this message]
2011-09-09  5:45   ` Denys Vlasenko
2011-09-09 16:00     ` Oleg Nesterov
2011-09-10 23:43       ` Tejun Heo
2011-09-09  5:54   ` Denys Vlasenko
2011-09-09 12:26     ` Indan Zupancic
2011-09-09 13:01       ` Indan Zupancic
2011-09-09 16:46         ` Denys Vlasenko
2011-09-09 16:26       ` Oleg Nesterov
2011-09-09 23:09         ` Indan Zupancic
2011-09-10  1:17           ` Denys Vlasenko
2011-09-10 11:20             ` Pedro Alves
2011-09-11  0:58     ` Tejun Heo
2011-09-09 16:14   ` Oleg Nesterov

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20110909001853.GA29319@htj.dyndns.org \
    --to=tj@kernel.org \
    --cc=dvlasenk@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oleg@redhat.com \
    --cc=vda.linux@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

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