From: george anzinger <george@mvista.com>
To: Dave McCracken <dmccr@us.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>,
Linus Torvalds <torvalds@transmeta.com>,
linux-kernel@vger.kernel.org
Subject: Re: [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6
Date: Mon, 19 Aug 2002 11:55:28 -0700 [thread overview]
Message-ID: <3D613F20.9E5E3B84@mvista.com> (raw)
In-Reply-To: 61100000.1029781898@baldur.austin.ibm.com
Dave McCracken wrote:
>
> --On Monday, August 19, 2002 08:08:10 PM +0200 Ingo Molnar <mingo@elte.hu>
> wrote:
>
> > the problem is that the tracing task wants to do a wait4() on all traced
> > children, and the only way to get that is to have the traced tasks in the
> > child list. Eg. strace -f traces a random number of tasks, and after the
> > PTRACE_CONTINUE call, the wait4 done by strace must be able to 'get
> > events' from pretty much any of the traced tasks. So unless the ptrace
> > interface is reworked in an incompatible way, i cannot see how this would
> > work. wait4 could perhaps somehow search the whole tasklist, but that
> > could be a pretty big pain even for something like strace.
>
> It seems to me it would be worth adding list_heads in the task struct for
> ptraced tasks and ptraced siblings if it gets rid of the reparenting.
>
That and then each time a SIGCHILD is sent, it is also sent
to the tracer, if there is one. Some filtering may be
needed here as the real parent should not be disturbed by
trace ONLY things. It has been done on other systems. Not
super clean, but it does push Heisenberg out a ring or two.
The current way its done, a child can not get the pid of its
father and thus would NEED to know it was being traced in
order to do anything that required such. This is asking
Heisenberg to live somewhere more or less close by :)
--
George Anzinger george@mvista.com
High-res-timers:
http://sourceforge.net/projects/high-res-timers/
Preemption patch:
http://www.kernel.org/pub/linux/kernel/people/rml
next prev parent reply other threads:[~2002-08-19 18:52 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-19 12:16 [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6 Ingo Molnar
2002-08-19 16:15 ` [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-B4 Ingo Molnar
2002-08-19 17:42 ` [patch] O(1) sys_exit(), threading, scalable-exit-2.5.31-A6 Linus Torvalds
2002-08-19 17:44 ` Larry McVoy
2002-08-19 18:08 ` Ingo Molnar
2002-08-19 18:31 ` Dave McCracken
2002-08-19 18:36 ` Ingo Molnar
2002-08-19 18:51 ` Dave McCracken
2002-08-19 19:37 ` Ingo Molnar
2002-08-19 20:59 ` Ingo Molnar
2002-08-19 21:01 ` Dave McCracken
2002-08-19 21:29 ` Linus Torvalds
2002-08-19 21:42 ` Dave McCracken
2002-08-19 22:36 ` Ingo Molnar
2002-08-20 14:32 ` Dave McCracken
2002-08-20 14:36 ` Ingo Molnar
2002-08-27 15:39 ` Daniel Jacobowitz
2002-08-28 2:53 ` Daniel Jacobowitz
2002-08-20 3:21 ` Daniel Jacobowitz
2002-08-19 19:10 ` Linus Torvalds
2002-08-19 18:55 ` george anzinger [this message]
2002-08-19 19:15 ` Ingo Molnar
2002-08-19 20:03 ` george anzinger
2002-08-20 10:36 ` Richard Zidlicky
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=3D613F20.9E5E3B84@mvista.com \
--to=george@mvista.com \
--cc=dmccr@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=torvalds@transmeta.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