Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223913
b: refs/heads/master
c: 532e726
h: refs/heads/master
i:
  223911: d8ace8a
v: v3
  • Loading branch information
Thomas Gleixner authored and Arnaldo Carvalho de Melo committed Dec 9, 2010
1 parent 870ddcd commit 1aab708
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: f74725dcf2f6931c26bc65e77e34e693eeb8441c
refs/heads/master: 532e7269c01098f0be6e08113c6947ec6ed11bfa
10 changes: 5 additions & 5 deletions trunk/tools/perf/util/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,10 +702,13 @@ static int perf_session_deliver_event(struct perf_session *session,
event_t *event,
struct sample_data *sample,
struct perf_event_ops *ops,
u64 file_offset __used)
u64 file_offset)
{
dump_event(session, event, file_offset, sample);

switch (event->header.type) {
case PERF_RECORD_SAMPLE:
dump_sample(session, event, sample);
return ops->sample(event, sample, session);
case PERF_RECORD_MMAP:
return ops->mmap(event, sample, session);
Expand Down Expand Up @@ -747,10 +750,8 @@ static int perf_session__process_event(struct perf_session *session,

if (event->header.type >= PERF_RECORD_USER_TYPE_START)
dump_event(session, event, file_offset, NULL);
else {
else
event__parse_sample(event, session, &sample);
dump_event(session, event, file_offset, &sample);
}

/* These events are processed right away */
switch (event->header.type) {
Expand All @@ -765,7 +766,6 @@ static int perf_session__process_event(struct perf_session *session,
return 0;
}
}
dump_sample(session, event, &sample);
break;

case PERF_RECORD_HEADER_ATTR:
Expand Down

0 comments on commit 1aab708

Please sign in to comment.