Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199734
b: refs/heads/master
c: dd833d7
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed May 31, 2010
1 parent f12e446 commit 6101e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af64865ba6825e10fe62a3105fea5cadffeb52c6
refs/heads/master: dd833d713ccc79e00176eb1b3a6c65638c44e27b
9 changes: 2 additions & 7 deletions trunk/tools/perf/util/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,11 @@ int event__process_mmap(event_t *self, struct perf_session *session)

int event__process_task(event_t *self, struct perf_session *session)
{
struct thread *thread = perf_session__findnew(session, self->fork.pid);
struct thread *parent = perf_session__findnew(session, self->fork.ppid);
struct thread *thread = perf_session__findnew(session, self->fork.tid);
struct thread *parent = perf_session__findnew(session, self->fork.ptid);

dump_printf("(%d:%d):(%d:%d)\n", self->fork.pid, self->fork.tid,
self->fork.ppid, self->fork.ptid);
/*
* A thread clone will have the same PID for both parent and child.
*/
if (thread == parent)
return 0;

if (self->header.type == PERF_RECORD_EXIT)
return 0;
Expand Down

0 comments on commit 6101e32

Please sign in to comment.