Bug 5459 - ftrace doesn't seem to trace subprocesses
Summary: ftrace doesn't seem to trace subprocesses
Status: ASSIGNED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Petr Machata
URL:
Keywords:
Depends on: 1583
Blocks: 2245
  Show dependency treegraph
 
Reported: 2007-12-09 01:46 UTC by Tom Tromey
Modified: 2008-03-30 16:10 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.