Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156950
b: refs/heads/master
c: 15f3fa4
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Aug 18, 2009
1 parent eb3a665 commit 2cb00f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f738eb1b63edf664da1b4ac76895d988749b2f07
refs/heads/master: 15f3fa4e7f608c5ce19187b3b4a953222fdfa751
7 changes: 7 additions & 0 deletions trunk/tools/perf/builtin-annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,13 @@ process_fork_event(event_t *event, unsigned long offset, unsigned long head)
(void *)(long)(event->header.size),
event->fork.pid, event->fork.ppid);

/*
* A thread clone will have the same PID for both
* parent and child.
*/
if (thread == parent)
return 0;

if (!thread || !parent || thread__fork(thread, parent)) {
dprintf("problem processing PERF_EVENT_FORK, skipping event.\n");
return -1;
Expand Down

0 comments on commit 2cb00f3

Please sign in to comment.