|Summary:||ftrace doesn't seem to trace subprocesses|
|Product:||frysk||Reporter:||Tom Tromey <tromey>|
|Component:||general||Assignee:||Petr Machata <pmachata>|
|Bug Depends on:||1583|
Description Tom Tromey 2007-12-09 01:46:23 UTC
I checked out and built frysk yesterday, on x86 FC-6. I tried "ftrace -c -- gcc -c r.c". I expected to see syscalls from both the gcc driver and from cc1. However, I only see syscalls from gcc. Toward the end I do see the vfork clearly return the pid of the child process: 25882.25882 syscall vfork()r.c: In function ‘f2’: r.c:16: error: invalid use of undefined type ‘struct s’ = 25883 (Some of that output is from cc1, ignore it)
Comment 1 Petr Machata 2007-12-09 19:13:46 UTC
Confirmed. Test suite passes and following gcc children doesn't work. I'll have a look at this.
Comment 2 Petr Machata 2007-12-10 13:48:23 UTC
The problem is that frysk doesn't seem to handle vfork. I've opened a bug 5466 that tracks this problem. Once it is resolved somehow, I'll have to adapt ftrace to that solution, if necessary, so I'm leaving this open.
Comment 3 Tom Tromey 2008-03-30 16:10:12 UTC
-c seems to be gone -- replaced by -f (though it is a duplicate, I filed a separate PR). However, this still is not working. I changed the Summary.