Re: strace only one child process



On 20 Oct 2006 01:10:40 -0700 tmp123 <tmp123@xxxxxxxxx> wrote:

| In the sytem I'm working, one server process creates one child process
| for each client request. I like to strace one of these child process.
| strace without specific options only traces the parent, and with the
| "-f" option traces all childs, overloading the system.
|
| Knows someone any trick to trace only one (or a few ones) childs?

How do you know which child you want to trace? What is your means to
identify which to trace and which not to trace?

--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2006-10-20-0809@xxxxxxxx |
|------------------------------------/-------------------------------------|
.



Relevant Pages

  • Re: How to trace a process with ptrace when it forks a new process ?
    ... |> |>> to trace its child too, if the process forks a child, ... I think strace traces every system calls. ... |> | But I don't want to do it in this way because I don't need to trace ... What I need to trace is when the process forks a new ...
    (comp.os.linux.development.system)
  • Re: BUG: NTPL: waitpid() doesnt return?
    ... The strace case I'm more than willing to pass off as a strace problem. ... I find it quite common that strace doesn't detach from processes, ... So I assumed that the particular trace ... "CLONE_DETACHED" child, and then you expect to be able to wait for it. ...
    (Linux-Kernel)
  • Re: How to trace a process with ptrace when it forks a new process ?
    ... to trace its child too, if the process forks a child, ... The code of strace is quite complex because it supports so many different systems. ... But I don't want to do it in this way because I don't need to trace every system call. ... What I need to trace is when the process forks a new process and exits. ...
    (comp.os.linux.development.system)
  • Re: How to trace a process with ptrace when it forks a new process ?
    ... |>> to trace its child too, if the process forks a child, ... I think strace traces every system calls. ... What I need to trace is when the process forks a new | process and exits. ...
    (comp.os.linux.development.system)
  • Re: How to trace a process with ptrace when it forks a new process ?
    ... |>> to trace its child too, if the process forks a child, ... I think strace traces every system calls. ... What I need to trace is when the process forks a new ...
    (comp.os.linux.development.system)