Re: [perfmon2] read counters of childs, child of childs, etc
Status: Beta
Brought to you by:
seranian
From: Andrej v. d. Z. <and...@gm...> - 2008-09-12 08:23:56
|
Hi, I don't understand your problem here. If you're ptrace'ing a process, > and that process > spawns a new process/thread, you can get this event notification > through ptrace() and > attach to the newly cloned task. Why do you think you need to alter > the place where > the thread is spawned? > I have a root-process that spawns threads that I want to monitor. To be able to ptrace() all its threads (and the threads descendant threads/processes) in the way you suggest, I need another process to monitor the root-process. That I can't do, I just want to monitor the treads and follow forks/exec/create_thread etc. It's a pity that ptrace() needs a parent process to monitor a child, and it can't trace itself from within a thread/process. Cheers, Andrej |